Webhooks
Register a webhook
Changed onCreates a new webhook. Webhooks are registered per merchant_code and per environment: the environment is determined by the secret key you authorize the request with — a production key (sk_...) registers webhooks for production payments, a test key (sk_test_...) registers webhooks for test payments. Each merchant_code + key pair can have up to 4 webhooks.
post/api/v1/webhooks
Request
- Base URLhttps://api.tabby.ai
- URLhttps://api.tabby.ai/api/v1/webhooks
- AuthHTTP bearer
Headers
X-Merchant-Codestring required
Example:code provided to you from Tabby side
Used for multi store/countries setup, please contact your Account manager to recognize that
Request body
Example request
{
"url": "https://example.com/",
"header": {
"title": "Arbitrary header name to sign the request",
"value": "Random string to sign the request"
}
}Response
Success. Webhook object is returned.
Example response
{
"header": {
"title": "Arbitrary header name to sign the request",
"value": "Random string to sign the request"
},
"id": "unique webhook id",
"url": "https://example.com/"
}Changes
- breaking
the response's body type changed from
stringtoobjectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking