To'lov haqida ma'lumot

post
https://api.cryptomus.com/v1/payout/info
Nusxa ko'chirmoq

Talab qilmoq

So'rov parametrlari

IsmParametr turiTa'rif
uuiduuidrequired_without: order_idPul to'laydigan uuid
order_idstringmin:1max:32alpha_dashrequired_without: uuidTo'lov buyurtmasi identifikatori

Parametr turi

uuidrequired_without: order_id

Ta'rif

Pul to'laydigan uuid

Parametr turi

stringmin:1max:32alpha_dashrequired_without: uuid

Ta'rif

To'lov buyurtmasi identifikatori
To'lov ma'lumotlarini olish uchun siz ikkalasini ham olsangiz, to'lovni order_id bilan aniqlang.

Misolga misol


1curl https://api.cryptomus.com/v1/payout/info \
2-X POST \
3-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
4-H 'sign: fe99035f86fa436181717b302b95bacff1' \
5-H 'Content-Type: application/json' \
6-d '{
7    "uuid": "8b03432e-385b-4670-8d06-064591096795"
8}'
9
Nusxa ko'chirmoq

Javob

Javob parametrlari

To'lov ob'ekti - ko'rmoq

Javob namunasi


1{
2    "state": 0,
3    "result": {
4        "uuid": "a7c0caec-a594-4aaa-b1c4-77d511857594",
5        "amount": "3",
6        "currency": "USDT",
7        "network": "TRON",
8        "address": "TJ...",
9        "txid": null,
10        "status": "process",
11        "is_final": false,
12        "balance": 129,
13        "payer_currency": "USD",
14        "payer_amount": 3
15    }
16}
17
Nusxa ko'chirmoq

Mumkin bo'lgan xatolar

Tasdiqlash xatolari

kod : 422

Misol javoblar:

Agar siz UUID va buyurtma_IDdan o'tolmasangiz, ushbu xabarni olasiz. Bu shuni anglatadiki, kamida parametrlardan biri talab qilinadi.


1{
2	"state": 1,
3	"errors": {
4		"uuid": ["validation.required_without"],
5		"order_id": ["validation.required_without"]
6	}
7}
Nusxa ko'chirmoq