This is an API reference for the Token Vault service, which provides endpoints to create and manage tokens and related cryptographic data.
- Get encrypted card data related to gateway token
Token Vault service API (1.0.0)
https://api-services.pxp.io/api/v1/
https://api-services.test.pxp.io/api/v1/
The unique identifier of the entity owning the token (e.g., Referrer, Merchant Group, Merchant or Site).
This refers to the unique number assigned to a payment card, such as a credit or debit card. This number typically contains 16 digits, structured in a specific format to indicate the card network, issuing bank, and account number.
Represents the Card Verification Code (CVC) associated with the payment card, a security feature for transactions where the card is not physically present. The security code is typically a 3 or 4 digit number found on the card, used to verify that the cardholder is in possession of the card during non-face-to-face transactions.
The Cardholder Name represents the full name of the individual who owns the payment card. This name is printed on the physical card and is used for verifying the cardholder's identity during transactions. The cardholder name is a vital component for transaction processing, especially in cases of card-not-present transactions like online purchases. It should be treated with confidentiality to safeguard the cardholder's privacy and prevent potential misuse.
- Production environment
https://api-services.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/gateway-tokens
- Sandbox environment
https://api-services.test.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/gateway-tokens
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/gateway-tokens \
-H 'Content-Type: application/json' \
-d '{
"primaryAccountNumber": "4111111111111111111",
"expiryMonth": "03",
"expiryYear": "2025",
"cardVerificationCode": "123",
"holderName": "Mr John Doe"
}'
Successful creation of the gateway token
The gateway token Id represents a securely stored token that corresponds to a previously saved payment card. This token is generated and maintained by PXP to facilitate recurring transactions or transactions using stored card details, ensuring enhanced security and convenience. When a transaction is performed with a saved card, this token Id should be provided instead of the full card details. This approach enhances security by reducing the exposure of sensitive card information and simplifies the transaction process for returning customers."
The masked primary account number (PAN) of the card.
{ "gatewayTokenId": "7f46c09d-d1d1-4f94-9a88-6e8ac32e6341", "maskedPrimaryAccountNumber": "123456******7890", "fundingSource": "Credit Card" }
The unique identifier of the entity owning the token (e.g., Referrer, Merchant Group, Merchant or Site).
This refers to the unique number assigned to a payment card, such as a credit or debit card. This number typically contains 16 digits, structured in a specific format to indicate the card network, issuing bank, and account number.
Represents the Card Verification Code (CVC) associated with the payment card, a security feature for transactions where the card is not physically present. The security code is typically a 3 or 4 digit number found on the card, used to verify that the cardholder is in possession of the card during non-face-to-face transactions.
The Cardholder Name represents the full name of the individual who owns the payment card. This name is printed on the physical card and is used for verifying the cardholder's identity during transactions. The cardholder name is a vital component for transaction processing, especially in cases of card-not-present transactions like online purchases. It should be treated with confidentiality to safeguard the cardholder's privacy and prevent potential misuse.
- Production environment
https://api-services.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens
- Sandbox environment
https://api-services.test.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/scheme-tokens \
-H 'Content-Type: application/json' \
-d '{
"primaryAccountNumber": "4111111111111111111",
"expiryMonth": "03",
"expiryYear": "2025",
"cardVerificationCode": "123",
"holderName": "Mr John Doe"
}'
{ "schemeTokenId": "7d87f401-6977-43a4-8e72-8ff457fc8633", "fundingSource": "Bank Account" }
- Production environment
https://api-services.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens/{SchemeTokenId}
- Sandbox environment
https://api-services.test.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens/{SchemeTokenId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/scheme-tokens/f47ac10b-58cc-4372-a567-0e02b2c3d479
Successful retrieval of the scheme token
The unique scheme token ID generated by PXP. It is used as a reference to extract the schemeTokenNumber.
A unique identifier token provided by the external payment scheme. This token allows merchants to process payments through different payment service providers (PSPs) or transaction service providers (TSPs). The token facilitates interoperability between different PSPs, enabling merchants to seamlessly integrate with and utilize various payment processing services.
The payment account reference associated with the scheme token.
The scheme token number represents a scheme token issued by Visa or Mastercard, used for subsequent transaction processing. This token enhances security and facilitates recurring transactions, providing a secure and efficient alternative to sharing sensitive card details.
{ "schemeTokenId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schemeTokenProvider": "Visa", "schemeTokenProcurementState": "Completed", "externalSchemeTokenId": "ext-123456789", "status": "Active", "paymentAccountReference": "acc-987654321", "schemeTokenNumber": "1234567812345678", "expiryMonth": "12", "expiryYear": "2025" }
- Production environment
https://api-services.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens/{SchemeTokenId}/cryptograms
- Sandbox environment
https://api-services.test.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/scheme-tokens/{SchemeTokenId}/cryptograms
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/scheme-tokens/7d87f401-6977-43a4-8e72-8ff457fc8633/cryptograms
Successful creation of the cryptogram
A unique cryptogram generated during the tokenisation process, utilized for enhancing the security of transaction processing. This cryptogram acts as a secure and unique identifier, akin to the TAVV, ensuring that each transaction is authenticated and verified without directly using sensitive card details. It plays a crucial role in the secure electronic payment ecosystem, especially in tokenised transactions, by providing an additional layer of security and authentication.
The scheme token number represents a scheme token issued by Visa or Mastercard, used for subsequent transaction processing. This token enhances security and facilitates recurring transactions, providing a secure and efficient alternative to sharing sensitive card details.
{ "cryptogramType": "3DSecure", "clientPaymentDataId": "abc123", "schemeTokenCryptogram": "E1F53135E559C253", "schemeTokenNumber": "4837261112345678" }
The unique identifier of the entity owning the token (e.g., Referrer, Merchant Group, Merchant, Site).
The type of entity owning the token (e.g., Referrer, MerchantGroup, Merchant or Site).
The gateway token Id represents a securely stored token that corresponds to a previously saved payment card. This token is generated and maintained by PXP to facilitate recurring transactions or transactions using stored card details, ensuring enhanced security and convenience. When a transaction is performed with a saved card, this token Id should be provided instead of the full card details. This approach enhances security by reducing the exposure of sensitive card information and simplifies the transaction process for returning customers."
Represents the Card Verification Code (CVC) associated with the payment card, a security feature for transactions where the card is not physically present. The security code is typically a 3 or 4 digit number found on the card, used to verify that the cardholder is in possession of the card during non-face-to-face transactions.
- Production environment
https://api-services.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/gateway-tokens/{GatewayTokenId}/card-verification-code
- Sandbox environment
https://api-services.test.pxp.io/api/v1/token-vault/{OwnerType}/{OwnerId}/vaults/gateway-tokens/{GatewayTokenId}/card-verification-code
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/gateway-tokens/7f46c09d-d1d1-4f94-9a88-6e8ac32e6341/card-verification-code \
-H 'Content-Type: application/json' \
-d '{
"cardVerificationCode": "123"
}'