定期付款清單

post https://api.cryptomus.com/v1/recurrence/list 複製

要求

查詢參數

無參數

請求範例


curl https://api.cryptomus.com/v1/recurrence/list \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: f80fa426a89eb62bd53997326865d850' \
-H 'Content-Type: application/json' \
-d '{}'
複製

回覆

響應參數

姓名定義
items按此了解更多: 結構
paginate按此了解更多: 結構

定義

按此了解更多: 結構

定義

按此了解更多: 結構

分頁

若要取得下一頁/上一頁的記錄,請在查詢參數中指定下一頁/上一頁遊標雜湊(?cursor=)

例子:


1curl https://api.cryptomus.com/v1/recurrence/list?cursor=eyJpZCI6MjEyLCJ fcG9pbnRzVzVG9OZhXh0SXRlbXMiOnRydWV9 \
2-X POST -H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
3-H 'sign: f80fa426a89eb62bd53997326865d850' \
4-H 'Content-Type: application/json' \
5-d '{}'
6
複製

回應範例


1{
2  "state": 0,
3  "result": {
4    "items": [
5      {
6        "uuid": "bbe5ce96-1126-4843-a0d2-b432e77669c2",
7        "name": "Access to personal account",
8        "order_id": "1487555",
9        "amount": "5.00",
10        "currency": "USD",
11        "payer_currency": "USDT",
12        "payer_amount_usd": "5.00",
13        "payer_amount": "5.00",
14        "url_callback": null,"discount_days": "30",
15        "discount_amount": "50.00",
16        "end_of_discount": null,
17        "period": "weekly",
18        "status": "wait_accept",
19        "url": "https://api.cryptomus.com/pay/bbe5ce96-1126-4843-a0d2-b432e77669c2",
20        "last_pay_off": null
21      }
22    ],
23    "paginate": {
24      "count": 1,
25      "hasPages": false,
26      "nextCursor": null,
27      "previousCursor": null,
28      "perPage": 8
29    }
30  }
31}
32
複製