GET api/finance/getAllPurchaseOrder?startDate={startDate}&endDate={endDate}

Get a list of all PO between a certain date

Request Information

URI Parameters

NameDescriptionTypeAdditional information
startDate

Start filter

date

Required

endDate

End filter

date

Required

Body Parameters

None.

Response Information

Resource Description

A list with purchase orders

PurchaseOrderResult
NameDescriptionTypeAdditional information
TotalAmount

decimal number

None.

PurchaseOrders

Collection of PurchaseOrderItem

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalAmount": 1.0,
  "PurchaseOrders": [
    {
      "PurchaseOrderId": 1,
      "PurchaseOrderDate": "2024-05-05T13:03:14.7942425+02:00",
      "SupplierCompany": {
        "Name": "sample string 1",
        "DebtorNumber": "sample string 2"
      },
      "PurchaseOrderLines": [
        {
          "Quantity": 1.0,
          "ProductNumber": "sample string 2",
          "Name": "sample string 3",
          "PurchasePrice": 4.0
        },
        {
          "Quantity": 1.0,
          "ProductNumber": "sample string 2",
          "Name": "sample string 3",
          "PurchasePrice": 4.0
        }
      ],
      "totalAmount": 3.0,
      "Note": "sample string 4"
    },
    {
      "PurchaseOrderId": 1,
      "PurchaseOrderDate": "2024-05-05T13:03:14.7942425+02:00",
      "SupplierCompany": {
        "Name": "sample string 1",
        "DebtorNumber": "sample string 2"
      },
      "PurchaseOrderLines": [
        {
          "Quantity": 1.0,
          "ProductNumber": "sample string 2",
          "Name": "sample string 3",
          "PurchasePrice": 4.0
        },
        {
          "Quantity": 1.0,
          "ProductNumber": "sample string 2",
          "Name": "sample string 3",
          "PurchasePrice": 4.0
        }
      ],
      "totalAmount": 3.0,
      "Note": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MaxRetail.SupplierOrders.DTO">
  <PurchaseOrders>
    <PurchaseOrderItem>
      <Note>sample string 4</Note>
      <PurchaseOrderDate>2024-05-05T13:03:14.7942425+02:00</PurchaseOrderDate>
      <PurchaseOrderId>1</PurchaseOrderId>
      <PurchaseOrderLines>
        <PurchaseOrderLine>
          <Name>sample string 3</Name>
          <ProductNumber>sample string 2</ProductNumber>
          <PurchasePrice>4</PurchasePrice>
          <Quantity>1</Quantity>
        </PurchaseOrderLine>
        <PurchaseOrderLine>
          <Name>sample string 3</Name>
          <ProductNumber>sample string 2</ProductNumber>
          <PurchasePrice>4</PurchasePrice>
          <Quantity>1</Quantity>
        </PurchaseOrderLine>
      </PurchaseOrderLines>
      <SupplierCompany>
        <DebtorNumber>sample string 2</DebtorNumber>
        <Name>sample string 1</Name>
      </SupplierCompany>
      <totalAmount>3</totalAmount>
    </PurchaseOrderItem>
    <PurchaseOrderItem>
      <Note>sample string 4</Note>
      <PurchaseOrderDate>2024-05-05T13:03:14.7942425+02:00</PurchaseOrderDate>
      <PurchaseOrderId>1</PurchaseOrderId>
      <PurchaseOrderLines>
        <PurchaseOrderLine>
          <Name>sample string 3</Name>
          <ProductNumber>sample string 2</ProductNumber>
          <PurchasePrice>4</PurchasePrice>
          <Quantity>1</Quantity>
        </PurchaseOrderLine>
        <PurchaseOrderLine>
          <Name>sample string 3</Name>
          <ProductNumber>sample string 2</ProductNumber>
          <PurchasePrice>4</PurchasePrice>
          <Quantity>1</Quantity>
        </PurchaseOrderLine>
      </PurchaseOrderLines>
      <SupplierCompany>
        <DebtorNumber>sample string 2</DebtorNumber>
        <Name>sample string 1</Name>
      </SupplierCompany>
      <totalAmount>3</totalAmount>
    </PurchaseOrderItem>
  </PurchaseOrders>
  <TotalAmount>1</TotalAmount>
</PurchaseOrderResult>