Convert card details into a scheme token.
Use the following request to create a scheme token.
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"
}'| Parameter | Description |
|---|---|
ownerIdstring (0 to 20 characters) required | The unique identifier of the entity that owns the token. |
ownerTypestring (enum) required | The type of entity that owns the token. Possible values:
|
| Parameter | Description |
|---|---|
primaryAccountNumberstring required | 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. |
expiryMonthstring (1 to 2 characters) required | The expiry month of the card. |
expiryYearstring (4 characters) required | The expiry year of the card. |
cardVerificationCodestring (3-4 characters) or null | 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. |
holderNamestring required | The full name of the individual who owns the payment card. This is printed on the physical card and is used to verify the cardholder's identity. It should be treated with confidentiality to safeguard the cardholder's privacy and prevent potential misuse. |
If your request is successful, you'll receive a 200 response containing a schemeTokenId.
{
"schemeTokenId": "46cae041-de60-44cc-8539-c482d83e38fa",
"fundingSource": "Debit"
}| Parameter | Description |
|---|---|
schemeTokenIdstring | The unique scheme token ID generated by PXP. It's used as a reference to extract the schemeTokenNumber. |
fundingSourcestring | The funding source type. |