Chuyển đến nội dung
Tài liệu API

Thanh toán tài khoản

Kiểm tra các khoản thanh toán gắn với tài khoản đã xác thực.

Xác thực
Mỗi yêu cầu phải gửi header Authorization với token Bearer khớp với khóa API quản trị. Lấy khóa API.
Tài liệu API

Endpoint API
GET https://rqrcode.com/api/payments/
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/payments/' \
--header 'Authorization: Bearer {api_key}'
Tham số
Tham số Chi tiết Mô tả
page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số trang mà bạn muốn lấy kết quả. Mặc định là 1.
results_per_page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số kết quả bạn muốn trên mỗi trang. Giá trị được phép: 10, 25, 50, 100, 250, 500, 1000. Mặc định là 25.
Ví dụ phản hồi
{
    "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"
    }
}

Endpoint API
GET https://rqrcode.com/api/payments/{payment_id}
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/payments/{payment_id}' \
--header 'Authorization: Bearer {api_key}'
Tham số
Không có tham số bổ sung.
Ví dụ phản hồi
{
    "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"
    }
}