palbaseDocs

Palbase Payments · API

POST/payments/me/wallets/spend-tokens

Create single-use QR spend token

Mints a short-lived single-use opaque spend token (pst_...) the customer presents as a QR code for POS or merchant wallet charges.

Called by a signed-in user of your app, with their token and the publishable key.

Request body

max_amountinteger (int64) · optionalOptional maximum amount this single-use QR token may authorize.
ttl_secondsinteger (int32) · optionalShort token TTL in seconds (default 60, max 300).
wallet_keystring · requiredWallet key to spend from.
curl
curl -X POST "https://<your-ref>.palbase.studio/payments/me/wallets/spend-tokens" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"wallet_key":"string"}'

Responses

201Spend token created

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

Operation CreateMySpendToken of payments's contract.