Talk to usGet started
Wallet

Top up by card or stablecoin

Open a Stripe Checkout page for the amount. Give url to the person; the wallet is credited the moment Stripe confirms. A card number never passes through the API.

POST/v1/wallet/funding-sessions
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.
Bodyapplication/json
amountnumberrequired
Dollars to add, above zero.
success_urlstring
Where the person lands after paying. Must be https. Defaults to the AgentPay console.
cancel_urlstring
Where the person lands if they cancel. Must be https. Defaults to the AgentPay console.
Response200application/json
funding_session_idstring
The Stripe Checkout session id.
urlstring
The page to open for the person.
amountnumber
amount_displaystring
statusstring
open.
pays_withstring
card or stablecoin on the Stripe page.
creditedstring
When the wallet is credited, in plain words.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
400invalid_amountamount is missing or not above zero, or the amount was refused as malformed.
400invalid_requestsuccess_url or cancel_url is not an https address.
402wallet_limitThe top-up would take the wallet above its ceiling.
402funding_budget_reachedThe account's funding budget for the period is reached.
402funding_unavailableTop-ups are paused for the moment.
502funding_session_failedThe Stripe page could not be opened. Retry.