Related Invoices

List of related purchase invoices

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.7v3.7 Overview
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=purchaseinvoiceslist
IdentifierYesPurchase ID or UUIDpurchase=10007388

Example request:

http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.7&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"
    }
  ]
}