Post an AR invoice
In order to create an AR record, send a POST request to the AR transactions collection with the details of the AR record that you wish to create. In this case we will be creating an AR invoice for a vendor using the following JSON.
{ "customer": { "customerNo": "ACTTEC" }, "date": "2021-12-01", "transType": "I", "customerPO": "ABC-123456", "debitAmt": "704.34", "creditAmt": "0", "memo": "Open Balance" }
We send this JSON as the body of the POST request to our Spire Server using the /ar/transactions endpoint.

In the Response area we can see that we received a 201 – Created response and that we have the endpoint of the newly created AP transaction returned in the location header.
The id of our newly created AP invoice is 2200.