List of related purchase invoices
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=purchaseinvoiceslist | |
Identifier | Yes | Purchase ID or UUID | purchase=10007388 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=purchaseinvoiceslist&company=1&purchase=10007644
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 2,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"pinvUuid": "EED912D806844F4AB19EE43E36981D69",
"pinvTimestampModified": 1518099931,
"pinvRecordVersionNumber": 3,
"pinvCurrGross": "£2000.00",
"pinvCurrNet": "£2000.00",
"pinvCurrTax": "£0.00",
"pinvCurrUnallocated": "£0.00",
"pinvInvoiceNo": "1/9450",
"pinvSupplierCode": "1/ABG",
"pinvSupplierName": "AB Grover",
"pinvDocumentDate": "2017-02-01",
"pinvTheirRef": "CS123",
"pinvViewDate": "2017-02-01",
"pinvViewTime": "16:37:45",
"pinvViewTimeZone": "UTCA",
"pinvAuthorised": "",
"pinvAuthoriser": "",
"pinvInvoiceType": "Iv"
},
{
"pinvUuid": "9BCCA376B7D3054E8172BCB09801780A",
"pinvTimestampModified": 1490200881,
"pinvRecordVersionNumber": 2,
"pinvCurrGross": "£1000.00",
"pinvCurrNet": "£1000.00",
"pinvCurrTax": "£0.00",
"pinvCurrUnallocated": "£0.00",
"pinvInvoiceNo": "1/9451",
"pinvSupplierCode": "1/ABG",
"pinvSupplierName": "AB Grover",
"pinvDocumentDate": "2017-03-01",
"pinvTheirRef": "CS345",
"pinvViewDate": "2017-03-01",
"pinvViewTime": "16:40:35",
"pinvViewTimeZone": "UTCA",
"pinvAuthorised": "",
"pinvAuthoriser": "",
"pinvInvoiceType": "Iv"
}
]
}