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

KeyDatatypeRequiredDescription
Content-TypestringRequired.

The type of content supported by the API endpoint. | | Authorization | string | | Required.

The type of authorization supported by the API endpoint. |

RESPONSES

status: Created

[{&quot;Vendor&quot;:&quot;000AAVEN,DD&quot;,&quot;VendorName&quot;:&quot;The Sumner Group&quot;,&quot;VendorTerms&quot;:&quot;30&quot;,&quot;VendorTaxCode&quot;:&quot;&quot;,&quot;RegAccount&quot;:&quot;&quot;,&quot;OHAccount&quot;:&quot;&quot;,&quot;DefaultExpenseCode&quot;:&quot;&quot;,&quot;RegAccountName&quot;:&quot;&quot;,&quot;OHAccountName&quot;:&quot;&quot;,&quot;RegAccountCurrencyCode&quot;:&quot;&quot;,&quot;OHAccountCurrencyCode&quot;:&quot;&quot;,&quot;RegAccountGlobal&quot;:&quot;&quot;,&quot;OHAccountGlobal&quot;:&quot;&quot;,&quot;RegAccountType&quot;:&quot;&quot;,&quot;OHAccountType&quot;:&quot;&quot;,&quot;LiabAccountCurrencyCode&quot;:&quot;&quot;,&quot;PaymentCurrencyCode&quot;:&quot;USD&quot;,&quot;AllowAssetEntries&quot;:&quot;N&quot;,&quot;InvoiceDate&quot;:&quot;2017-11-22T00:00:00.000&quot;,&quot;Invoice&quot;:&quot;InvTest2&quot;,&quot;TransDate&quot;:&quot;2014-01-22T00:00:00.000&quot;,&quot;Voucher&quot;:&quot;000VOUC0002&quot;,&quot;PayTerms&quot;:&quot;Next&quot;,&quot;PayDate&quot;:&quot;&quot;,&quot;LiabCode&quot;:&quot;ARLENE-COD&quot;,&quot;BankCode&quot;:&quot;AATEST&quot;,&quot;Address&quot;:&quot;\u003cDefault\u003e&quot;,&quot;DuplicateVoucher&quot;:&quot;N&quot;,&quot;Batch&quot;:&quot;AP_APINonBatch00001&quot;,&quot;MasterPKey&quot;:&quot;661A9F01962E4BB1B4ACF97B4019308C&quot;,&quot;Posted&quot;:&quot;N&quot;,&quot;Seq&quot;:1,&quot;CurrencyCode&quot;:&quot;USD&quot;,&quot;CurrencyExchangeOverrideMethod&quot;:&quot;N&quot;,&quot;CurrencyExchangeOverrideDate&quot;:&quot;&quot;,&quot;CurrencyExchangeOverrideRate&quot;:0,&quot;PaymentExchangeOverrideMethod&quot;:&quot;N&quot;,&quot;PaymentExchangeOverrideDate&quot;:&quot;&quot;,&quot;PaymentExchangeOverrideRate&quot;:0,&quot;Status&quot;:&quot;I&quot;,&quot;StatusDescription&quot;:&quot;Approved by Bill Hunmanb&quot;,&quot;AuthorizedByName&quot;:&quot;Bill Hunmanb&quot;,&quot;AuthorizedBy&quot;:&quot;0000A0001&quot;,&quot;RejectReason&quot;:&quot;&quot;,&quot;ModUser&quot;:&quot;ADMIN&quot;,&quot;ModUserEmployee&quot;:&quot;0000A0001&quot;,&quot;ModDate&quot;:&quot;2014-01-22T17:44:35.910&quot;,&quot;BankAccountCurrencyCode&quot;:&quot;USD&quot;,&quot;Diary&quot;:&quot;D1&quot;,&quot;DiaryNo&quot;:1447}]