Create Invoice Control
POST {{base_url}}/DataEntry/inControl
NOTE: This applies if you have the Use Files to Group Transactions option set to Yes in Settings » Accounting » Transactions.
Use this endpoint to create a batch for a set of invoices.
Request Body
{"Batch"=>"INBatch00001", "Description"=>"Invoice API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>120, "RetTotal"=>20, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "inMaster"=>[{"Batch"=>"INBatch00001", "Invoice"=>"00000000333", "WBS1"=>"00091605.000", "WBS2"=>" ", "WBS3"=>" ", "TransDate"=>"2017-12-16T00:00:00.000", "DueDate"=>"", "TransComment"=>"Invoice", "Posted"=>"Y", "Seq"=>1, "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedByName"=>"", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0}], "inDetail"=>[{"Batch"=>"INBatch00001", "Invoice"=>"00000000333", "WBS1"=>"00091605.000", "WBS2"=>" ", "WBS3"=>" ", "PKey"=>"PAUL180179968275", "Seq"=>1, "InvoiceSection"=>"C", "TaxCode"=>"", "Account"=>"42200", "Amount"=>120, "RetAmount"=>20, "TaxBasis"=>0, "Retainer"=>"N", "LinkWBS1"=>"", "LinkWBS2"=>"", "LinkWBS3"=>"", "CreditMemoRefNo"=>""}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | Required. |
The type of content supported by the API endpoint. |
| Authorization
| string | | Required.
The type of authorization supported by the API endpoint. |
RESPONSES
status: Created
[{"Batch":"INBatch00001","Description":"Invoice API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","DefaultTaxCode":"","Total":120,"SumTotal":120,"DiffTotal":0,"RetTotal":20,"SumRetTotal":20,"DiffRetTotal":0,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0"}]