# 400 Error Adding order via API

**URL:** <https://developer-forum.veeqo.com/t/400-error-adding-order-via-api/416>\
**Category:** API Queries (How To)\
**Created:** [July 15, 2021, 4:21pm UTC](https://developer-forum.veeqo.com/t/400-error-adding-order-via-api/416 "2021-07-15T16:21:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timatcg](https://avatars.discourse-cdn.com/v4/letter/t/959FA8/32.png) [@timatcg](https://developer-forum.veeqo.com/u/timatcg)\
**Post date:** [July 15, 2021, 4:21pm UTC](https://developer-forum.veeqo.com/t/400-error-adding-order-via-api/416/1 "2021-07-15T16:21:20Z")

</div>

Receiving the below error when adding an order. Any help would be appriciated.

```auto
{
    "error_messages": {
        "order": {
            "line_items": [
                "can't be blank"
            ]
        }
    }
}

```

Json being sent below, I’ve used dummy values but actual request used real values:

```auto
{
    "channel_id":12345,
    "delivery_method_id":123456,
    "due_date":"17/07/2021",
    "number":"UK123456789",
    "send_notification_email":false,
    "total_discounts":0,
    "deliver_to_attributes":
    {
        "address1":"Address 1",
        "address2":"Address 2",
        "city":"City",
        "country":"GB",
        "customer_id":12345678,
        "first_name":"Test",
        "last_name":"Name",
        "state":"",
        "zip":"AB3 3CD"
    },
    "customer_id":12345678,
    "line_items_attributes": [
        {
            "sellable_id":12345678,
            "price_per_unit":"12.00",
            "quantity":"1"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![sam-veeqo](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/sam-veeqo/32/90_2.png) [@sam-veeqo](https://developer-forum.veeqo.com/u/sam-veeqo)\
**Post date:** [July 21, 2021, 10:26am UTC](https://developer-forum.veeqo.com/t/400-error-adding-order-via-api/416/2 "2021-07-21T10:26:32Z")

</div>

Hi @timatcg

Is this happening for all orders?

Can you send the full request including IDs to [api-support@veeqo.com](mailto:api-support@veeqo.com) and I will pick it up from there.

Thanks,  
Sam
