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

HeaderTypeRequiredDescription
Content-TypestringYesMust be application/json
X-Idempotency-KeystringYesUnique key to prevent duplicate requests. Must be at least 12 characters long

Parameters

ParameterTypeRequiredDescription
amountnumberYesThe amount to be paid
order_idstringYesYour unique order identifier (max 20 characters)
currencystringYesThe payment currency. Supported: usdt
networkstringYesThe blockchain network. Supported: eth
metadataobjectNoAdditional 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

FieldTypeDescription
order_idstringYour reference order ID
amountstringThe requested payment amount
amount_receivedstring | nullThe amount received (null until confirmed)
statusstringOrder status. Possible values: pending, confirmed, expired, failed
currencystringThe payment currency
networkstringThe blockchain network
created_atstringISO 8601 timestamp of order creation
confirmed_atstring | nullISO 8601 timestamp when payment was confirmed
expires_atstringISO 8601 timestamp when the order expires
has_multiple_paymentsbooleanWhether multiple payments have been received
paymentsarrayArray of payment objects (empty until payment received)
addressstringThe cryptocurrency deposit address
metadataobjectYour provided metadata

Notes

  • Orders expire after 20 minutes (see expires_at field).
  • 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-Key for each order attempt.
  • The same idempotency key will return the existing order, not create a new one.