Register a new webhook endpoint to receive QR Ph transaction notifications
| Header | Value | Required | Description |
|---|---|---|---|
Authorization | Basic {base64(secret_key:)} | Yes | HTTP Basic Auth with your secret key |
Content-Type | application/json | Yes | Request body format |
activation-code | string | No | Merchant activation code for multi-merchant setups |
"MERCHANT_ABC_123"When you create a webhook with an activation code, Modulus Labs includes the same activation-code in the header of webhook notifications sent to your endpoint."https://api.yourcompany.com/webhooks/modulus"Requirements:200 OK to acknowledge receiptQRPH_SUCCESS - Receive notifications when payments succeedQRPH_DECLINED - Receive notifications when payments are declined"QRPH_SUCCESS" "QRPH_DECLINED"201 Created
Returns the created webhook object with a unique id that you can use to update or delete the webhook later.
a78efd32-de3b-4854-b599-11ae9f98f97e"QRPH_SUCCESS" "QRPH_DECLINED"ENABLED or DISABLEDExample: "ENABLED""https://api.yourcompany.com/webhooks/modulus"400 Bad Request
400Causes:QRPH_SUCCESS, QRPH_DECLINED)ENABLED or DISABLED401 Unauthorized
409 Conflict
409Cause: Webhook URL already registered for this merchantResponse Example:500 Internal Server Error
500Cause: Unexpected server errorSolution:activation-code header to associate the webhook with a specific merchant:
activation-code header will be included in the request:
E-commerce Integration
POS System
Development and Testing
id in your database. You’ll need it to update or delete the webhook.DISABLED status during development. Test with the Simulate API before enabling.QRPH_SUCCESS and QRPH_DECLINED to handle all transaction outcomes.Webhook Endpoint is Ready
URL is Accessible
Authentication is Configured
Configuration is Correct
Webhook is Registered
Transactions Trigger Notifications
Automatic Retries
200 OK, Modulus Labs automatically retries up to 3 more times at 15-minute intervals.You Process Webhooks
HTTP Basic Authentication using your Secret Key as the username and an empty password
Optional activation code to identify which merchant this webhook belongs to. Used for multi-merchant environments.
Webhook created successfully
Unique identifier for the webhook
List of transaction events this webhook receives
QRPH_SUCCESS, QRPH_DECLINED Current status of the webhook
ENABLED, DISABLED The HTTPS URL where notifications are sent