Read (GET) AP Vouchers
Use this API to read an accounts payable voucher from the Transaction Center.
To get AP voucher transaction data:
Execute a GET command on the endpoint
{{url}}/ledger/AP.
For example, here is a request submitted using cURL:
curl --request GET \
--url 'https://{{url}}/ledger/AP' \
--header 'authorization: Bearer {{oauth_token}}' \
--header 'content-type: application/json' \
A successful GET returns the JSON representation of the accounts payable voucher transaction data, for example:
[
{
"Period" : "201701 ",
"PostSeq" : "100",
"PKey" : "12345678",
"WBS1" : "10000.00",
"WBS2" : "001",
"WBS3" : "A",
"Account" : "500.01",
"Org" : " ",
"TransType" : "AP",
"SubType" : "L",
"RefNo" : " ",
"TransDate" : " ",
"Desc1" : "A consulting firm",
"Desc2" : " ",
"Amount" : 6670,
"CBAmount" : 0,
"BillExt" : 0,
"ProjectCost" : "Y",
"AutoEntry" : "N",
"SuppressBill" : "N",
"BillStatus" : "B",
"SkipGL" : "N",
"BankCode" : " ",
"Invoice" : " ",
"InvoiceSection" : " ",
"Employee" : " ",
"Vendor" : "200",
"Line" : 1,
"PartialPayment" : 0,
"Discount" : 0,
"Voucher" : "0000002",
"BilledWBS1" : " ",
"BilledWBS2" : " ",
"BilledWBS3" : " ",
"BilledInvoice" : " ",
"BilledPeriod" : 0,
"Unit" : " ",
"UnitTable" : " ",
"UnitQuantity" : 0,
"UnitCostRate" : 0,
"UnitBillingRate" : 0,
"UnitBillExt" : 0,
"XferWBS1" : " ",
"XferWBS2" : " ",
"XferWBS3" : " ",
"XferAccount" : " ",
"TaxCode" : " ",
"TaxBasis" : 0,
"TaxCBBasis" : 0,
"BillTaxCodeOverride" : " ",
"WrittenOffPeriod" : 0,
"TransactionAmount" : 6670,
"TransactionCurrencyCode" : " ",
"ExchangeInfo" : " ",
"AmountProjectCurrency" : " ",
"ProjectExchangeInfo" : " ",
"AmountBillingCurrency" : " ",
"BillingExchangeInfo" : " ",
"AutoEntryAmount" : " ",
"AutoEntryExchangeInfo" : " ",
"AutoEntryOrg" : " ",
"AutoEntryAccount" : " ",
"AmountSourceCurrency" : 6670,
"SourceExchangeInfo" : " ",
"PONumber" : " ",
"UnitCostRateBillingCurrency" : " ",
"LinkCompany" : " ",
"LinkWBS1" : " ",
"LinkWBS2" : " ",
"LinkWBS3" : " ",
"BillTax2CodeOverride" : " ",
"GainsAndLossesType" : " ",
"AmountTaxCurrency" : " ",
"CBAmountTaxCurrency" : " ",
"TaxBasisTaxCurrency" : " ",
"TaxCBBasisTaxCurrency" : " ",
"TaxBasisFunctionalCurrency" : " ",
"TaxCBBasisFunctionalCurrency" : " ",
"DiscountFunctionalCurrency" : " ",
"ModUser" : " ",
"AuthorizedBy" : " ",
"RealizationAmountEmployeeCurrency" : " ",
"RealizationAmountProjectCurrency" : " ",
"RealizationAmountBillingCurrency" : " ",
"NonBill" : " ",
"CreditMemoRefNo" : " ",
"OriginalAmountSourceCurrency" : 6670,
"OriginalPaymentCurrencyCode" : " ",
"InProcessAccount" : " ",
"InProcessAccountCleared" : "N",
"EKOriginalLine" : " ",
"InvoiceStatus" : " ",
"OriginatingVendor" : " ",
"Diary" : " ",
"DiaryNo" : " ",
"CreditCardPrimaryCode" : " ",
"CreditCardCode" : " ",
"CreditCardPKey" : " ",
"TransferredPeriod" : " ",
"TransferredBillStatus" : " ",
"PreInvoice" : " ",
"EquipmentID" : " ",
"BookCode" : " ",
"EmOrg" : " "
}
]
