Create Invoice with REST API
Has anyone successfully created an invoice using the REST API? The documentation is pretty sparse on payload examples and the closest approximation in the postman collection is Create Sales Order. Using the schema of the postman Create Sales Order as a starting point for invoices isn’t working, I’m just getting a 400 “Invalid content in the request body.” error.
My current test payload (with id’s redacted) is:
A solid strategy is to do a get on an existing invoice, then strip away all the fields you dont want to set and use that as a template to create your invoice.
A more metadata based approach is to use something like https://editor.swagger.io/ to see what an example request could look like by inputting the invoice metadata.