Palbase Payments · API
POST
/payments/wallets/transferTransfer wallet balance
Atomically transfers closed-loop wallet balance between two customers with deadlock-free ordered row locking. Backend secret-key only; 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) · requiredTransfer amount in minor units.from_customer_idstring · requiredSender customer UID.metadataobject · optionalArbitrary JSON metadata.reasonstring · optionalTransfer reason.referencestring · optionalTransfer reference.to_customer_idstring · requiredRecipient customer UID.wallet_keystring · requiredWallet key.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/wallets/transfer" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"amount":0,"from_customer_id":"string","to_customer_id":"string","wallet_key":"string"}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation TransferWallet of payments's contract.