I am creating a new order, and a new customer at the same time (endpoint), with this request body (ids replaced with 111…):
{
“order”: {
“channel_id”: 111111,
“number”: “”,
“send_notification_email”: true,
“line_items_attributes”: [
{
“price_per_unit”: “10.0”,
“taxless_discount_per_unit”: 0,
“quantity”: “4.0”,
“tax_rate”: “0.0”,
“sellable_id”: 11111111
}
],
“delivery_method_id”: 111111,
“delivery_cost”: “0.0”,
“customer_attributes”: {
“phone”: “”,
“email”: “mrukman@test.test”,
“billing_address_attributes”: {
“id”: “”,
“first_name”: “Mr. UK”,
“last_name”: “Man”,
“company”: “UK Test Company”,
“address1”: “49 Featherstone Street”,
“address2”: “”,
“city”: “London”,
“state”: “”,
“zip”: “EC1Y 8SY”,
“country”: “GB”,
“email”: “mrukman@test.test”
},
“deliver_to_attributes”: {
“id”: “”,
“first_name”: “Mr. UK”,
“last_name”: “Man”,
“company”: “UK Test Company”,
“address1”: “49 Featherstone Street”,
“address2”: “”,
“city”: “London”,
“state”: “”,
“zip”: “EC1Y 8SY”,
“country”: “GB”,
“email”: “mrukman@test.test”,
“phone”: “”
}
},
“customer_note_attributes”: {
“text”: “”
}
}
}
However, in the response, the billing address updates fine, but "deliver_to":null
is returned. I have to manually go into Veeqo and update the shipping address for the customer.
How can I get the customer delivery address to populate accordingly when creating an order?