Create Cash Receipt Control
POST {{base_url}}/DataEntry/crControl
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 cash receipts.
Request Body
{"Batch"=>"CRBatch00001", "Description"=>"Cash Receipts API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>120, "DefaultBank"=>"101.10", "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "crMaster"=>[{"Batch"=>"CRBatch00001", "RefNo"=>"00REFFEFERR", "TransDate"=>"2017-12-23T00:00:00.000", "TransComment"=>"Cash Receipts Entry from API Import", "Posted"=>"N", "BankCode"=>"101.10", "Seq"=>1, "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"2014-06-23T14:37:27.083", "Diary"=>"D1", "DiaryNo"=>0}], "crDetail"=>[{"Batch"=>"CRBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC1", "Seq"=>1, "Description"=>"test1", "WBS1"=>"0A199900.900", "WBS2"=>"A000", "WBS3"=>" ", "Account"=>"11100", "Amount"=>120, "Interest"=>"N", "TaxCode"=>"", "TaxBasis"=>0, "Retainer"=>"N", "CurrencyExchangeOverrideRate"=>0, "SourceCurrencyCode"=>"", "SourceBalance"=>"", "SourceAmount"=>0, "SourceExchangeInfo"=>"", "LinkCompany"=>"", "PreInvoice"=>""}]}
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":"CRBatch00001","Description":"Cash Receipts API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","Total":120,"SumTotal":120,"DiffTotal":0,"DefaultBank":"101.10","DefaultBankDescription":"US company CAD currency","BankCurrencyCode":"CAD","Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","PostPeriod":0,"PostSeq":0,"SubmittedBy":"","SubmittedDate":""}]