> For the complete documentation index, see [llms.txt](https://eshop.gitbook.io/eshopbox-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eshop.gitbook.io/eshopbox-developers/order/orders/get-an-order.md).

# Get an Order

## Get an Order

<mark style="color:blue;">`GET`</mark> `https://wms.eshopbox.com/api/order/{customerOrderNumber}`

This endpoint allows you to get order details.

#### Path Parameters

| Name                | Type   | Description                               |
| ------------------- | ------ | ----------------------------------------- |
| customerOrderNumber | string | Unique number against each sales channel. |

#### Headers

| Name           | Type   | Description                              |
| -------------- | ------ | ---------------------------------------- |
| Authentication | string | Bearer token to grant access to the api. |

{% tabs %}
{% tab title="200 An order successfully retrieved." %}

```php
{
            "id": 1576882,
            "externalChannelID": "TATA CLIQ VELOCY KAPAS KRAFT",
            "customerOrderNumber": "OD119208447831346000",
            "vendorOrderNumber": "11920832654052201",
            "shipMethod": "STD",
            "orderDate": "2020-03-18 15:52:38",
            "expectedShipDate": "2020-03-19 16:00:00",
            "promiseDeliveryDate": "0000-00-00 00:00:00",
            "isCOD": "1",
            "paymentType": "COD",
            "taxAmount": 0,
            "shipChargeAmount": 0,
            "subtotal": 4751,
            "orderTotal": 4751,
            "balanceDue": 4751,
            "thirdPartyShipping": true,
            "onHold": false,
            "created_at": "2020-03-18 21:22:52",
            "updated_at": "2020-03-18 21:23:04",
            "shippingAddress": {
                "customerName": "John Doe",
                "addressLine1": "Kapas Kraft Apparels Limited",
                "addressLine2": "Banglore",
                "city": "bengluru",
                "state": "Karnataka",
                "postalCode": "560005",
                "countryCode": "IN",
                "countryName": "India",
                "contactPhone": "9998889998",
                "email": "johndoe@gmail.com"
            },
            "billingAddress": {
                "customerName": "John Doe",
                "addressLine1": "Kapas Kraft Apparels Limited",
                "addressLine2": "Banglore",
                "city": "bengluru",
                "state": "Karnataka",
                "postalCode": "560005",
                "countryCode": "IN",
                "countryName": "India",
                "contactPhone": "9998889998",
                "email": "johndoe@gmail.com"
            },
            "items": [
                {
                    "lineItemSequenceNumber": 1,
                    "orderItemID": "BLCK103443-3781063",
                    "itemID": "5df8c063737b791c70e35974",
                    "sku": "BBAPLBB140117_40",
                    "productName": "Print On Oxford Base Phoenix Fit Shirt",
                    "quantity": 1,
                    "customerPrice": 1995,
                    "discount": 0,
                    "lineItemTotal": 1995,
                    "taxRate": 0,
                    "taxAmount": 0,
                    "giftMessage": "",
                    "giftLabelContent": "",
                    "cancellationReason": "",
                    "cancellationTime": "0000-00-00 00:00:00",
                    "original_order_item_id": null,
                    "productAdditionalInfo": {
                        "size": "",
                        "color": ""
                    },
                    "productUrl":"https://montecarlo.auperator.co/product/edit-product/BBAPLMC144105_44 ",
                    "productImageUrl": "https://s3-eu-west-1.amazonaws.com/imagebucketeshopbox/Uzip/219045371-1-40/1.JPG"
                },
                {
                    "lineItemSequenceNumber": 2,
                    "orderItemID": "BLCK103443-3781064",
                    "itemID": "5d4468afbdcec809b6acc449",
                    "sku": "BBAPLBB140355_40",
                    "productName": " Cotton Pink Slim Fit   Shirt ",
                    "quantity": 1,
                    "customerPrice": 1197,
                    "discount": 0,
                    "lineItemTotal": 1197,
                    "taxRate": 0,
                    "taxAmount": 0,
                    "giftMessage": "",
                    "giftLabelContent": "",
                    "cancellationReason": "",
                    "cancellationTime": "0000-00-00 00:00:00",
                    "original_order_item_id": null,
                    "productAdditionalInfo": {
                        "size": "",
                        "color": ""
                    },
                    "productUrl": "https://montecarlo.auperator.co/product/edit-product/BBAPLMC144105_44",
                    "productImageUrl": "https://s3-eu-west-1.amazonaws.com/imagebucketeshopbox/Uzip/219045371-1-40/1.JPG"
                  }, 
                 {
                    "lineItemSequenceNumber": 3,
                    "orderItemID": "BLCK103443-3781065",
                    "itemID": "5df9e1d2f010c04ce3f7eb63",
                    "sku": "BBAPLBB159812_40",
                    "productName": "Check Slim Fit Shirt",
                    "quantity": 1,
                    "customerPrice": 1559,
                    "discount": 0,
                    "lineItemTotal": 1559,
                    "taxRate": 0,
                    "taxAmount": 0,
                    "giftMessage": "",
                    "giftLabelContent": "",
                    "cancellationReason": "",
                    "cancellationTime": "0000-00-00 00:00:00",
                    "original_order_item_id": null,
                    "productAdditionalInfo": {
                        "size": "",
                        "color": ""
                    },
                    "productUrl": "https://montecarlo.auperator.co/product/edit-product/BBAPLMC144105_44",
                    "productImageUrl": "https://s3-eu-west-1.amazonaws.com/imagebucketeshopbox/Uzip/219045371-1-40/1.JPG"
                }
            ],
            "expectedDeliveryDate": "2020-03-19"
        }
}

```

{% endtab %}
{% endtabs %}

```
curl -X GET https://wms.eshopbox.com/api/order/{orderId} \
-H "Authorization: Bearer XXXX" \
    -H "Content-Type: application/json" \
    -d $'{}
```
