Invoice Linked Purchase Orders

Get Invoice Linked Purchase Orders by ID

GET /api/.../invoice/{id}/purchaseorders

Returns an invoice's linked purchase orders by id.

Request Information

Parameters
Name Type Required Description
id Integer Yes The unique id assigned to the invoice.

Response Information

Example
application/json, text/json
[
  {
    "PurchaseOrderID": 123,
    "PONumber": "SAL123",
    "Suffix": "kkk",
    "Type": "Standing Order",
    "Status": "Closed",
    "StatusID": 2,
    "Date": "2008-07-25 13:40:03.000",
    "Supplier": "supplier1",
    "Total": 12.34,
    "NumberOfLines": 1
  },
   {
    "PurchaseOrderID": 124,
    "PONumber": "SAL124",
    "Suffix": "ggg",
    "Type": "Firm Order",
    "Status": "Closed",
    "StatusID": 2,
    "Date": "2014-05-08 12:04:15.387",
    "Supplier": "supplier2",
    "Total": 45.67,
    "NumberOfLines": 3
  }
]

HTTP Response Codes

Code Description
200 OK. Success
400 FAILURE.
  • Bad request
  • Invalid invoice ID

Required Permissions

Permission IDs found here.

    CR_AccessAcquisitions_Allow (),
    CR_Invoices_Access (based on owner ID)