Run in Apidog
This endpoint processes the payment for a previously created cart , completing the transaction. It is the final step in the location-based product flow. š Description# Execute payment for the selected product previously added to the cart.
Finalize the transaction and receive confirmation
Retrieve supplier references and status codes
š The cart must be valid and not expired. Only carts created via the corresponding Create Cart method are accepted. š„ Request Details# terminalId (integer): ID of the requesting terminal
operatorID (integer): ID of the operator provided in the Get Products response.localReference (integer): unique identifier for this transaction.
Field Type Description amountToSendX100integer Amount to send, expressed in cents localDateTimestring Timestamp of the payment request in ISO 8601 format cartIdstring Unique identifier of the cart being paid
Example Request# {
"amountToSendX100" : 5000 ,
"localDateTime" : "2025-07-07T14:05:00Z" ,
"cartId" : "123456"
} š¤ Response# Returns transaction confirmation results: Field Type Description rcinteger Global result code (e.g., 0 for success) itemsarray List containing transaction result objects items[].finalstatusinteger Status code of the individual transaction (e.g., 0 = success) items[].resultcodestring Internal result code from the supplier items[].resultmessagestring Human-readable confirmation message items[].supplierreferencestring External reference provided by the supplier items[].suppliertokenstring Token or unique ID from the supplier items[].destinationcurrencystring Currency used in the transaction (e.g., EUR) items[].destinationamountinteger Amount delivered in the destination currency (in cents)
Example Response# {
"rc" : 0 ,
"items" : [
{
"finalstatus" : 0 ,
"resultcode" : "0" ,
"resultmessage" : "Payment successful" ,
"supplierreference" : "CSQ-REF-20250707-0001" ,
"suppliertoken" : "TXN-20250707-ABC123" ,
"destinationcurrency" : "EUR" ,
"destinationamount" : 5000
}
]
} š§ Usage Notes# This method must be called after cart creation and before cart expiration.
The amountToSendX100 must match the value used during cart creation.
Use supplierreference and suppliertoken for reconciliation or support tracking.
Request Body Params application/json
{
"amountToSendX100" : 0 ,
"localDateTime" : "2019-08-24T14:15:22Z" ,
"cartId" : "string"
} Request Code Samples
curl --location --request POST 'https://evsb.csqworld.com/physical-products/purchase///123456789' \
--header 'U: {{U}}' \
--header 'SH: {{SH}}' \
--header 'ST: {{ST}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"amountToSendX100": 0,
"localDateTime": "2019-08-24T14:15:22Z",
"cartId": "string"
}' Responses
{
"rc" : 0 ,
"items" : [
{
"finalstatus" : 0 ,
"resultcode" : "string" ,
"resultmessage" : "string" ,
"supplierreference" : "string" ,
"suppliertoken" : "string" ,
"destinationcurrency" : "string" ,
"destinationamount" : 0
}
]
} Modified atĀ 2025-07-28 20:18:54