Create AP Disbursement Master
POST {{base_url}}/DataEntry/cvMaster/:Batch|CheckNo
NOTE: This applies if you have the Use Files to Group Transactions option set to No in Settings » Accounting » Transactions.
Use this endpoint to create a master record for an AP disbursement.
Request Body
{"Batch"=>"CVNonBatch00001", "CheckNo"=>"00000001111", "TransDate"=>"2017-12-10T00:00:00.000", "Vendor"=>"A0000001.04", "InvoiceDate"=>"2013-11-15T00:00:00.000", "Invoice"=>"B13334", "BankCode"=>"ABOSTON", "Address"=>"<Default>", "Posted"=>"N", "PayDate"=>"", "Voucher"=>"000XPayee56", "Seq"=>1, "VendorTaxCode"=>"", "RegAccount"=>"52900", "OHAccount"=>"74300", "DefaultExpenseCode"=>"", "PaymentCurrencyCode"=>"USD", "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "TransactionID"=>"", "CreditCardCode"=>"", "CreditCardPrimaryCode"=>"", "CreditCardKey"=>"", "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0, "cvDetail"=>[{"Batch"=>"CVNonBatch00001", "CheckNo"=>"00000001111", "PKey"=>"API0000NA1", "Seq"=>1, "Description"=>"Test line 1", "WBS1"=>"0A199900.900", "WBS2"=>"A000", "WBS3"=>" ", "Account"=>"61100", "NetAmount"=>300, "Amount"=>375, "PaymentAmount"=>375, "SuppressBill"=>"N", "CurrencyExchangeOverrideRate"=>0, "ExpenseCode"=>"", "OriginatingVendor"=>""}, {"Batch"=>"CVNonBatch00001", "CheckNo"=>"00000001111", "PKey"=>"API0000NA2", "Seq"=>2, "Description"=>"Test line 2", "WBS1"=>"0A199900.900", "WBS2"=>"A000", "WBS3"=>" ", "Account"=>"61100", "NetAmount"=>200, "Amount"=>200, "PaymentAmount"=>200, "SuppressBill"=>"N", "CurrencyExchangeOverrideRate"=>0, "ExpenseCode"=>"", "OriginatingVendor"=>""}], "cvDetailTax"=>[{"Batch"=>"CVNonBatch00001", "CheckNo"=>"00000001111", "PKey"=>"API0000NA1", "TaxCode"=>"NY_TAX", "Seq"=>1, "TaxAmount"=>25, "CompoundOnTaxCode"=>""}, {"Batch"=>"CVNonBatch00001", "CheckNo"=>"00000001111", "PKey"=>"API0000NA1", "TaxCode"=>"AGS", "Seq"=>2, "TaxAmount"=>50, "CompoundOnTaxCode"=>""}]}
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
[{"Vendor":"000AAVEN,DD","VendorName":"The Sumner Group","VendorTaxCode":"","RegAccount":"","OHAccount":"","DefaultExpenseCode":"","RegAccountName":"","OHAccountName":"","RegAccountCurrencyCode":"","OHAccountCurrencyCode":"","RegAccountGlobal":"","OHAccountGlobal":"","RegAccountType":"","OHAccountType":"","PaymentCurrencyCode":"USD","InvoiceDate":"2013-11-15T00:00:00.000","Invoice":"B13334","TransDate":"2017-12-10T00:00:00.000","Voucher":"000XPAYEE56","PayDate":"","BankCode":"ABOSTON","Address":"\u003cDefault\u003e","Batch":"CVNonBatch00001","CheckNo":"00000001111","Posted":"N","Seq":1,"CurrencyCode":"USD","CurrencyExchangeOverrideMethod":"N","CurrencyExchangeOverrideDate":"","CurrencyExchangeOverrideRate":0,"TransactionID":"","CreditCardCode":"","CreditCardPrimaryCode":"","CreditCardKey":"","Status":"N","StatusDescription":"In Progress","AuthorizedByName":"","AuthorizedBy":"","RejectReason":"","ModUser":"","ModUserEmployee":"","ModDate":"","BankAccountCurrencyCode":"USD","Diary":"D1","DiaryNo":1452}]