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


[{"$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:

      "displayed_as":"16101 Rahsaan Gardens\nSuite 959\nEast Freeda, SK V5X 6W2",

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