Skip to content
العربية

Webhooks

Webhook endpoints

GEThttps://api.razza.sa/v1/webhook-endpoints

The app's webhook endpoints.

Any app

Parameters

NameInTypeDescription
limitqueryintegerPage size, 50 by default.
cursorquerystringnext_cursor from the page before.
updated_sincequerydate-timeOnly rows changed at or after this moment. A time without an offset is read as Riyadh time.

Responses

  • 200OKdataarray 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

FieldTypeDescription
urlrequiredurihttps only, up to 500 characters.
eventsrequiredarray ofstring
One of:booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created

Responses

  • 201SubscribedWebhookEndpointCreated
  • 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

NameInTypeDescription
endpoint_idrequiredpathstringThe 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

NameInTypeDescription
endpoint_idrequiredpathstringThe webhook endpoint's id.
limitqueryintegerPage size, 50 by default.
cursorquerystringnext_cursor from the page before.
updated_sincequerydate-timeOnly rows changed at or after this moment. A time without an offset is read as Riyadh time.

Responses

  • 200OKdataarray 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