v1
latestOpenAPI 3.0.12026-07-24204977.5 KBPre-Auth
Immediate tokenized payment charge (auth + capture)
Charges the user's linked payment method in a single step without a pre-authorization hold. Use this for one-shot payments where you do not need to adjust the amount before capture.
post/tokenized-payment/v1/charge
Headers
X-ShopBack-Idempotent-Idstring required
Unique key to safely retry the request without duplicate charges. Use a UUID per logical charge attempt.
Request body
Example request
{
"paymentToken": "aBcD1234eFgH5678iJkL9012mNoP3456",
"merchantUserId": "merchant_rider_42",
"amount": 17,
"currency": "SGD",
"merchantRef": "trip-456-tip",
"useCashback": true,
"callbackUrl": "https://merchant.example.com/webhooks/shopback"
}Response
Example response
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"orderUuid": "7b3f1234-ab12-4321-b123-000000000001",
"status": "APPROVED",
"orderType": "ONLINE",
"merchantRef": "trip-456-tip",
"merchantOrderId": "order-789",
"consumerEmail": "user@example.com",
"createdAt": "2026-04-30T10:00:00.000Z"
}