Skip to main content
Wallets hold a consumer’s balance in a specific currency. You can list a consumer’s wallets and credit or debit them via the API. Below is a flow diagram that explains how to manage wallets.
Orbt Diagrams Flow 4 Wallet Credit And Debit

List consumer wallets

Returns all wallets belonging to a specific consumer, including balance, currency, and wallet type.

Path parameters

  • customerId (integer, required) — The consumer’s ID, returned when the consumer was created

Query parameters

  • page (integer, optional) — Page number, zero-indexed. Default: 0
  • size (integer, optional) — Results per page. Default: 20, max: 50

Example request

Success response (200)

Error responses

  • 403 Forbidden — Authentication failed
  • 422 Unprocessable Entity — Invalid consumer ID or query parameters

Credit or debit a wallet

Adds or deducts funds from a consumer’s wallet. Credits are drawn from your partner wallet balance. Use a unique referenceId for each transaction — this is your idempotency key to prevent duplicate processing.

Path parameters

  • walletId (string, required) — The wallet ID to update, returned from the consumer or wallet list endpoints

Request body

  • amount (number, required) — Amount to credit or debit
  • transactionType (string, required) — CREDIT to add funds, DEBIT to deduct funds
  • referenceId (string, required) — Your unique reference for this transaction. Used for idempotency — reusing the same ID with the same payload is safe; reusing it with a different payload will return an error.
  • description (string, optional) — A note for your own records

Example request — credit

Success response (200)

Error responses

  • 402 BUSINESS_RULE_ERROR — Your partner wallet has insufficient funds to process this credit
  • 403 BUSINESS_RULE_ERRORreferenceId has already been used with a different payload (idempotency violation)
  • 500 SYSTEM_ERROR — Consumer wallet has insufficient funds for a debit transaction