Errors
Errors come as {"error": {"code", "message", "message_ar"}}, with the message in English and Arabic.
booking_refused and customer_refused add reasons: the error codes the owner portal shows for the same refusal, such as BOOKING_CONFLICT_EXISTS or BOOKING_STAFF_NOT_SCHEDULED. Three are the API’s own: HOME_VISIT_UNSUPPORTED, for home visits, which apps can’t book or move yet; BOOKING_HELD_FOR_PAYMENT, for a booking waiting for the customer’s online payment; and BOOKING_NOT_EDITABLE, for a change other than notes to a booking that is no longer booked.
| HTTP | Code | Message |
|---|---|---|
| 401 | missing_token | Send an access token in the Authorization header as Bearer <token>.يلزم إرسال رمز الوصول في ترويسة Authorization بالصيغة Bearer <token>. |
| 401 | invalid_token | The access token is invalid or has expired.رمز الوصول غير صالح أو انتهت صلاحيته. |
| 403 | business_inactive | This business is not active on razza.هذه المنشأة غير مفعّلة في رزّة. |
| 403 | plan_required | The Open API is part of the Qimma plan.الواجهة البرمجية المفتوحة متاحة في باقة قمّة. |
| 403 | subscription_locked | This business's razza subscription has an unpaid invoice, so the API is paused.على اشتراك المنشأة في رزّة فاتورة غير مدفوعة، لذا الواجهة البرمجية متوقفة مؤقتاً. |
| 403 | permission_required | This app doesn't have the {permission} permission.لا يملك هذا التطبيق صلاحية {permission}. |
| 403 | restricted | This app has the {restriction} restriction, which doesn't allow this.على هذا التطبيق القيد {restriction}، ولا يسمح بهذا الطلب. |
| 429 | rate_limited | Too many requests. Try again in {seconds} seconds.تجاوز عدد الطلبات الحد المسموح. يمكن المحاولة مجدداً بعد {seconds} ثانية. |
| 400 | invalid_cursor | The cursor is not one this API gave.قيمة المؤشر cursor ليست من هذه الواجهة. |
| 400 | invalid_parameter | The {parameter} parameter is not valid.قيمة المعامل {parameter} غير صالحة. |
| 400 | unknown_parameter | This endpoint has no {parameter} parameter.لا يقبل هذا الطلب المعامل {parameter}. |
| 400 | invalid_body | Send a JSON object as the request body.يلزم إرسال كائن JSON في جسم الطلب. |
| 422 | idempotency_key_reused | This Idempotency-Key was already used for a different request.استُخدم مفتاح Idempotency-Key هذا لطلب مختلف من قبل. |
| 422 | booking_refused | razza refused this booking. The reasons field lists why.رفضت رزّة هذا الحجز. يوضّح الحقل reasons السبب. |
| 412 | booking_changed | The booking changed after you read it. Fetch it again and send its new version in If-Match.تغيّر الحجز بعد قراءته. يلزم جلبه مجدداً وإرسال نسخته الجديدة في If-Match. |
| 422 | customer_refused | razza refused this change to the customer. The reasons field lists why.رفضت رزّة هذا التعديل على العميل. يوضّح الحقل reasons السبب. |
| 400 | webhook_url | The webhook URL must be https and reach a public address.يجب أن يبدأ عنوان الـ webhook بـ https وأن يصل إلى عنوان عام. |
| 409 | webhook_limit | This app already has the most webhook endpoints it may have ({limit}).لدى هذا التطبيق الحد الأقصى من عناوين الـ webhook ({limit}). |
| 404 | not_found | Not found.غير موجود. |
| 405 | method_not_allowed | This method isn't allowed here.هذه الطريقة غير مسموحة هنا. |
| 400 | invalid_request | Send grant_type, client_id and client_secret.يلزم إرسال grant_type وclient_id وclient_secret. |
| 401 | invalid_client | The client ID or secret is wrong, or the app was revoked.معرّف التطبيق أو المفتاح السري غير صحيح، أو أُلغي التطبيق. |
| 429 | too_many_requests | Too many token requests from this address. Try again in an hour.تجاوز عدد طلبات الرمز من هذا العنوان الحد المسموح. يمكن المحاولة مجدداً بعد ساعة. |
| 400 | unsupported_grant_type | Only the client_credentials grant is supported.النوع المدعوم هو client_credentials فقط. |