# Create Label And Awb

## Create Label And Awb

<mark style="color:green;">`POST`</mark> `https://wms.eshopbox.com/api/unicommerce/orders/labels`

This endpoint assigns couriers and marks the shipment packed.

#### Headers

| Name           | Type   | Description                                     |
| -------------- | ------ | ----------------------------------------------- |
| Authentication | string | The Bearer token which grants access to the API |

#### Request Body

| Name       | Type   | Description     |
| ---------- | ------ | --------------- |
| boxHeight  | number | box height      |
| boxLength  | number | box length      |
| boxWidth   | number | box width       |
| weight     | number | weight of order |
| orderItems | array  | order items     |

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

```
{
    "status": "SUCCESS",
    "orderItems": [
        {
            "orderItemID": "408-3131237-0000110-67"
        },
        {
            "orderItemID": "408-3131237-0000110-68"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

#### The orderItems array\[object]

| Attribute                   | Type   | Description                                                     |
| --------------------------- | ------ | --------------------------------------------------------------- |
| orderItemId                 | string | unique generated item id by eshopbox                            |
| invoiceNumber               | string | invoice number of a shipment (generated at the time of packed ) |
| invoiceDate                 | string | date on which invoice is generated                              |
| taxRate                     | number | the tax rate on the item                                        |
| centralGstPercentage        | number | central GST percentage on the item                              |
| compensationCessPercentage  | number | compensation cess percentage                                    |
| integratedGstPercentage     | number | integrated GST percentage                                       |
| stateGstPercentage          | number | state GST percentage                                            |
| unionTerritoryGstPercentage | number | union territory GST percentage                                  |

```
curl --location --request POST 'https://wms.eshopbox.com/api/unicommerce/orders/labels' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--data-raw '{
  "boxHeight": 2,
  "boxLength": 2,
  "boxWidth": 2,
  "weight": 2,
  "orderItems": [
    {
      "orderItemId": "408-3131237-0000110-67",
      "invoiceNumber": "string",
      "invoiceDate": "2017-01-02T08:12:53",
      "taxRate": 0,
      "centralGstPercentage": 0,
      "compensationCessPercentage": 0,
      "integratedGstPercentage": 0,
      "stateGstPercentage": 0,
      "unionTerritoryGstPercentage": 0
    },
    {
      "orderItemId": "408-3131237-0000110-68",
      "invoiceNumber": "string",
      "invoiceDate": "2017-01-02T08:12:53",
      "taxRate": 0,
      "centralGstPercentage": 0,
      "compensationCessPercentage": 0,
      "integratedGstPercentage": 0,
      "stateGstPercentage": 0,
      "unionTerritoryGstPercentage": 0
    }
  ]
}
'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/order/order-status/create-label-and-awb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
