API referenceWebhooks
Send a test event
POST
Scope: webhooks:manage
Sends a signed webhook.test event now and reports how your endpoint answered. Nothing is retried or kept.
sellerApiKeyheader
AuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
endpointId*stringFormat
uuidapplication/json- response
delivered*booleanTrue when your endpoint answered with a 2xx status.
statusCode*number|nullerror*|Why it failed: http_status, timeout, network, dns_failed, blocked_address or invalid_url.
curl -X POST 'https://api.bhaktibaazar.com/seller-api/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/test'Example Response
{ "delivered": true, "statusCode": 0, "error": "string"}Replace the signing secret POST
The new secret is in this response only. For 24 hours requests carry signatures from both secrets, so you can switch over without missing one.
Change a webhook endpoint PATCH
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.