跳到内容
API 文档

账户支付

检查附加到已认证账户的支付。

身份验证
每个请求都必须在 Authorization 头中发送与管理员 API 密钥匹配的 Bearer 令牌。 获取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"
    }
}