Update the webhook URL
PATCH/settingsSet or clear the webhook endpoint URL that receives event deliveries. Pass null to disable webhooks.
Headers
| Header | Description | Required |
|---|---|---|
| Authorization | Bearer token with your secret API key | yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| webhook_url | string | null | — |
Example Request
Request
const response = await fetch('https://checkout-api.exodus-int.com/settings', {
method: 'PATCH',
headers: {
Authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxx',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"webhook_url": "string"
}),
});Responses
| Status | Description |
|---|---|
| 200 | The updated webhook URL. |
| 400 | Validation error |
| 401 | Missing or invalid authentication |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
| webhook_url | string | null | yes |
Example Response
{
"webhook_url": "https://yoursite.com/webhooks/exodus"
}Error Response
Error (e.g. 400)
{
"error": {
"type": "validation_error",
"message": "amount must be a positive number",
"param": "amount"
}
}