Skip to main content
GET
يعاين الموارد التي ستعيق خفض مستوى الخطة قبل الالتزام بالدفع، على مضيف Management API (‏api.scanova.io)، مصادَقًا عليه بمفتاح Management API الخام الخاص بك.
string
مطلوب
slug الخطة المستهدفة (من حقل slug في سرد الخطط المتاحة).
تعني مصفوفة violations الفارغة أن خفض المستوى نظيف حاليًا — لا شيء يحتاج إلى تغيير مسبقًا. هذا الطرف للقراءة فقط تمامًا ولا يغيّر شيئًا؛ يعيد استخدام نفس محرك القواعد الذي يطبّقه الدفع الفعلي تمامًا، لذا لا يمكن أن يتعارض مع ما سيحدث فعليًا عند المضي في خفض المستوى.

حقول الاستجابة

array
إدخال واحد لكل حصة لا يمكن للخطة المستهدفة استيعابها بالنظر إلى الاستخدام الحالي للحساب.
string
تاريخ انتهاء الخطة الحالية، أو null لخطة بلا تاريخ انتهاء.
integer | null
الأيام المتبقية حتى current_plan_expiry، أو null إذا لم يكن للخطة تاريخ انتهاء.
يعيد الرد 400 إذا كانت target_plan مفقودة.

طرق ذات صلة

التفويضات

Authorization
string
header
مطلوب

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

معلمات الاستعلام

target_plan
string
مطلوب

The target plan's slug.

الاستجابة

Violations that would block the downgrade (empty array if none), plus the current plan's remaining time.