Webhooks
Create or update webhook endpoints
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.
post/webhooks
Request
- Base URLhttps://app-sandbox.resolvepay.com/api
- Auth
- HTTP bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"endpoint_url": "https://example.com/webhooks/resolve",
"events": {
"invoice.created": true,
"customer.created": true,
"customer.credit_decision_created": true,
"payment.created": true,
"payment.status_changed": true
}
}Response
Successful response with webhook endpoint subscriptions
Example response
[
{
"id": "whe_abc123def456",
"merchant_id": "mer_xyz789",
"endpoint_url": "https://example.com/webhooks/resolve",
"topic": {
"name": "invoice.created",
"description": "Triggered when a new invoice record is created"
},
"created_at": "2021-05-20T09:23:53+00:00",
"updated_at": "2021-05-20T09:23:53+00:00"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.