Card Required

card-required · 402

ليس في الحساب بطاقة مسجلة، فلن تشغل الـ API له compute.

كل الصفحات

البطاقة، أو الدفع بفاتورة اتفق عليه مشغل، يسمح للحساب بتشغيل compute.

إضافة إلى الحقول التي في كل خطأ، يضيف هذا النوع billingUrl.

الأسباب الشائعة

  • لم يضف الحساب بطاقة أبدا.

كيف تصلح الطلب

  • اطلب من المستخدم أن يضيف بطاقة على billingUrl: هذا في يده.
  • ثم أرسل النداء نفسه مرة أخرى.
  • اقرأ ما يعيق الطلب عبر ghaym cloud billing eligibility، أو GET /v1/billing/eligibility، قبل أن تعيد المحاولة.

مثال على الرد

json
{
  "type": "card-required",
  "title": "Card Required",
  "detail": "A card on file is required to run compute. Add one at https://auth.ghaym.me/account/billing.",
  "billingUrl": "https://auth.ghaym.me/account/billing",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/projects/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/services",
  "method": "POST",
  "instance": "POST /v1/projects/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/services",
  "status": 402,
  "docs": "https://ghaym.me/docs/errors/card-required"
}