Create Endpoint
Built with APIMatic
Creates an endpoint and assigns a list of webhook subscriptions (events) to it. See the Webhooks Reference page for available events.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Used to Create or Update Endpoint.
application/json
application/json
curl -X POST \ --url 'https://subdomain.chargify.com/endpoints.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{ "endpoint": { "url": "https://your.site/webhooks", "webhook_subscriptions": [ "payment_success", "payment_failure", "invoice_pending" ] }}'Used to Create or Update Endpoint.