Create a new webhook endpoint or update an existing one. If an endpoint with the same URL already exists, it will be updated with the new event subscriptions.
Security
bearerAuth or basicAuth
The HTTPS URL where webhook events will be sent. Must use HTTPS protocol.
Example:"https://example.com/webhooks/resolve"
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/webhooks
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/webhooks
- bearerAuth
- basicAuth
- Subscribe to specific events
- Unsubscribe from specific events
curl -i -X POST \
https://docs.resolvepay.com/_mock/merchant-api/openapi/webhooks \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"endpoint_url": "https://example.com/webhooks/resolve",
"events": {
"invoice.created": true,
"invoice.balance_updated": true,
"customer.created": true,
"customer.credit_decision_created": true
}
}'Successful response with webhook endpoint subscriptions
Array []
The HTTPS URL where webhook events will be sent
Example:"https://example.com/webhooks/resolve"
When this webhook endpoint subscription was created
Example:"2021-05-20T09:23:53+00:00"
Response
- Newly created webhook endpoint subscriptions
- Updated webhook endpoint with new event subscriptions
[ { "id": "whe_abc123def456", "merchant_id": "mer_xyz789", "endpoint_url": "https://example.com/webhooks/resolve", "topic": { … }, "created_at": "2021-05-20T09:23:53+00:00", "updated_at": "2021-05-20T09:23:53+00:00" }, { "id": "whe_def456ghi789", "merchant_id": "mer_xyz789", "endpoint_url": "https://example.com/webhooks/resolve", "topic": { … }, "created_at": "2021-05-20T09:23:53+00:00", "updated_at": "2021-05-20T09:23:53+00:00" }, { "id": "whe_ghi789jkl012", "merchant_id": "mer_xyz789", "endpoint_url": "https://example.com/webhooks/resolve", "topic": { … }, "created_at": "2021-05-20T09:23:53+00:00", "updated_at": "2021-05-20T09:23:53+00:00" } ]