M2Square

Webhook Endpoints

Register and manage HTTPS endpoints for receiving signed events.

Create endpoint

POST /v1/webhook-endpoints

curl "$M2_BASE_URL/v1/webhook-endpoints" \
  -H "Authorization: Bearer $M2_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/m2square/webhooks",
    "events": [
      "payin.completed",
      "payout.failed",
      "settlement.completed",
      "compliance.review_required"
    ]
  }'

List endpoints

GET /v1/webhook-endpoints

Security

Store the endpoint secret securely and verify every request before processing the event payload.

On this page