Orders API
Create Order
Create a new payment order and generate a deposit address for the specified payment.
POST https://api.uzoba.xyz/v1/orders
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | Must be application/json |
X-Idempotency-Key | string | Yes | Unique key to prevent duplicate requests. Must be at least 12 characters long |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | The amount to be paid |
order_id | string | Yes | Your unique order identifier (max 20 characters) |
currency | string | Yes | The payment currency. Supported: usdt |
network | string | Yes | The blockchain network. Supported: eth |
metadata | object | No | Additional metadata for your reference |
Example Request
{
"amount": 20,
"currency": "usdt",
"network": "eth",
// optional
"metadata": {
"product_id": "prod_12352",
"invoice_number": "INV-2024-2001"
}
}Example Response
{
"data": {
"order_id": "CKFLFAY9",
"amount": "20.00",
"address": "0xE5180404c4B578mbbF2f5eD6AAfD244665Aa828d",
"amount_received": null,
"status": "pending",
"currency": "USDT",
"network": "ETH",
"created_at": "2026-08-27T11:45:13.000000Z",
"confirmed_at": null,
"expires_at": "2026-08-27T12:05:13.000000Z",
"has_multiple_payments": false,
"payments": [],
"metadata": {
"product_id": "prod_12352",
"invoice_number": "INV-2024-2001"
}
}
}Response Fields
| Field | Type | Description |
|---|---|---|
order_id | string | Your reference order ID |
amount | string | The requested payment amount |
amount_received | string | null | The amount received (null until confirmed) |
status | string | Order status. Possible values: pending, confirmed, expired, failed |
currency | string | The payment currency |
network | string | The blockchain network |
created_at | string | ISO 8601 timestamp of order creation |
confirmed_at | string | null | ISO 8601 timestamp when payment was confirmed |
expires_at | string | ISO 8601 timestamp when the order expires |
has_multiple_payments | boolean | Whether multiple payments have been received |
payments | array | Array of payment objects (empty until payment received) |
address | string | The cryptocurrency deposit address |
metadata | object | Your provided metadata |
Notes
- Orders expire after 20 minutes (see
expires_atfield). - The generated address is valid only for this specific order.
- Send the exact amount in the specified currency to the provided address.
- Always include a unique
X-Idempotency-Keyfor each order attempt. - The same idempotency key will return the existing order, not create a new one.