> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# الحصول على تفاصيل طلب خدمة منصة AceDataCloud

> Platform API guide - Ace Data Cloud

احصل على الحالة الكاملة لطلب خدمة واحد عبر Application ID — يتضمن حقولًا إضافية مقارنةً بواجهة القائمة، مثل كائن `service` الكامل (بما في ذلك باقات `packages`)، وهو مناسب لصفحة التفاصيل.

> ℹ️ تنتمي هذه الواجهة إلى **API إدارة منصة AceDataCloud**، والبادئة الموحدة هي `https://platform.acedata.cloud/api/v1/`. راجع فهرس الواجهات الكامل في [الحصول على قائمة وثائق منصة AceDataCloud](https://platform.acedata.cloud/documents/platform-document-list).

## نظرة عامة على الواجهة

| البند | المحتوى |
| - | - |
| الطريقة | `GET` |
| URL | `https://platform.acedata.cloud/api/v1/applications/{application_id}` |
| المصادقة | ✅ يتطلب رمز حساب |

كلا المسارين `/applications/{id}` و`/applications/{id}/` متاحان حاليًا؛ وتستخدم الأمثلة بشكل موحد صيغة بدون شرطة مائلة في النهاية.

## شرح المصادقة (كيفية الحصول على رمز الحساب)

رأس الطلب:

```http theme={null}
Authorization: Bearer ${PLATFORM_TOKEN}
```

راجع طريقة الحصول التفصيلية في [إدارة رمز حساب منصة AceDataCloud](https://platform.acedata.cloud/documents/platform-token).

> ℹ️ بخلاف واجهة القائمة، يتم **التحقق من صلاحيات واجهة التفاصيل مباشرةً على الكائن الفردي**، ولا حاجة لتمرير `?user_id=`. لكن عند الوصول إلى طلب شخص آخر، ستحصل على `403 permission_denied`.

## معلمات المسار

| المعلمة | النوع | مطلوب | الوصف |
| - | - | - | - |
| `application_id` | UUID | ✅ | Application ID |

## أمثلة الطلبات

### cURL

```shell theme={null}
curl 'https://platform.acedata.cloud/api/v1/applications/82f57141-2323-4453-8730-60f7d833a2da' \
  -H 'accept: application/json' \
  -H "authorization: Bearer ${PLATFORM_TOKEN}"
```

### Python

```python theme={null}
import os
import requests

app_id = "82f57141-2323-4453-8730-60f7d833a2da"
resp = requests.get(
    f"https://platform.acedata.cloud/api/v1/applications/{app_id}",
    headers={
        "accept": "application/json",
        "authorization": f"Bearer {os.environ['PLATFORM_TOKEN']}",
    },
    timeout=10,
)
app = resp.json()
print(f"服务：{app['service']['title']}")
print(f"剩余 {app['remaining_amount']} {app['service']['unit']} / 已用 {app['used_amount']}")
```

### Node.js

```javascript theme={null}
const appId = '82f57141-2323-4453-8730-60f7d833a2da'
const r = await fetch(`https://platform.acedata.cloud/api/v1/applications/${appId}`, {
  headers: { authorization: `Bearer ${process.env.PLATFORM_TOKEN}` },
})
console.log(await r.json())
```

## مثال الاستجابة (HTTP 200)

```json theme={null}
{
  "id": "82f57141-2323-4453-8730-60f7d833a2da",
  "service_id": "38ecf158-36f2-42f2-8e7f-6786cdfc2452",
  "remaining_amount": 100.0,
  "used_amount": 12.34,
  "paid": true,
  "user_id": "89518d07-5560-4b05-92c1-667f3ddf6a4b",
  "disabled": false,
  "allow_consume_global": false,
  "scope": "Individual",
  "type": "Usage",
  "expired_at": null,
  "tags": null,
  "metadata": null,
  "service": {
    "id": "38ecf158-36f2-42f2-8e7f-6786cdfc2452",
    "alias": "openai",
    "title": "OpenAI",
    "type": "Api",
    "unit": "Credit",
    "free_amount": 1.0,
    "packages": [
      { "id": "...", "type": "Usage", "price": 10.0, "amount": 100.0 }
    ]
  },
  "created_at": "2026-04-26T07:52:27.462400Z",
  "updated_at": "2026-04-26T08:42:13.123456Z"
}
```

## شرح حقول الاستجابة

معاني الحقول هي نفسها في [واجهة القائمة](https://platform.acedata.cloud/documents/platform-application-list)، مع إضافة:

| الحقل | النوع | الوصف |
| - | - | - |
| `service` | object | كائن الخدمة الكامل (بما في ذلك باقات `packages` و`unit` و`free_amount`)، ويمكن استخدامه مباشرةً لعرض لوحة تفاصيل الخدمة |

## معالجة الأخطاء

| HTTP | code | المعنى |
| - | - | - |
| 401 | `not_authenticated` | رمز الحساب مفقود |
| 403 | `permission_denied` | هذا الـ Application لا يخصك |
| 404 | `not_found` | الـ Application غير موجود أو تم حذفه |

## نصائح عملية

* **استخدم القائمة أولًا للمراقبة الجماعية**: بعد جلب قائمة Applications دفعةً واحدة، احكم وفقًا لوحدات وحدود كل خدمة، لتجنب طلب التفاصيل بشكل فردي.
* **عند الحاجة إلى عرض عدد بيانات الاعتماد**: استخدم [قائمة بيانات اعتماد API](https://platform.acedata.cloud/documents/platform-credential-list) للتصفية حسب `application_id`.
* **منهجية التحقق من `disabled=true`**: تحقق من التذاكر / إشعارات البريد الإلكتروني لمعرفة ما إذا تم الإيقاف بسبب التحكم بالمخاطر أو المتأخرات أو الاستدعاءات المخالفة؛ لا يمكن إلغاء ذلك عبر API، ويجب الاتصال بخدمة العملاء.

## الواجهات ذات الصلة

* [الحصول على قائمة طلبات خدمة منصة AceDataCloud](https://platform.acedata.cloud/documents/platform-application-list)
* [إنشاء طلب خدمة لمنصة AceDataCloud](https://platform.acedata.cloud/documents/platform-application-create)
* [إعداد مشاركة الرصيد العالمي لتطبيق منصة AceDataCloud](https://platform.acedata.cloud/documents/platform-application-consume-global)
* [الحصول على قائمة بيانات اعتماد API لمنصة AceDataCloud](https://platform.acedata.cloud/documents/platform-credential-list)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.