Update Endpoint
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 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.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The Advanced Billing id for the endpoint that should be updated
Request Body
application/json
Used to Create or Update Endpoint.
Used to Create or Update Endpoint.
Response Body
application/json
application/json
curl -X PUT "https://example.com/endpoints/0.json" \ -H "Content-Type: application/json" \ -d '{ "endpoint": { "url": "https://your.site/webhooks/1/json.", "webhook_subscriptions": [ "payment_failure", "payment_success", "refund_failure", "invoice_pending" ] } }'{ "endpoint": { "id": 0, "url": "string", "site_id": 0, "status": "string", "webhook_subscriptions": [ "string" ] }}Create Endpoint POST
Creates an endpoint and assigns a list of webhook subscriptions (events) to it. See the [Webhooks Reference](https://maxio-test-wp.pages.dev/getting-started/webhooks/webhooks-reference#events) page for available events.
Read Site GET
Retrieves site data. For more information, see [Sites](https://maxio.zendesk.com/hc/en-us/sections/24250550707085-Sites) in the product documentation. Specifically, the [Clearing Site Data](https://maxio.zendesk.com/hc/en-us/articles/24250617028365-Clearing-Site-Data) section is relevant to this endpoint. #### Relationship invoicing enabled If the site has Relationship invoicing enabled, additional properties are returned in the response: ``` "customer_hierarchy_enabled": true, "whopays_enabled": true, "whopays_default_payer": "self" ``` For more information, see [Who Pays & Customer Hierarchy](https://maxio.zendesk.com/hc/en-us/articles/24252185211533-Customer-Hierarchies-WhoPays).