Talk to usGet started
Cards

Remove a connected card

Remove a connected card (source own) and withdraw any purchase waiting on it. An issued card is closed with POST /v1/cards/{id}/close instead.

DELETE/v1/cards/{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
idstringrequired
The connected card's id from GET /v1/cards.
Response200application/json
idstring
The card id.
sourcestring
own.
statusstring
removed.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
404card_not_foundNo connected card with that id. An issued card is closed with POST /v1/cards/{id}/close.
502remove_failedThe card could not be removed. Retry.