Talk to usGet started
Wallet

Read the wallet

The balance every card and checkout draws on, what is free to assign, what sits on open cards, and the cards that already hold money.

GET/v1/wallet
Live API. A POST to /v1/cards issues a real card.
Authorizations
Authorizationstringrequired
Bearer token: Authorization: Bearer mk_live_.... Create a key in the AgentPay console under Developer, API keys.
Response200application/json
currencystring
USD.
onboardedboolean
Whether the account finished onboarding.
balancenumber
Everything in the wallet, in dollars.
availablenumber
balance minus reserved. What a new card can be capped at.
reservednumber
Money sitting on open cards.
pendingnumber
Declared bank money that has not landed. Not spendable.
balance_displaystring
The same four figures as display strings, e.g. $32.96. Also available_display, reserved_display, pending_display.
cards_readyarray
Open single-use cards that were never charged. A checkout whose total fits one pays with it, with no new card.
last4string
networkstring
holdsnumber
The card's limit in dollars.
ready_to_spendnumber
available plus what cards_ready hold. The honest answer to "can the agent buy this".
charges_in_flightarray
Charges authorized and still settling. The card holding each stays reserved until the network clears it.
amountnumber
card_last4string
networkstring
merchantstring
statusstring
authorized, settling.
after_settlementnumber
What balance becomes once the charges in flight clear.
notestring
A plain-words summary of the above, written for an agent.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
502wallet_read_failedThe wallet could not be read. Retry.