Connections
Disconnect
End a connection. The AgentPay key is destroyed first, the saved session is deleted, and the entry at the merchant is removed when AgentPay can. Idempotent.
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 connection id.
Response
connection_idstring
statusstring
removing while the passkey is being removed at the merchant, removed otherwise.passkey_statusstring
removing, then on a later read removed or removed_locally (the person removes the AgentPay-... entry in the merchant's security settings themselves).request_idstring
The request id, also in the
X-Mooj-Request-Id header.Errors
| Status | Code | When |
|---|---|---|
| 404 | connection_not_found | No such connection on your account. |
| 502 | disconnect_failed | The passkey could not be revoked. Retry. |