Pay-ins
Create and retrieve stablecoin collection intents.
Create pay-in
POST /v1/payins
curl "$M2_BASE_URL/v1/payins" \
-H "Authorization: Bearer $M2_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": "150.00",
"currency": "USDC",
"customer_id": "cus_01JEXAMPLE",
"metadata": {
"invoice_id": "inv_2048"
}
}'Retrieve pay-in
GET /v1/payins/{id}
Statuses
| Status | Description |
|---|---|
pending | Waiting for funds. |
processing | Funds were detected and are confirming. |
completed | Funds are available. |
expired | Payment window closed. |
rejected | Transaction was blocked by controls. |