I am trying to post the following order through the API but I am getting an error.
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:
{
"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.