الانتقال إلى المحتوى
توثيق API

مدفوعات الحساب

فحص المدفوعات المرتبطة بالحساب المصادق عليه.

المصادقة
يجب أن يرسل كل طلب ترويسة Authorization مع رمز Bearer مطابق لمفتاح API الأدمن. احصل على مفتاح API.
توثيق API

نقطة النهاية
GET https://rqrcode.com/api/payments/
مثال
curl --request GET \
--url 'https://rqrcode.com/api/payments/' \
--header 'Authorization: Bearer {api_key}'
المعاملات
المعاملات التفاصيل الوصف
page
اختياري ui.admin.api_docs.common.types.عدد صحيح
رقم الصفحة التي تريد الحصول على النتائج لها. الافتراضي هو 1.
results_per_page
اختياري ui.admin.api_docs.common.types.عدد صحيح
عدد النتائج التي تريدها لكل صفحة. القيم المسموح بها هي: 10، 25، 50، 100، 250، 500، 1000. الافتراضي هو 25.
مثال على الاستجابة
{
    "data": [
        {
            "id": 1,
            "plan_id": 1,
            "processor": "stripe",
            "type": "one_time",
            "frequency": "monthly",
            "email": "[email protected]",
            "name": null,
            "total_amount": "4.99",
            "currency": "USD",
            "status": true,
            "datetime": "2026-04-20 07:54:53"
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://rqrcode.com/api/payments?page=1",
        "last": "https://rqrcode.com/api/payments?page=1",
        "next": null,
        "prev": null,
        "self": "https://rqrcode.com/api/payments?page=1"
    }
}

نقطة النهاية
GET https://rqrcode.com/api/payments/{payment_id}
مثال
curl --request GET \
--url 'https://rqrcode.com/api/payments/{payment_id}' \
--header 'Authorization: Bearer {api_key}'
المعاملات
لا توجد معاملات إضافية.
مثال على الاستجابة
{
    "data": {
        "id": 1,
        "plan_id": 1,
        "processor": "stripe",
        "type": "one_time",
        "frequency": "monthly",
        "email": "[email protected]",
        "name": null,
        "total_amount": "4.99",
        "currency": "USD",
        "status": true,
        "datetime": "2026-04-20 07:54:53"
    }
}