Invoice an existing sales order
To invoice an existing order, simply send a POST request with an empty body to the order’s endpoint with /invoice appended to the end.
Using the example from the previous section where a new Sales Order was created, we use the value of Location from the response to the last call, and then append the /invoice endpoint
In the following example this new Sales Order is Invoiced.
Spire will respond with an object containing information about the newly created Invoice record in Sales History.