palbaseDocs

Palbase Payments · API

POST/payments/wallets/holds

Create two-phase wallet hold

Reserves funds in a customer wallet for an in-flight order, ride, or AI job. Must be committed or released before TTL expiry. Requires Idempotency-Key.

Called by your server, with the project's secret key.

Headers

Idempotency-Keystring · requiredUnique client-supplied idempotency key (1-255 chars) ensuring safe retries without duplicate charges, refunds, or ledger movements.

Request body

amountinteger (int64) · requiredAmount to reserve in minor units.
customer_idstring · optionalCustomer UID (required unless spend_token is supplied).
metadataobject · optionalArbitrary JSON metadata.
referencestring · optionalMerchant reference.
spend_tokenstring · optionalSingle-use QR spend token (`pst_...`).
ttl_secondsinteger (int32) · optionalHold expiration in seconds (default 900).
wallet_keystring · optionalWallet key.
curl
curl -X POST "https://<your-ref>.palbase.studio/payments/wallets/holds" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"amount":0}'

Responses

200Replayed hold

201Hold created

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation CreateWalletHold of payments's contract.