Talk to usGet started
Spend

Get spend status

Whether a card issued with POST /v1/cards was charged, and whether the charge settled.

GET/v1/spend/{spend_request_id}
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.
Path parameters
spend_request_idstringrequired
From the create-card response.
Response200application/json
spend_request_idstring
decisionstring
The policy decision at issue time, APPROVED for a card that was minted.
merchantstring
The merchant the card was issued for.
requested_usdnumber
The cap that was requested.
statusstring
The charge state.
Available options: not_started, authorized, cleared, declined
settledboolean
true once the network cleared the charge, usually by the next day.
amountnumber
The charged amount in dollars, null before a charge.
decline_reasonstring
On declined, why.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
404spend_not_foundNo such spend on your account.
502spend_status_failedThe status could not be read. Retry.