Skip to content

/mandates

Generated from openapi.yaml. 5 operations.Download the specification.

POST/v1/mandates

Create a subscription mandate

Creates the on-chain plan and returns the mandate. Without `autoAuthorize` (production), the mandate is `pending` and includes `client_secret` for the browser checkout, where the payer authorizes autopay in their own wallet. `trialSeconds` defers the first auto-debit.

Requires your secret key as a bearer token.

Body

FieldTypeRequiredDescription
payerstringyesPayer wallet address
payeestringyesMerchant wallet address
mintstringyesSPL token mint (e.g. USDC)
amountPerPeriodstringyesAtomic units
periodSecondsintegeryes
maxPeriodsintegerno
trialSecondsintegernoFree-trial length; first charge lands at trial end
autoAuthorizebooleannoTEST MODE ONLY — simulate wallet authorization

Responses

StatusDescription
201The mandate (plus one-time `client_secret`).

GET/v1/mandates/{id}

Retrieve a mandate

Requires your secret key as a bearer token.

Path and query parameters

NameInRequiredDescription
no

Responses

StatusDescription
200The mandate.
404Not found (or owned by another merchant)

GET/v1/mandates/{id}/charges

List a mandate's charges

Requires your secret key as a bearer token.

Path and query parameters

NameInRequiredDescription
no

Responses

StatusDescription
200Charge list.

GET/v1/mandates/{id}/refunds

List a mandate's refunds

Requires your secret key as a bearer token.

Path and query parameters

NameInRequiredDescription
no

Responses

StatusDescription
200Refund list.

POST/v1/mandates/{id}/revoke

Cancel a subscription (merchant-side; stops future pulls)

Requires your secret key as a bearer token.

Path and query parameters

NameInRequiredDescription
no

Responses

StatusDescription
200The revoked mandate.

All resources ·Supported tokens ·Sandbox