cURL
curl --request POST \ --url https://sand.tranzor.io/api/v1/invoices \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": 10.5, "currency": "USD", "description": "Заказ #1234", "orderId": "order-1234", "metadata": "{\"userId\": 42}" } '
{ "success": true, "data": { "invoiceId": "<string>", "payUrl": "<string>", "status": "PENDING", "amount": 10.5, "currency": "USD", "orderId": "<string>", "addresses": [ { "chain": "ethereum", "address": "0x...", "expectedAmount": "<string>", "isToken": true, "tokenSymbol": "USDT" } ], "expiresAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z" } }
Создаёт новый платёжный инвойс. Возвращает адреса для оплаты и ссылку на страницу оплаты.
API ключ в формате trz_...
trz_...
Сумма в USD
0.01 <= x <= 1000000
USD
Описание платежа
500
Ваш ID заказа (уникальный)
200
Произвольные данные
2000
Инвойс создан
true
Show child attributes