curl --request POST \
--url https://api.pandabase.io/v2/core/stores/{storeId}/mandates/authorizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mandateId": "<string>",
"amount": 123,
"currency": "<string>",
"description": "<string>"
}
'{
"ok": true,
"data": {
"token": "<string>"
}
}Request a short-lived Mandate Authorization Token scoped to a specific charge (amount, currency, and reason). Submit the returned token together with the mandate id to the payments endpoint to actually charge the customer.
Requesting a MAT emails the customer notifying them that you have obtained authorization to charge their saved payment method — only request a token when you’re ready to charge.
curl --request POST \
--url https://api.pandabase.io/v2/core/stores/{storeId}/mandates/authorizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mandateId": "<string>",
"amount": 123,
"currency": "<string>",
"description": "<string>"
}
'{
"ok": true,
"data": {
"token": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.pandabase.io/llms.txt
Use this file to discover all available pages before exploring further.
Store API token. Use the sk_ prefixed secret key as the Bearer token.
Store ID (shp_ prefix)
12 - 48ID of the mandate to authorize a charge against (man_ prefix). The mandate must be ACTIVE.
Charge amount in the smallest currency unit (e.g. cents for USD).
ISO 4217 currency code.
Why you want to charge the customer. Included in the customer notification email.