# Line Items error when posting an order

**URL:** <https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643>\
**Category:** API Queries (How To)\
**Created:** [October 14, 2025, 7:44am UTC](https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643 "2025-10-14T07:44:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/E1E7EE/32.png) [@hayden](https://developer-forum.veeqo.com/u/hayden)\
**Post date:** [October 14, 2025, 7:44am UTC](https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643/1 "2025-10-14T07:44:15Z")

</div>

I am trying to post the following order through the API but I am getting an error.

```auto
POST https://api.veeqo.com/orders

{
    "channel_id": 763163,
    "delivery_method_id": "1685680",
    "due_date": "16/10/2025",
    "number": "SO1516848",
    "customer_attributes": {
        "billing_address_attributes": {
            "first_name": "Hayden",
            "last_name": "Littlewood",
            "company": null,
            "address1": "Address 1",
            "address2": "Address 2",
            "city": "City",
            "state": "State",
            "zip": "AA11AA",
            "country": "GB",
            "phone": null,
            "email": null
        }
    },
    "deliver_to_attributes": {
        "address1:": "Address 1",
        "address2": "Address 2",
        "city": "City",
        "company": null,
        "country": "GB",
        "first_name": "Hayden",
        "last_name": "Littlewood",
        "phone": "01234567890",
        "state": "Cheshire",
        "zip": "AA11AA"
    },
    "line_items_atributes": [
        {
            "price_per_unit": "23.99",
            "quantity": "2",
            "tax_rate": 0.2,
            "sellable_id": 440445244

        }
    ],
        "payment_attributes": {
        "payment_type": "cash"
    }
}

```

However, I get the following error:

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

```

I know this is a valid sellable id as it is on an existing order.

Does anyone have an idea of why this might be happening?

Thanks.

---

<div class="post-metadata">

**Author:** ![Alex-Veeqo](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/alex-veeqo/32/416_2.png) [@Alex-Veeqo](https://developer-forum.veeqo.com/u/Alex-Veeqo)\
**Post date:** [October 15, 2025, 1:21pm UTC](https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643/2 "2025-10-15T13:21:08Z")

</div>

Hey @hayden,

I’ve taken a look at your request payload.

Your request says `line_items_atributes` when it should be `line_items_attributes` (missing an extra t). If you fix the name of the parameter it should be fine.

If this works for you, please mark this message as a solution so that other developers can use it as a reference. If you are still having trouble then contact Veeqo Support via the support messenger in the Veeqo app or contacting [helpme@support.veeqo.com](mailto:helpme@support.veeqo.com)

Hope this helps,  
Alex - Veeqo

---

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/E1E7EE/32.png) [@hayden](https://developer-forum.veeqo.com/u/hayden)\
**Post date:** [October 16, 2025, 6:04am UTC](https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643/3 "2025-10-16T06:04:08Z")

</div>

Hi @Alex-Veeqo Apologies, I should have looked into this more, this has sorted the issue thanks!

---

<div class="post-metadata">

**Author:** ![Alex-Veeqo](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/alex-veeqo/32/416_2.png) [@Alex-Veeqo](https://developer-forum.veeqo.com/u/Alex-Veeqo)\
**Post date:** [October 16, 2025, 7:44am UTC](https://developer-forum.veeqo.com/t/line-items-error-when-posting-an-order/1643/4 "2025-10-16T07:44:12Z")

</div>

No problem, glad I could help!
