v1
latestOpenAPI 3.0.12026-07-24204977.5 KBPre-Auth
Create a pre-authorization
Places a hold on the funds associated with a payment token. Use capture to settle or void to release the hold.
post/tokenized-payment/v1/pre-auths
Headers
X-ShopBack-Idempotent-Idstring required
Unique key to safely retry the request without duplicate holds. Use a UUID per logical pre-auth attempt.
Request body
Example request
{
"paymentToken": "aBcD1234eFgH5678iJkL9012mNoP3456",
"merchantUserId": "merchant_rider_42",
"amount": 20.5,
"currency": "SGD",
"merchantRef": "trip-456",
"merchantMetadata": {
"tripId": "trip-456",
"estimatedMinutes": 30
}
}Response
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"merchantRef": "trip-456",
"status": "AUTHORIZED",
"amount": 20.5,
"currency": "SGD",
"orderUuid": "7b3f1234-ab12-4321-b123-000000000001",
"orderStatus": "COMPLETED",
"merchantMetadata": {
"tripId": "trip-456"
},
"createdAt": "2026-04-30T10:00:00.000Z",
"updatedAt": "2026-04-30T10:05:00.000Z"
}