/api/v1/ordersPublished contract, not open创建订单
锁定汇率并返回专用存入地址。订单携带已锁定的明细:它是可重放的,使您即使在数月后也能重建确切应用的价格。需要Idempotency-Key头。
身份验证: Authorization: Bearer … 参见身份验证
参数
| 字段 | 类型 | 描述 |
|---|---|---|
quoteId必需 | string | 已接受报价的标识符。 |
beneficiary必需 | object | 通道模式强加的字段。名称必须与已验证身份匹配:不允许第三方支付。 |
networkId必需 | string | 存入将发送到的网络。它决定返回的地址,以及在某些网络上的强制备注。 |
curl -sS -X POST https://fiatside.com/api/v1/orders \
-H 'Authorization: Bearer sk_live_...' \
-H 'Idempotency-Key: 7f3a1c92-5d0e-4a1b-9c2f-6b8e0d4a1f33' \
-H 'Content-Type: application/json' \
-d '{
"quoteId": "qt_01J9Z...",
"networkId": "tron",
"beneficiary": {
"railId": "sepa_instant",
"beneficiaryName": "Camille Dupont",
"iban": "FR7630001007941234567890185"
}
}'{
"reference": "K7Q4-M2XB",
"state": "AWAITING_DEPOSIT",
"deposit": {
"asset": "USDT",
"network": "tron",
"address": "T...",
"memo": null,
"amountBase": "1000000000",
"expiresAt": "2026-09-02T12:41:00Z"
},
"payout": { "railId": "sepa_instant", "netMinor": 91228, "currency": "EUR" },
"rateLock": { "midRate": "0.92168430", "lockedUntil": "2026-09-02T12:41:00Z" }
}- 备注在大多数网络上为null,在XRP、Stellar和TON上为必填。在这些网络上省略备注会丢失资金:一旦字段非null,就将其视为必填。
可能的错误: unauthorized, invalid_request, quote_expired, idempotency_conflict, beneficiary_rejected, country_not_served. 完整目录