API referenceWebhooks
Change a webhook endpoint
PATCH
Scope: webhooks:manage
Change its URL, events or description, or switch it off and on. Switching off ends waiting deliveries; events in between are not queued, so read them from GET /events.
sellerApiKeyheader
AuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
endpointId*stringFormat
uuidapplication/json- body
url?stringLength
length <= 2048events?array<>description?|null removes it.
Length
length <= 120enabled?booleanfalse pauses sending; events in between are not queued (read them from GET /events). true switches it back on, also after it was switched off for failing.
application/json- response
id*stringFormat
uuidurl*stringdescription*string|nullevents*array<>enabled*booleandisabledReason*|seller: you switched it off. failing: every attempt failed for 24 hours, so we switched it off.
Value in
"seller""failing"disabledAt*|Format
date-timefailingSince*|When the current run of failures began; null after any success.
Format
date-timepreviousSecretExpiresAt*|After a secret rotation, the old secret also signs until this time.
Format
date-timecreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -X PATCH 'https://api.bhaktibaazar.com/seller-api/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "description": "string", "events": [ "order.created" ], "enabled": true, "disabledReason": "seller", "disabledAt": "2019-08-24T14:15:22Z", "failingSince": "2019-08-24T14:15:22Z", "previousSecretExpiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}