API Reference Overview
Endpoint groups, conventions, and shared response patterns for the M2Square API.
The M2Square API is organized around payment primitives: balances, quotes, pay-ins, payouts, settlements, webhook endpoints, and events.
Base URLs
| Environment | URL |
|---|---|
| Sandbox | https://sandbox-api.m2square.xyz |
| Production | https://api.m2square.xyz |
Resource map
| Resource | Purpose |
|---|---|
| Balances | Available and pending stablecoin balances. |
| Quotes | Rate locks and fee estimates for corridors. |
| Pay-ins | Customer or counterparty deposits. |
| Payouts | Wallet, bank, or local rail disbursements. |
| Settlements | Stablecoin-to-local delivery flows. |
| Webhook endpoints | Event destination configuration. |
| Events | Queryable event history for reconciliation and replay. |
Object shape
{
"id": "set_01JEXAMPLE",
"object": "settlement",
"status": "processing",
"created_at": "2026-06-05T10:00:00Z",
"metadata": {
"order_id": "order_1001"
}
}Pagination
List endpoints use cursor pagination.
{
"data": [],
"next_cursor": "cur_01JEXAMPLE"
}