Webhooks
Webhook endpoints
GEThttps://api.razza.sa/v1/webhook-endpoints
The app's webhook endpoints.
Any app
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Page size, 50 by default. |
cursor | query | string | next_cursor from the page before. |
updated_since | query | date-time | Only rows changed at or after this moment. A time without an offset is read as Riyadh time. |
Responses
- 200OK
dataarray ofWebhookEndpointnext_cursorstringor null - 400A parameter or the body is not valid.
Error - 401No access token, or it is not valid.
Error - 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.
Error - 429Over the app's rate limit. Wait Retry-After seconds.
Error
Subscribe to events
POSThttps://api.razza.sa/v1/webhook-endpoints
Adds an https endpoint for the events listed. Each event needs the permission that reads its record.
Any app
Request body
| Field | Type | Description |
|---|---|---|
urlrequired | uri | https only, up to 500 characters. |
eventsrequired | array ofstringOne of: booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created |
Responses
- 201Subscribed
WebhookEndpointCreated - 400A parameter or the body is not valid.
Error - 401No access token, or it is not valid.
Error - 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.
Error - 409webhook_limit: the app has the most endpoints it may.
Error - 429Over the app's rate limit. Wait Retry-After seconds.
Error
Unsubscribe
DELETEhttps://api.razza.sa/v1/webhook-endpoints/{endpoint_id}
Removes the endpoint. Deliveries still queued are dropped.
Any app
Parameters
| Name | In | Type | Description |
|---|---|---|---|
endpoint_idrequired | path | string | The webhook endpoint's id. |
Responses
- 204Removed
- 400A parameter or the body is not valid.
Error - 401No access token, or it is not valid.
Error - 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.
Error - 404Not found in this business.
Error - 429Over the app's rate limit. Wait Retry-After seconds.
Error
Deliveries
GEThttps://api.razza.sa/v1/webhook-endpoints/{endpoint_id}/deliveries
The endpoint's deliveries in the last 30 days, newest first.
Any app
Parameters
| Name | In | Type | Description |
|---|---|---|---|
endpoint_idrequired | path | string | The webhook endpoint's id. |
limit | query | integer | Page size, 50 by default. |
cursor | query | string | next_cursor from the page before. |
updated_since | query | date-time | Only rows changed at or after this moment. A time without an offset is read as Riyadh time. |
Responses
- 200OK
dataarray ofWebhookDeliverynext_cursorstringor null - 400A parameter or the body is not valid.
Error - 401No access token, or it is not valid.
Error - 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.
Error - 404Not found in this business.
Error - 429Over the app's rate limit. Wait Retry-After seconds.
Error