Cards
Connect the person's own card
A one-hour, single-use link where the cardholder connects their own credit or debit card behind a passkey. Send it to them; never open it yourself.
The card is encrypted on the cardholder's device before it leaves the page. AgentPay never holds the number in clear and never stores the security code. Nothing is issued and nothing is prepaid: they keep their points.
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.Response
connect_idstring
The enrolment id.
connect_urlstring
The link for the cardholder. Safari or Chrome, on the phone they will approve purchases with.
expires_atstring
ISO 8601. One hour after creation.
statusstring
open.instructionsstring
What to tell the cardholder, in plain words.
request_idstring
The request id, also in the
X-Mooj-Request-Id header.Errors
| Status | Code | When |
|---|---|---|
| 503 | own_card_unavailable | Connecting a card is not switched on for the account. |
| 502 | connect_failed | The link could not be created. Retry. |