الأخطاء
تصل الأخطاء بالشكل {"error": {"code", "message", "message_ar"}}، مع الرسالة بالإنجليزية والعربية.
يضيف booking_refused وcustomer_refused الحقل reasons: رموز الأخطاء التي تعرضها لوحة رزّة للرفض نفسه، مثل BOOKING_CONFLICT_EXISTS أو BOOKING_STAFF_NOT_SCHEDULED. وثلاثة رموز خاصة بالواجهة: HOME_VISIT_UNSUPPORTED للزيارات المنزلية، التي لا يمكن للتطبيقات حجزها أو نقلها بعد، وBOOKING_HELD_FOR_PAYMENT لحجز بانتظار الدفع الإلكتروني من العميل، وBOOKING_NOT_EDITABLE لأي تعديل غير الملاحظات على حجز لم يعد بحالة محجوز.
| HTTP | الرمز | الرسالة |
|---|---|---|
| 401 | missing_token | يلزم إرسال رمز الوصول في ترويسة Authorization بالصيغة Bearer <token>.Send an access token in the Authorization header as 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 | لا يملك هذا التطبيق صلاحية {permission}.This app doesn't have the {permission} permission. |
| 403 | restricted | على هذا التطبيق القيد {restriction}، ولا يسمح بهذا الطلب.This app has the {restriction} restriction, which doesn't allow this. |
| 429 | rate_limited | تجاوز عدد الطلبات الحد المسموح. يمكن المحاولة مجدداً بعد {seconds} ثانية.Too many requests. Try again in {seconds} seconds. |
| 400 | invalid_cursor | قيمة المؤشر cursor ليست من هذه الواجهة.The cursor is not one this API gave. |
| 400 | invalid_parameter | قيمة المعامل {parameter} غير صالحة.The {parameter} parameter is not valid. |
| 400 | unknown_parameter | لا يقبل هذا الطلب المعامل {parameter}.This endpoint has no {parameter} parameter. |
| 400 | invalid_body | يلزم إرسال كائن JSON في جسم الطلب.Send a JSON object as the request body. |
| 422 | idempotency_key_reused | استُخدم مفتاح Idempotency-Key هذا لطلب مختلف من قبل.This Idempotency-Key was already used for a different request. |
| 422 | booking_refused | رفضت رزّة هذا الحجز. يوضّح الحقل reasons السبب.razza refused this booking. The reasons field lists why. |
| 412 | booking_changed | تغيّر الحجز بعد قراءته. يلزم جلبه مجدداً وإرسال نسخته الجديدة في If-Match.The booking changed after you read it. Fetch it again and send its new version in If-Match. |
| 422 | customer_refused | رفضت رزّة هذا التعديل على العميل. يوضّح الحقل reasons السبب.razza refused this change to the customer. The reasons field lists why. |
| 400 | webhook_url | يجب أن يبدأ عنوان الـ webhook بـ https وأن يصل إلى عنوان عام.The webhook URL must be https and reach a public address. |
| 409 | webhook_limit | لدى هذا التطبيق الحد الأقصى من عناوين الـ webhook ({limit}).This app already has the most webhook endpoints it may have ({limit}). |
| 404 | not_found | غير موجود.Not found. |
| 405 | method_not_allowed | هذه الطريقة غير مسموحة هنا.This method isn't allowed here. |
| 400 | invalid_request | يلزم إرسال grant_type وclient_id وclient_secret.Send grant_type, client_id and 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 | النوع المدعوم هو client_credentials فقط.Only the client_credentials grant is supported. |