Talk to usGet started
Cards

Close a card

Close an issued card and release any unused reserve back to the wallet.

POST/v1/cards/{id}/close
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.
Response200application/json
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
StatusCodeWhen
404card_not_foundNo such card on your account.
502close_failedThe issuer could not close the card. Retry.