GET api/PurchaseOrder?companyCode={companyCode}&fromDateTime={fromDateTime}
Get Purchase Order List modified after DateTime
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyCode |
Company Identifier |
string |
Required |
| fromDateTime |
Date Time after which purchase orders that were modified will be returned. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Response message with a list of all PO's that were modified in the given timeframe. HttpStatusCode.Conflict when user isn't connected to Company
GetPurchaseOrderListMessageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Header |
Header item |
MessageHeader |
None. |
| PurchaseOrderIdentifiers |
List of Purchase Order Identifiers |
Collection of string |
None. |
| Footer |
Footer item |
MessageFooter |
None. |
Response Formats
application/json, text/json
Sample:
{
"Header": {
"Version": "string 1",
"Identification": "string 2",
"Sender": "string 3"
},
"PurchaseOrderIdentifiers": [
"string 1",
"string 2"
],
"Footer": {
"TotalRecords": 1,
"Records": 2
}
}
application/xml, text/xml
Sample:
<GetPurchaseOrderListMessageResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<Version>string 1</Version>
<Identification>string 2</Identification>
<Sender>string 3</Sender>
</Header>
<PurchaseOrderIdentifiers>
<string>string 1</string>
<string>string 2</string>
</PurchaseOrderIdentifiers>
<Footer>
<TotalRecords>1</TotalRecords>
<Records>2</Records>
</Footer>
</GetPurchaseOrderListMessageResponse>