Skip to main content
POST
/
api
/
ap2
/
mandate
Create a spending mandate for recurring AP2 payments
curl --request POST \
  --url https://mag3nt.com/api/ap2/mandate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "card_id": "<string>",
  "card_token": "<string>",
  "amount": 123,
  "merchant": "<string>",
  "max_amount": 123,
  "expires_at": "2023-11-07T05:31:56Z"
}
'
{
  "mandate_id": "<string>",
  "type": "<string>",
  "contents": {},
  "merchant_signature": "<string>",
  "ttl": "<string>",
  "protocol": "<string>"
}

Authorizations

Authorization
string
header
required

API key prefixed with 'Bearer sx_live_...'

Body

application/json
card_id
string
required
card_token
string
required
amount
required
merchant
string
required
max_amount
expires_at
string<date-time>

Response

200 - application/json

Mandate created

mandate_id
string
type
string
contents
object
merchant_signature
string
ttl
string
protocol
string