# Get Order Details: Get an order created with your secret API key

The get order details API endpoint allows you to retrieve the details of an order you submitted.

TIP

Replace the $orderId in the curl command below with the order ID of an order you created.

If you have been following the tutorial, then in the last step you created an order. The response should have included an id field that contains the order id. The order id looks like this: tx-yo7g97md36

curl --location --request GET 'https://app.sandbox.kaoshinetwork.com/api/api/v1//order/$orderId' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer secret-api-token'
1
2
3

The response is an order object, which should match the order created previously.

{
    "id": "tx-yo7g97md36",
    "parent_id": null,
    "user_id": "ld87yg",
    "poster_currency": "NGN",
    "matcher_currency": "USD",
    "poster_payment_method_type": "nigerian_bank_payment",
    "matcher_payment_method_type": "zelle_payment",
    "matcher_amount": 500,
    "poster_amount": 180750,
    "exchange_rate": 361.5,
    "posted_at": "2020-01-26T07:25:54.000Z",
    "updated_at": "2020-01-26T07:25:54.000Z",
    "is_matched": 0,
    "is_confirmed": 0,
    "is_cancelled": 0,
    "is_completed": 0,
    "confirmed_at": null,
    "expires_at": "2020-01-27T00:00:00.000Z",
    "matched_at": null,
    "completed_at": null,
    "cancelled_at": null,
    "is_accepted": 0,
    "matches": [],
    "external_order": {
        "id": 14,
        "created_by": "mdzqmd",
        "order_id": "tx-yo7g97md36",
        "current_account_balance": 123123.12,
        "transaction_fee": 123.12,
        "transaction_fee_currency": "NGN",
        "created_at": "2020-01-26T07:25:54.000Z",
        "updated_at": "2020-01-26T07:25:54.000Z"
    },
    "is_processing": 1,
    "can_cancel_order": true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37