Retrieve data about a specific transaction.
Looks up a transaction by identifier. Provide at least one of merchantTransactionId or systemTransactionId. This endpoint isn't a list or search API.
To get a transaction's details, supply the merchant and site associated with the transaction, and either its merchantTransactionId or its systemTransactionId.
curl --request GET \
--url 'https://api-services.pxp.io/api/v1/transactions/MERCHANT-1/SITE-1?merchantTransactionId=ECOM-001' \
--header 'accept: application/json'| Parameter | Description |
|---|---|
merchantstring (≤ 20 characters) required | The unique merchant identifier associated with this transaction, as assigned by PXP. |
sitestring (≤ 50 characters) required | The unique site identifier associated with this transaction, as assigned by PXP. |
Provide at least one of the following identifiers.
| Parameter | Description |
|---|---|
merchantTransactionIdstring (≤ 50 characters) | The unique identifier that you assigned to this transaction. Required for lookup unless systemTransactionId is provided. |
systemTransactionIdstring (36 characters) | The unique identifier assigned to this transaction by PXP. Required for lookup unless merchantTransactionId is provided. |
If your request is successful, you'll receive a 200 response containing a JSON array with zero or one transaction object:
[]when no matching transaction is found.- A single-element array when a match is found.
Each item in the array is a transaction object. Key fields include:
| Property | Description |
|---|---|
systemTransactionIdstring | The unique identifier assigned to this transaction by PXP. |
merchantTransactionIdstring | The unique identifier that you assigned to this transaction. |
merchantTransactionDatedate-time | The date and time when the transaction was initiated, in ISO 8601 format. |
merchantstring | The merchant identifier associated with this transaction. |
sitestring | The site identifier associated with this transaction. |
statestring (enum) | The current state of the transaction. Learn more about states. |
stateDataobject | A response code and message describing the transaction outcome. Learn more about state data. |
stateData.codestring | The state details code (for example, CRD000). |
stateData.messagestring | The state details message (for example, Approved). |
transactionMethodobject | Details about the transaction method, including intent, fundingType, and entryType. |
approvalCodestring | The approval code returned by the authorising entity, when applicable. |
providerTransactionIdstring | The unique identifier assigned by the financial service provider for the transaction, when returned. |
entryTypestring (enum) | For in-store transactions, the method by which the card was presented (for example, ChipAndPin, CardContactless). Returned at the root of the transaction object. |
fundingDataobject | Details about the payment method used for the transaction, including card scheme, masked PAN, token IDs, and verification results. |
fundingData.gatewayTokenIdstring | A securely stored token for the payment card, when returned. |
fundingData.gatewayTokenIdBase32string | The Base32-encoded representation of the gateway token ID, when returned. |
fundingData.providerResponseobject | Raw data received from the payment provider. Learn more about the provider response. |