API referenceWebhooks
Replace the signing secret
POST
Scope: webhooks:manage
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.
sellerApiKeyheader
AuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
endpointId*stringFormat
uuidapplication/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-timesecret*stringThe signing secret, whsec_…. Shown only now; store it to verify the webhook-signature header.
curl -X POST 'https://api.bhaktibaazar.com/seller-api/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret'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", "secret": "string"}