Cards
Reveal a card
Return the full card number, the security code and the expiry. Reveal only at the moment of use; AgentPay never logs the number.
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 from
POST /v1/cards.Response
idstring
The card id.
last4string
The last four digits.
numberstring
The full card number.
number_formattedstring
The number in groups of four.
cvcstring
The security code.
expstring
The expiry as
MM/YY.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 | reveal_failed | The issuer could not return the card. Retry. |