Cards
Close a card
Close an issued card and release any unused reserve back to the 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.Path parameters
idstringrequired
The card id.
Response
idstring
The card id.
statusstring
closed.released_displaystring
The reserve returned to the wallet, as a display string such as
$20.00.available_to_issue_displaystring
The wallet's available after the release.
request_idstring
The request id, also in the
X-Mooj-Request-Id header.Errors
| Status | Code | When |
|---|---|---|
| 404 | card_not_found | No such card on your account. |
| 502 | close_failed | The issuer could not close the card. Retry. |