Skip to main content
POST
/
webhooks
/
:id
Update a webhook
curl --request POST \
  --url https://base_url/api/v1/webhooks/:id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "api_version": "<string>",
  "name": "<string>",
  "topics": [
    "REGISTRATIONS.EXISTING.VALIDATION_FAILED"
  ],
  "status": "ENABLED"
}'
{
  "message": "Successfully updated webhook."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
api_version
string

The version of the API for which you registered the webhook. This helps to maintain backward compatibility. If in newer versions the event payload is changed, your webhook will keep receiving the payload from this api version. This will be 'v1.0' for now and we will come up with more versions and a changelog later.

name
string

Optional name to define the purpose of the webhook.

topics
enum<string>[]

An array of topics to listen to. When any of these topics are triggered, the webhook will be pinged.

status
enum<string>

If the webhook is active or not. If a webhook is disabled it won't be called when a topic is triggered.

Available options:
ENABLED,
DISABLED

Response

Sales tax registration response

message
string
Example:

"Successfully updated webhook."