Create Print and Reproduction Control
POST {{base_url}}/DataEntry/prControl
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 prints and reproductions.
Request Body
{"Batch"=>"PRBatch00001", "Description"=>"Prints and Reproductions API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "DefaultCurrencyCode"=>"USD", "Total"=>620, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "prMaster"=>[{"Batch"=>"PRBatch00001", "RefNo"=>"00REFFEFERR", "TransDate"=>"2017-12-29T00:00:00.000", "Description"=>"Prints and Reproductions Maste record 1", "Posted"=>"N", "Seq"=>1, "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0}], "prDetail"=>[{"Batch"=>"PRBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC1", "Seq"=>1, "Description"=>"Line 1", "WBS1"=>"0B199901.500", "WBS2"=>" ", "WBS3"=>" ", "Account"=>"60100", "Amount"=>500, "CurrencyExchangeOverrideRate"=>0}, {"Batch"=>"PRBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC2", "Seq"=>2, "Description"=>"Line 1", "WBS1"=>"0B199901.500", "WBS2"=>" ", "WBS3"=>" ", "Account"=>"60100", "Amount"=>120, "CurrencyExchangeOverrideRate"=>0}]}
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":"PRBatch00001","Description":"Prints and Reproductions API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","DefaultCurrencyCode":"USD","Total":620,"SumTotal":620,"DiffTotal":0,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0"}]