Webhooks

Update Endpoint

PUT
/endpoints/{endpoint_id}.json

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
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

endpoint_id*integer

The Advanced Billing id for the endpoint that should be updated

Request Body

application/json

Used to Create or Update Endpoint.

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"    ]  }}