[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: TokenVault.md
# TokenVault Method | HTTP request | Description ------------- | ------------- | ------------- [**PGCustomerDeleteInstrument**](TokenVault.md#PGCustomerDeleteInstrument) | **Delete** /customers/{customer_id}/instruments/{instrument_id} | Delete Saved Card Instrument [**PGCustomerFetchInstrument**](TokenVault.md#PGCustomerFetchInstrument) | **Get** /customers/{customer_id}/instruments/{instrument_id} | Fetch Specific Saved Card Instrument [**PGCustomerFetchInstruments**](TokenVault.md#PGCustomerFetchInstruments) | **Get** /customers/{customer_id}/instruments | Fetch All Saved Card Instrument [**PGCustomerInstrumentsFetchCryptogram**](TokenVault.md#PGCustomerInstrumentsFetchCryptogram) | **Get** /customers/{customer_id}/instruments/{instrument_id}/cryptogram | Fetch cryptogram for a saved card instrument ## PGCustomerDeleteInstrument > PGCustomerDeleteInstrument($x_api_version, $customer_id, $instrument_id, $x_request_id = null, $x_idempotency_key = null, GuzzleHttp\Client $http_client = null) Delete Saved Card Instrument ([Docs](https://docs.cashfree.com/reference/pgcustomerdeleteinstrument)) ### Example ```php $x_api_version = "2022-09-01"; $customer_id = "customer_id"; $instrument_id = "instrument_id"; try { $result = $cashfree->PGCustomerDeleteInstrument($x_api_version, $customer_id, $instrument_id, null, null, null); } catch (Exception $e) { echo 'Exception when calling PGCustomerDeleteInstrument: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customerId** | **string*** | Your Customer ID that you had sent during create order API `POST/orders` | **instrumentId** | **string*** | The instrument_id which needs to be deleted | **xApiVersion** | **string*** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | ### Response ```json { "customer_id": "siddhesh_desai", "afa_reference": "740324562", "instrument_id": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10", "instrument_type": "card", "instrument_uid": "0d8f70838cc5af8b1cd2bc0fe71278551fd3f1101e40020d89ad22ceba4f933c", "instrument_display": "xxxxxxxxxxxx4375", "instrument_status": "ACTIVE", "created_at": "2021-11-11 16:57:57", "instrument_meta": { "card_network": "VISA", "card_bank_name": "HDFC Bank Limited", "card_country": "IN", "card_type": "DEBIT_CARD", "card_token_details": { "par": "somepar", "expiry_month": "12", "expiry_year": "23" } } } ``` ## PGCustomerFetchInstrument > PGCustomerFetchInstrument($x_api_version, $customer_id, $instrument_id, $x_request_id = null, $x_idempotency_key = null, GuzzleHttp\Client $http_client = null) Fetch Specific Saved Card Instrument ([Docs](https://docs.cashfree.com/reference/pgcustomerfetchinstrument)) ### Example ```php $x_api_version = "2022-09-01"; $customer_id = "customer_id"; $instrument_id = "instrument_id"; try { $result = $cashfree->PGCustomerFetchInstrument($x_api_version, $customer_id, $instrument_id, null, null, null); } catch (Exception $e) { echo 'Exception when calling PGCustomerFetchInstrument: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | **instrumentId** | **string** | The instrument_id of the saved instrument which needs to be queried | **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | ### Response ```json { "customer_id": "siddhesh_desai", "afa_reference": "740324562", "instrument_id": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10", "instrument_type": "card", "instrument_uid": "0d8f70838cc5af8b1cd2bc0fe71278551fd3f1101e40020d89ad22ceba4f933c", "instrument_display": "xxxxxxxxxxxx4375", "instrument_status": "ACTIVE", "created_at": "2021-11-11 16:57:57", "instrument_meta": { "card_network": "VISA", "card_bank_name": "HDFC Bank Limited", "card_country": "IN", "card_type": "DEBIT_CARD", "card_token_details": { "par": "somepar", "expiry_month": "12", "expiry_year": "23" } } } ``` ## PGCustomerFetchInstruments > PGCustomerFetchInstruments($x_api_version, $customer_id, $instrument_type, $x_request_id = null, $x_idempotency_key = null, GuzzleHttp\Client $http_client = null) Fetch All Saved Card Instrument ([Docs](https://docs.cashfree.com/reference/pgcustomerfetchinstruments)) ### Example ```php $x_api_version = "2022-09-01"; $customer_id = "customer_id"; $instrument_type = "instrument_id"; try { $result = $cashfree->PGCustomerFetchInstruments($x_api_version, $customer_id, $instrument_type, null, null, null); } catch (Exception $e) { echo 'Exception when calling PGCustomerFetchInstruments: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customerId** | **string*** | Your Customer ID that you had sent during create order API `POST/orders` | **xApiVersion** | **string*** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] **instrumentType** | **string*** | Payment mode or type of saved instrument | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | ### Response ```json [ { "customer_id": "siddhesh_desai", "afa_reference": "740324562", "instrument_id": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10", "instrument_type": "card", "instrument_uid": "0d8f70838cc5af8b1cd2bc0fe71278551fd3f1101e40020d89ad22ceba4f933c", "instrument_display": "xxxxxxxxxxxx4375", "instrument_status": "ACTIVE", "created_at": "2021-11-11 16:57:57", "instrument_meta": { "card_network": "VISA", "card_bank_name": "HDFC Bank Limited", "card_country": "IN", "card_type": "DEBIT_CARD", "card_token_details": { "par": "somepar", "expiry_month": "12", "expiry_year": "23" } } } ] ``` ## PGCustomerInstrumentsFetchCryptogram > PGCustomerInstrumentsFetchCryptogram($x_api_version, $customer_id, $instrument_id, $x_request_id = null, $x_idempotency_key = null, GuzzleHttp\Client $http_client = null) Fetch cryptogram for a saved card instrument ([Docs](https://docs.cashfree.com/reference/pgcustomerinstrumentsfetchcryptogram)) ### Example ```php $x_api_version = "2022-09-01"; $customer_id = "customer_id"; $instrument_type = "instrument_type"; try { $result = $cashfree->PGCustomerInstrumentsFetchCryptogram($x_api_version, $customer_id, $instrument_type, null, null, null); } catch (Exception $e) { echo 'Exception when calling PGCustomerInstrumentsFetchCryptogram: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customerId** | **string*** | Your Customer ID that you had sent during create order API `POST/orders` | **instrumentId** | **string*** | The instrument_id of the saved card instrument which needs to be queried | **xApiVersion** | **string*** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | ### Response ```json { "instrument_id": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10", "token_requestor_id": "22457512314", "card_number": "4491365621601472", "card_expiry_mm": "06", "card_expiry_yy": "2025", "cryptogram": "AQBBBBBBZatIlaIAmWKSghwBBBB=", "card_display": "1234" } ```
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.98 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002