Base URL
All API requests use the following base URL:Versioning
The API is versioned via the URL path. The current version isv1:
Authentication
All endpoints require two headers:x-api-key and x-maash-user-type. See the Authentication guide for details.
| Header | Required | Value |
|---|---|---|
x-api-key | Yes | Your merchant API key |
x-maash-user-type | Yes | checkout |
Request format
- Use
Content-Type: application/jsonfor allPOSTandPUTrequests. - Query parameters are used for
GETrequests with filters. - All monetary values in USD use
numbertype with up to 2 decimal places. - Token amounts are returned as
stringto preserve decimal precision.
Response format
All successful responses wrap the result in adata object:
details object and validation_errors array are included when there are specific validation issues. See Error Handling for more information.
ID formats
All resource IDs are ULID-based, prefixed by resource type:| Resource | Prefix | Example |
|---|---|---|
| Checkout session | cs_ | cs_01ARZ3NDEKTSV4RRFFQ69G5FAV |
| Payment | pay_ | pay_01ARZ3NDEKTSV4RRFFQ69G5FAV |
| Quote | qt_ | qt_01ARZ3NDEKTSV4RRFFQ69G5FAV |
| Merchant | mer_ | mer_01ARZ3NDEKTSV4RRFFQ69G5FAV |
| Webhook delivery | wh_ | wh_01ARZ3NDEKTSV4RRFFQ69G5FAV |
Timestamps
All timestamps are in ISO 8601 format with UTC timezone:Pagination
List endpoints return all matching results. Pagination is not currently required.Endpoints
Tokens & Quotes
List tokens
GET /checkout/tokens — List supported tokens and chains.Get quote
GET /checkout/quote — Get a price quote for a stablecoin conversion.Checkout Sessions
Create checkout session
POST /checkout/sessions — Create a new checkout session.Get checkout session
GET /checkout/sessions/{session_id} — Retrieve a checkout session.Select payment method
POST /checkout/sessions/select-payment — Select token and chain, generate
wallet address.Related guides
Authentication
Learn about API keys, session tokens, and webhook signatures.
Error handling
Understand error response formats and handling strategies.
Quickstart
Create your first checkout session step by step.
Webhooks
Receive real-time payment notifications.
