> For the complete documentation index, see [llms.txt](https://docs.shipbubble.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipbubble.com/api-reference/shipments/create-shipment.md).

# Create shipment

The Shipping Label API enables you to route your order to your selected courier service.

<mark style="color:green;">`POST`</mark> `https://api.shipbubble.com/v1/shipping/labels`

#### Request Body

| Name                                             | Type    | Description                                                                                                                               |
| ------------------------------------------------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| request\_token<mark style="color:red;">\*</mark> | String  | request token gotten from **Rates API**, each request token is tied to a particular rate request                                          |
| service\_code<mark style="color:red;">\*</mark>  | String  | service code of selected courier rate                                                                                                     |
| courier\_id<mark style="color:red;">\*</mark>    | String  | courier\_id of selected courier rate                                                                                                      |
| insurance\_code                                  | String  | To be included if insurance wants to be purchased with shipment. Insurance code can be gotten from **Get Insurance Rates API.**           |
| is\_cod\_label                                   | Boolean | To be included if request is meant to be a cash on delivery shipment.                                                                     |
| duties\_paid                                     | Boolean | To be included if custom duty is to be charged along with shipment. Duty rates must have been fetched from the **Duties calculator API.** |

{% tabs %}
{% tab title="200: OK Each successfully shipment comes with details of assigned contact details  of selected and also a tracking link to track shipment process" %}

```javascript
{
    "status": "success",
    "message": "Order successfully routed to Darum NG",
    "data": {
        "order_id": "SB-2CF48224272",
        "courier": {
            "name": "Darum NG",
            "email": "darum@darum.com",
            "phone": "010000038198"
        },
        "status": "pending",
        "ship_from": {
            "name": "Lebron James",
            "phone": "+2348057575855",
            "email": "lebron@james.com",
            "address": "Obafemi Awolowo Way, Alausa 101233, Ojodu, Nigeria",
            "latitude": 6.6143564,
            "longitude": 3.3581327
        },
        "ship_to": {
            "name": "Lebron James",
            "phone": "+2348057575855",
            "email": "lebron@james.com",
            "address": "Phase 1, 4 Michael Olawale-Cole Dr, Lekki Phase I 106104, Lagos, Nigeria",
            "latitude": 6.459056599999999,
            "longitude": 3.4769383
        },
        "payment": {
            "shipping_fee": 2785,
            "type": "wallet",
            "status": "completed",
            "currency": "NGN"
        },
        "items": [
            {
                "name": "Jameson",
                "description": "The drink dey shak die",
                "weight": 0.004,
                "amount": "5000",
                "quantity": "2",
                "total": 10000
            },
            {
                "name": "Hennesy",
                "description": "Bad boys flow",
                "weight": 2,
                "amount": "150000",
                "quantity": "10",
                "total": 1500000
            }
        ],
        "tracking_url": "https://localhost:5000/orders/tracking/GET-2CF48272",
        "date": "2021-12-19 01:23:19"
    }
}
```

{% endtab %}
{% endtabs %}
