Skip to main content
POST
/
stores
/
{storeId}
/
mandates
/
authorizations
Create a Mandate Authorization Token (MAT)
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.

Authorizations

Authorization
string
header
required

Store API token. Use the sk_ prefixed secret key as the Bearer token.

Path Parameters

storeId
string
required

Store ID (shp_ prefix)

Required string length: 12 - 48

Body

application/json
mandateId
string
required

ID of the mandate to authorize a charge against (man_ prefix). The mandate must be ACTIVE.

amount
integer
required

Charge amount in the smallest currency unit (e.g. cents for USD).

currency
string
required

ISO 4217 currency code.

description
string
required

Why you want to charge the customer. Included in the customer notification email.

Response

Mandate Authorization Token issued

ok
boolean
required
data
object
required

Mandate Authorization Token (MAT). Submit alongside the mandate id to the payments endpoint to charge the customer's saved payment method.