Thanh toán tài khoản
GET https://www.myshorturl.link/api/payments/
curl --request GET \
--url 'https://www.myshorturl.link/api/payments/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.myshorturl.link/api/payments/' \
--header 'Authorization: Bearer {api_key}' \
Tham số. | Details | Description |
---|---|---|
page | Tùy chọn. Số nguyên | Số trang mà bạn muốn kết quả từ đó. Mặc định là 1 . |
results_per_page | Tùy chọn. Số nguyên | Bạn muốn bao nhiêu kết quả trên mỗi trang. Giá trị cho phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mặc định là 25 . |
{
"data": [
{
"id": 1,
"plan_id": 1,
"processor": "stripe",
"type": "one_time",
"frequency": "monthly",
"email": "example@example.com",
"name": null,
"total_amount": "4.99",
"currency": "USD",
"status": true,
"datetime": 2025-03-15 11:24:37 },
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://www.myshorturl.link/api/payments?&page=1",
"last": "https://www.myshorturl.link/api/payments?&page=1",
"next": null,
"prev": null,
"self": "https://www.myshorturl.link/api/payments?&page=1"
}
}
GET https://www.myshorturl.link/api/payments/{payment_id}
curl --request GET \
--url 'https://www.myshorturl.link/api/payments/{payment_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.myshorturl.link/api/payments/{payment_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"plan_id": 1,
"processor": "stripe",
"type": "one_time",
"frequency": "monthly",
"email": "example@example.com",
"name": null,
"total_amount": "4.99",
"currency": "USD",
"status": true,
"datetime": 2025-03-15 11:24:37 }
}