Receiving the below error when adding an order. Any help would be appriciated.
{
"error_messages": {
"order": {
"line_items": [
"can't be blank"
]
}
}
}
Json being sent below, I’ve used dummy values but actual request used real values:
{
"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"
}
]
}