Skip to main content
POST
/
api
/
ap2
/
execute
Execute a payment against an AP2 mandate
curl --request POST \
  --url https://mag3nt.com/api/ap2/execute \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "card_id": "<string>",
  "card_token": "<string>",
  "amount": 123,
  "mandate_id": "<string>"
}
'
{
  "success": true,
  "transaction_id": "<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
mandate_id
string

Response

200 - application/json

Payment executed

success
boolean
transaction_id
string