Purchase Invoice details

Returns one or more purchase invoices

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.7v3.7 Overview
Model StructureYesName of model requiredmodelstructure=purchaseinvoicedetailsUsing data models
ViewNoStored filter appliedUsing views
FiltersNoFilter by a key fieldFilters
CompanyYesThe company numbercompany=3

Example request:

http://<SERVER>/jsonapi/purchaseinvoices.json?user=user&password=user&version=3.7&modelstructure=purchaseinvoicedetails&company=3&supplier=3/ACX001

Example response:

{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"synversion": "12.703",
"synapiversion": 3.7,
"data": [
{
"pinvUuid": "DEAC2761FB5611E2919500155D003435",
"pinvTimestampModified": 1473843710,
"pinvRecordVersionNumber": 2,
"pinvInvoiceNo": "3/1004",
"pinvSupplierCode": "3/ACX001",
"pinvSupplierName": "Acxiom Digital",
"pinvDocumentDate": "2013-08-02",
"pinvInvPostingDate": "2013-08-02",
"pinvDateDue": "2013-08-02",
"pinvDateCreated": "2013-08-02",
"pinvTheirRef": "",
"pinvGross": 650,
"pinvVat": 0,
"pinvCurrencyGross": 650,
"pinvCurrencyTax": 0,
"pinvNet": 650,
"pinvCurrencyNet": 650,
"pinvAllocated": 650,
"pinvCurrencyAlloc": 650,
"pinvUnallocated": 0,
"pinvCurrencyUnAlloc": 0,
"pinvNotes": "",
"pinvAuthoriserUserid": 0
}
]
}