Create AP Voucher Master
POST {{base_url}}/DataEntry/apMaster/:Batch|MasterPKey
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 voucher.
Request Body
{"Batch"=>"AP_APINonBatch00001", "MasterPKey"=>"661A9F01962E4BB1B4ACF97B4019308C", "Vendor"=>"AGRANDVE.ND", "InvoiceDate"=>"2017-11-22T00:00:00.000", "Invoice"=>"InvTest2", "TransDate"=>"2014-01-22T00:00:00.000", "LiabCode"=>"ARLENE-COD", "BankCode"=>"AATEST", "PayTerms"=>"Next", "PayDate"=>"", "Address"=>"<Default>", "Posted"=>"N", "Seq"=>1, "Voucher"=>"VOUC0002", "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "PaymentExchangeOverrideMethod"=>"N", "PaymentExchangeOverrideDate"=>"", "PaymentExchangeOverrideRate"=>0, "Status"=>"A", "AuthorizedBy"=>"0000A0001", "RejectReason"=>"", "ModUser"=>"ADMIN", "ModDate"=>"2014-01-22T17:44:35.910", "PaymentCurrencyCode"=>"USD", "Diary"=>"IC", "DiaryNo"=>0, "AllowAssetEntries"=>"N", "apDetail"=>[{"Batch"=>"AP_APINonBatch00001", "MasterPKey"=>"661A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"ADMIN1120745868345", "Seq"=>1, "Description"=>"", "WBS1"=>"0B199900.900", "WBS2"=>"B000", "WBS3"=>" ", "Account"=>"52300", "Amount"=>1275, "SuppressBill"=>"N", "NetAmount"=>1200, "CurrencyExchangeOverrideRate"=>0, "PONumber"=>"", "PaymentAmount"=>1275, "PaymentExchangeInfo"=>"", "ExpenseCode"=>"", "OriginatingVendor"=>"", "CreateAsset"=>"N", "AssetType"=>"", "Item"=>"", "EquipmentID"=>""}, {"Batch"=>"AP_APINonBatch00001", "MasterPKey"=>"661A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"ADMIN1120745905088", "Seq"=>2, "Description"=>"", "WBS1"=>"0B199800.100", "WBS2"=>" ", "WBS3"=>" ", "Account"=>"52500", "Amount"=>12000, "SuppressBill"=>"N", "NetAmount"=>12000, "CurrencyExchangeOverrideRate"=>10, "PONumber"=>"", "PaymentAmount"=>12000, "PaymentExchangeInfo"=>"", "ExpenseCode"=>"", "OriginatingVendor"=>"", "CreateAsset"=>"N", "AssetType"=>"", "Item"=>"", "EquipmentID"=>""}], "apDetailTax"=>[{"Batch"=>"AP_APINonBatch00001", "MasterPKey"=>"661A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"ADMIN1120745868345", "TaxCode"=>"NY_TAX", "Seq"=>1, "TaxAmount"=>25, "CompoundOnTaxCode"=>""}, {"Batch"=>"AP_APINonBatch00001", "MasterPKey"=>"661A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"ADMIN1120745868345", "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","VendorTerms":"30","VendorTaxCode":"","RegAccount":"","OHAccount":"","DefaultExpenseCode":"","RegAccountName":"","OHAccountName":"","RegAccountCurrencyCode":"","OHAccountCurrencyCode":"","RegAccountGlobal":"","OHAccountGlobal":"","RegAccountType":"","OHAccountType":"","LiabAccountCurrencyCode":"","PaymentCurrencyCode":"USD","AllowAssetEntries":"N","InvoiceDate":"2017-11-22T00:00:00.000","Invoice":"InvTest2","TransDate":"2014-01-22T00:00:00.000","Voucher":"000VOUC0002","PayTerms":"Next","PayDate":"","LiabCode":"ARLENE-COD","BankCode":"AATEST","Address":"\u003cDefault\u003e","DuplicateVoucher":"N","Batch":"AP_APINonBatch00001","MasterPKey":"661A9F01962E4BB1B4ACF97B4019308C","Posted":"N","Seq":1,"CurrencyCode":"USD","CurrencyExchangeOverrideMethod":"N","CurrencyExchangeOverrideDate":"","CurrencyExchangeOverrideRate":0,"PaymentExchangeOverrideMethod":"N","PaymentExchangeOverrideDate":"","PaymentExchangeOverrideRate":0,"Status":"I","StatusDescription":"Approved by Bill Hunmanb","AuthorizedByName":"Bill Hunmanb","AuthorizedBy":"0000A0001","RejectReason":"","ModUser":"ADMIN","ModUserEmployee":"0000A0001","ModDate":"2014-01-22T17:44:35.910","BankAccountCurrencyCode":"USD","Diary":"D1","DiaryNo":1447}]