This endpoint creates a new webhook subscription to receive real-time notifications for specified events.
The request body requires a CreateSubscriptionRequest object, which includes the url for the webhook, the events to subscribe to, and a shared_secret for verifying request signatures.
Security
CodeBearer(Required scopes: subscriptions.write)
Which types of events this webhook should be invoked for.
- Production serverhttps://api.business.jiko.io/api/v1/subscriptions/
- Sandbox serverhttps://customer-api.sandbox-api.jikoservices.com/api/v1/subscriptions/
- RetryPolicy
- null
curl -i -X POST \
https://api.business.jiko.io/api/v1/subscriptions/ \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"description": "",
"events": [
"string"
],
"url": "http://example.com",
"retry_policy": {
"retry_on_status_codes": [
0
],
"backoff_coefficient": 1,
"maximum_attempts": 1,
"initial_interval_seconds": 30,
"maximum_interval_seconds": 300
},
"shared_secret": "stringstringstri"
}'