M2Square

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

StatusDescription
pendingWaiting for funds.
processingFunds were detected and are confirming.
completedFunds are available.
expiredPayment window closed.
rejectedTransaction was blocked by controls.

On this page