v3.1 POSTing an Invoice in CA returns invalid for main_address

Returns:

[{"$severity":"error","$dataCode":"Validation","$message":"sales_invoice[main_address] is invalid","$source":"sales_invoice[main_address]"}]

What is this expecting?

I've queried the customer and retrieved the main_address for the customer:

 "main_address": 
      "id":"dc2e51fba3e44b3db03f3c86ca3ed9ff",
      "displayed_as":"16101 Rahsaan Gardens\nSuite 959\nEast Freeda, SK V5X 6W2",
      "$path":"/addresses/dc2e51fba3e44b3db03f3c86ca3ed9ff"
   }

However, passing either the "id" or the"displayed_as" field always gets me this same error. I've tried formatting the address by removing line breaks, but nothing. API documentation doesn't even mention that it's required. How do I get past this? Really surprising the API does not simply apply the current address for a customer.

Parents Reply Children