Token transaction
Process an online transaction using a scheme or gateway token.
Initiate a token transaction
Request examples
Use the following request to initiate a scheme token transaction with a token cryptogram. For a full list of possible parameters, see the API reference.
{
"merchant": "MERCHANT-1",
"site": "SITE-1",
"merchantTransactionId": "ECOM_001",
"merchantTransactionDate": "2025-01-27 08:51:02.826445+00:00",
"transactionMethod": {
"intent": "Authorisation",
"entryType": "Ecom",
"fundingType": "Card"
},
"amounts": {
"transaction": 20,
"currencyCode": "GBP"
},
"fundingData": {
"card": {
"schemeTokenNumber": "4837261112345678",
"expiryMonth": "03",
"expiryYear": "2025",
"schemeTokenCryptogram": "AAEBAwQjSQAAXXXXXXXJYe0BbQA=",
"cardScheme": "Visa"
}
},
"threeDSecureData": {
"cardHolderAuthenticationVerificationValue": "MjAwNjI0MDkwMTEwMjA4NjU0MTY=",
"directoryServerTransactionId": "f25084f0-5b16-4c0a-ae5d-b24808a95e4b",
"electronicCommerceIndicator": "07",
"threeDSecureVersion": "2.1.0",
"threeDSecureTransactionStatus": "Y"
}
}
Parameter | Description |
---|---|
| Your unique merchant identifier, as assigned by PXP. |
| Your unique site identifier, as assigned by PXP. |
| A unique identifier for this transaction. |
| The date and time when the transaction happened, in ISO 8601 format. |
| Details about the transaction method. |
| The entry type. For e-commerce transactions, this is always |
| The funding type. For card transactions, this is always |
| The payment intent. Learn more about intents. |
| Details about the transaction amount. |
| The transaction amount. The numbers after the decimal will be zero padded if they are less than the expected |
| The currency code associated with the transaction, in ISO 4217 format. |
| Details about the payment method used for the transaction. |
| Details about the card. |
| 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. |
| The expiry month ( |
| The expiry year ( |
| The payment card's scheme, which indicates the network through which the card transactions are processed. |
| A unique cryptogram generated during the tokenisation process, used to enhance the security of transaction processing. This cryptogram acts as a secure and unique identifier, akin to the token authentication verification value (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. |
| Details about the 3DS data. |
| The Cardholder Authentication Verification Value (CAVV) is generated by the card issuer as part of the 3D Secure authentication process for Visa transactions. It indicates that the cardholder has been authenticated, and it should be appended to the authorisation request. |
| The 3DS 2.0 transaction identifier returned by the card issuer, unique to each authentication attempt. |
| The Electronic Commerce Indicator (ECI) specifies the security level of an online transaction and the authentication outcome, crucial for determining liability in the event of a dispute.
|
| The version of the 3D Secure protocol used for the transaction's authentication, as returned by the Payment Service Provider (PSP)'s 3D Secure service. This indicates the specific set of 3D Secure features and security measures applied. |
| The status of the transaction after being authenticated using the 3D Secure protocol, as provided by the Payment Service Provider (PSP). This indicates the result of the 3D Secure authentication process. |
Response example
If your request is successful, you'll receive a 200
response that includes the transaction's state
. You'll also receive a Transaction (Card Authorised) webhook notification.
{
"state": "Authorised",
"stateData": {},
"approvalCode": "373356",
"merchantTransactionDate": "2025-04-03T09:24:03",
"merchantTransactionId": "3f43ffba-3480-4a4a-8a02-922c22fd7615",
"systemTransactionId": "8d615218-63de-4f41-b574-01868296335f",
"fundingData": {
"cardScheme": "MasterCard",
"expiryMonth": null,
"expiryYear": null,
"providerResponse": {
"provider": "pxpfinancial",
"code": "00",
"emvDataResponse": {},
"paymentAccountReference": "637607302178175469",
"electronicCommerceIndicatorAdjustment": "07",
"merchantAdvice": {},
"authorisedAmount": 20,
"settlementDate": "2025-04-04T00:00:00"
},
"processorTransactionId": "6fcde524-3194-4676-9a32-1f329d3d7883"
}
}
Updated 2 months ago