付款資訊

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

要求

查詢參數

姓名參數類型定義
uuid*uuidrequired_without: order_id重複 uuid
order_id*stringmin:1max:128alpha_dashrequired_without: uuid重複訂單 ID

參數類型

uuidrequired_without: order_id

定義

重複 uuid

參數類型

stringmin:1max:128alpha_dashrequired_without: uuid

定義

重複訂單 ID

* - 必需參數

若要取得定期付款狀態,您需要傳遞一個必要參數,如果同時傳遞兩個參數,則該帳戶將透過 order_id

請求範例


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

回覆

響應參數

付款對象 -

回應範例



可能的錯誤

驗證錯誤

程式碼 : 422

範例回覆:

如果您不傳遞 uuid 和 order_id,您將收到此訊息。這意味著至少需要一個參數。


1{
2	"state": 1,
3	"errors": {
4		"uuid": ["validation.required_without"],
5		"order_id": ["validation.required_without"]
6	}
7}
複製