Create Endpoint
Creates an endpoint and assigns a list of webhook subscriptions (events) to it. See the Webhooks Reference page for available events.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Request Body
application/json
Used to Create or Update Endpoint.
Used to Create or Update Endpoint.
Response Body
application/json
application/json
curl -X POST "https://example.com/endpoints.json" \ -H "Content-Type: application/json" \ -d '{ "endpoint": { "url": "https://your.site/webhooks", "webhook_subscriptions": [ "payment_success", "payment_failure", "invoice_pending" ] } }'{ "endpoint": { "id": 1, "url": "https://your.site/webhooks", "site_id": 1, "status": "enabled", "webhook_subscriptions": [ "payment_success", "payment_failure", "invoice_pending" ] }}List Endpoints GET
Lists endpoints configured for a site.
Update Endpoint PUT
Updates an Endpoint. You can change the `url` of your endpoint or the list of `webhook_subscriptions` to which you are subscribed. See the [Webhooks Reference](https://maxio-test-wp.pages.dev/getting-started/webhooks/webhooks-reference#events) page for available events. Always send a complete list of events to which you want to subscribe. Sending a PUT request for an existing endpoint with an empty list of `webhook_subscriptions` will unsubscribe all events. If you want to unsubscribe from a specific event, send a list of `webhook_subscriptions` without the specific event key.