Initiate a new cloud device transaction for the specified point-of-sale device. This endpoint supports various transaction intents including authorisation, purchase, refund, and verification.
Initiate a cloud device transaction
A unique identifier assigned by PXP to represent a merchant entity, such as a store, hotel, or website, within the payment processing system.
The unique identifier for the site associated with the transaction, as assigned by PXP. This could represent a physical location, website, or any other distinct entity where the transaction occurs.
A unique transaction reference assigned by you. Must be unique per transaction.
The date and time when you initiated the transaction, in ISO 8601 format.
Details about the transaction amount, including the currency and optional gratuity, cashback, shipping, or service charge values. Note that gratuity and serviceCharge can't be sent together.
The transaction method provides comprehensive details about the intent, capture method, and origin of a transaction.
- Production environmenthttps://api-services.pxp.io/api/v1/cloud-device/{merchantPointOfSaleId}/transactions
- Sandbox environmenthttps://api-services.test.pxp.io/api/v1/cloud-device/{merchantPointOfSaleId}/transactions
curl -i -X POST \
https://api-services.pxp.io/api/v1/cloud-device/POS-001/transactions \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"merchant": "MERCHANT-1",
"site": "SITE-1",
"merchantTransactionId": "TXN-001",
"merchantTransactionDate": "2025-01-27T08:51:02.826445+00:00",
"amounts": {
"transaction": 30.32,
"currencyCode": "EUR"
},
"transactionMethod": {
"intent": "Authorisation",
"entryType": "Instore",
"fundingType": "Card"
},
"pointOfInteraction": {
"pointOfSaleId": "POS-1",
"language": "EN",
"storeAndForwardType": "None"
},
"statusCallbackUrl": "http://192.168.1.1:5000/statuspacket"
}'Successful response
The current state of the transaction.
Key value pair for various state data. Learn more about how this works.
{ "code": "CRD000", "message": "Approved" }
The authorisation approval code returned by the issuer or authorising entity.
The date and time when you initiated the transaction, in ISO 8601 format.
A unique transaction reference assigned by you. Must be unique per transaction.
A unique identifier generated by PXP for each transaction. It serves as a reference for tracking and querying transactions within the PXP system. This ID is crucial for performing modifications or querying transaction details.
A unique identifier assigned by the financial service provider for the transaction. It facilitates tracking, reconciliation, and support processes.
Details about the payment method used for the transaction, including masked card data, scheme, gateway token, verification results, EMV data, and the provider response.
Details about the transaction amounts, including the transaction value, currency, and optional gratuity.
{ "state": "Authorised", "stateData": { "code": "CRD000", "message": "Approved" }, "approvalCode": "A123456", "merchantTransactionId": "TXN-001", "systemTransactionId": "1ed768bb-e88a-4636-91ae-67927ccbb02b", "merchantTransactionDate": "2025-01-27T08:51:02.826445+00:00", "providerTransactionId": "PROV-98765", "fundingData": { "maskedPrimaryAccountNumber": "************1234", "cardScheme": "Visa", "expiryMonth": "12", "expiryYear": "2025", "gatewayTokenId": "1ed768bb-e88a-4636-91ae-67927ccbb03a", "pointOfInteraction": { … }, "providerResponse": { … } }, "amounts": { "transaction": 30.32, "currencyCode": "EUR" } }