Create a webhook for a seller
POST
/sellers/{seller_id}/webhooksAuthorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
seller_idintegerrequiredRequest body
requiredapplication/jsontopicstringrequiredSupported topics: `orders.created`, `orders.updated`,
`orders.updated.closed`, `orders.updated.shipped`,
`contacts.created`, `contacts.updated`, `products.created`,
`products.updated`, `products.deleted`
urlstringrequirednotify_originbooleanIf false, does not notify the request-originating host
default: false
authobjectShow propertiesHide properties
typestringdefault: "none"
Allowed:
nonebasicusernamestringpasswordstringResponses
201Webhook created
_linksHalLinksidintegerchannel_idintegertopicstringurlstringstatusstring`active` — receiving deliveries normally.
`failed_activation` — the initial activation handshake failed.
`failed` — disabled automatically after 100 consecutive non-2xx delivery
responses (see `error_count`); can be re-enabled via
`PUT /webhooks/{id}/reactivate`.
`disabled` — the target URL returned `410 Gone`; disabled immediately,
with no retry threshold. Also reactivatable via the same endpoint.
Allowed:
activefailed_activationfaileddisabledauthobjectnotify_originbooleanapp_idintegererror_countintegerlast_errorstringlast_error_onstring<date-time>created_onstring<date-time>updated_onstring<date-time>403Token lacks the scope required to subscribe to this topic
Request
curl -X POST "https://api.onbolder.com/v2/sellers/0/webhooks" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"topic": "orders.created",
"url": "https://myapp.com/webhook"
}'const response = await fetch("https://api.onbolder.com/v2/sellers/0/webhooks", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"topic": "orders.created",
"url": "https://myapp.com/webhook"
})
});import requests
response = requests.post(
"https://api.onbolder.com/v2/sellers/0/webhooks",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"topic": "orders.created",
"url": "https://myapp.com/webhook"
},
)Response
{
"id": 101,
"channel_id": 5,
"topic": "orders.created",
"url": "https://myapp.com/webhook",
"status": "pending",
"notify_origin": false,
"_links": {
"self": {
"href": "https://api.onbolder.com/v2/webhooks/101"
}
}
}Token lacks the scope required to subscribe to this topic