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.
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.Response
idstring
The card id.
sourcestring
own.statusstring
removed.request_idstring
The request id, also in the
X-Mooj-Request-Id header.Errors
| Status | Code | When |
|---|---|---|
| 404 | card_not_found | No connected card with that id. An issued card is closed with POST /v1/cards/{id}/close. |
| 502 | remove_failed | The card could not be removed. Retry. |