Spend
Get spend status
Whether a card issued with POST /v1/cards was charged, and whether the charge settled.
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.
Response
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, declinedsettledboolean
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
| Status | Code | When |
|---|---|---|
| 404 | spend_not_found | No such spend on your account. |
| 502 | spend_status_failed | The status could not be read. Retry. |