Weav Docsv1

API reference / Webhooks

Remove your webhook URL

DELETE/v1/webhook-endpoint

Stops this mode's webhooks until a URL is set again.

Removes url and withdrawals_url. Only payments and checkouts created with a webhook_url still get webhooks, until you set a URL again.

Headers

  • AuthorizationstringRequired
    Bearer plus your API key. See Authentication.

Responses

200 OK

Removed (code 2000000). The withdrawals URL, if set, is removed too.

What data holds
  • webhook_endpointany | null

401 Unauthorized

Missing, malformed or unknown API key (code 4010000).

403 Forbidden

The key can't make this request (code 4030000): an address outside the key's IP allowlist, a live key before your live mode is on, or an account that isn't active. A live key sent from a browser is refused (code 4030001): keep live keys on your server.

404 Not Found

Not found in this mode for your account (code 4040000).

DELETE

Try it: Remove your webhook URL

Test mode
Authorization
cURL

Uses $WEAV_API_KEY, never your key. Paste it into a terminal, or import it into Postman.

Response

Send the request to see Weav's answer here.

curl -X DELETE https://api.weavpayments.com/v1/webhook-endpoint \
    -H "Authorization: Bearer $WEAV_API_KEY"
{
    "code": "2000000",
    "success": true,
    "message": "Webhook endpoint removed",
    "data": {
        "webhook_endpoint": null
    }
}