Get trade by uuid.
GET /api/v1/orders/:merchant/:uuid
Path params:
:merchant— Merchant uuid:uuid— Trade uuid
Success: 200
Errors: 401, 404
Example curl:
curl -X GET https://api.averonplus.com/api/v1/orders/3fa85f64-5717-4562-b3fc-2c963f66afa6/3fa85f64-5717-4562-b3fc-2c963f66afa6 \
-H "X-Token: <token>" \
-H "Content-Type: application/json"
Example success response (200):
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"order_id": "ext-123",
"merchant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"state": "created",
"kind": "deposit",
"amount_cents": 1000,
"amount_currency": "USD",
"percent": 1.5,
"exchange_rate": 1.0,
"payment_data": {
"name": "Dan Shnider",
"number": "4242 4242 4242 4242",
"bank_name": "Bank Example"
},
"url": "https://pay.example.com/payment/3fa85f64"
}