Payment Widget Verisi Getir
Payment widget için ödeme verisi ve contract bilgisi döner. Ödeme oluşturma yanıtındaki access_token kullanılır.
Endpoint: GET /api/v1/widget/payments/{id}
Kimlik Doğrulama: Bearer <access_token> (ödemeden, integration JWT değil).
Yanıt — 200 OK
{
"external_id": "...",
"node_id": "...",
"network_id": 1,
"deal_id": 123,
"price": 100.0,
"price_decimals": 6,
"payment_address": "...",
"diamond_address": "...",
"currency": "USDT",
"token_address": "...",
"contract": { "abi": [...], "function_name": "deposit", "arguments": [...] }
}
| Kod | Açıklama |
|---|---|
| 401 | Geçersiz veya süresi dolmuş access token |
| 404 | Ödeme bulunamadı |