GET api/orders/{customerNumber}/{fromDate}/{toDate}
Gets orders by customer number {customerNumber} where orderdate is equal or later than {fromDate}.<br/> and if {toDate} is specified orderdate is between {fromDate} and {toDate}.<br/>
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerNumber |
The customer number to fetch orders for |
integer |
Required |
| fromDate |
Fetch all orders with order date greater than [fromDate] |
date |
Required |
| toDate |
Specifies an end date for the query |
date |
Default value is Null |
Body Parameters
None.
Remarks
Use api/orders/id/branchId to get detailed information about the order.
Example
//Gets the orders for customernumber 1 where orderdate is between fromDate and toDate
http://localhost/api/orders/1/2016-01-01/2018-01-01
Response Information
Resource Description
Returns orders for the specified customernumber{customerNumber}.
Collection of OrderHeadResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| CurrencyName | string |
Required Max length: 50 |
|
| IsWebOrder | boolean |
None. |
|
| AgreementName | string |
Max length: 80 |
|
| RetailPriceListName | string |
Max length: 100 |
|
| OrderStatusId | integer |
Required |
|
| OrderStatusName | string |
Required Max length: 40 |
|
| WMSStatusId | integer |
None. |
|
| WMSStatusName | string |
None. |
|
| IsWMSExpress | boolean |
Required |
|
| CloseOrderTypeId | integer |
None. |
|
| CloseOrderTypeName | string |
Max length: 100 |
|
| WMSId | integer |
None. |
|
| CarrierId | integer |
None. |
|
| CarrierName | string |
Max length: 100 |
|
| Waybill | Collection of string |
Max length: 200 |
|
| PaymentTransactionProviderId | string |
Max length: 56 |
|
| AgreementNo | integer |
None. |
|
| RetailPriceListId | globally unique identifier |
None. |
|
| TimebookReservationId | globally unique identifier |
None. |
|
| CalendarEventId | integer |
None. |
|
| SplitId | globally unique identifier |
None. |
|
| OrderLines | Collection of OrderLineResponse |
None. |
|
| OrderType | OrderType |
None. |
|
| SellerBranchId | integer |
Required |
|
| CustomerNumber | integer |
None. |
|
| OrderDate | date |
Required |
|
| LicensePlate | string |
Max length: 15 |
|
| Odometer | integer |
None. |
|
| WorkOrderNumber | string |
Max length: 40 |
|
| SalesPerson | string |
Required Max length: 50 |
|
| CurrencyId | integer |
Required |
|
| CurrencyRate | decimal number |
Required |
|
| DeliveryDate | date |
None. |
|
| RequisitionOrderNumber | string |
Max length: 40 |
|
| TotalAmountIncludingVat | decimal number |
None. |
|
| TotalAmountExcludingVat | decimal number |
None. |
|
| RoundingAmount | decimal number |
None. |
|
| CustomerReference | string |
Max length: 40 |
|
| ContactId | globally unique identifier |
None. |
Response Formats
application/json, text/json
[
{
"Id": 1,
"CurrencyName": "sample string 2",
"IsWebOrder": true,
"AgreementName": "sample string 4",
"RetailPriceListName": "sample string 5",
"OrderStatusId": 6,
"OrderStatusName": "sample string 7",
"WMSStatusId": 1,
"WMSStatusName": "sample string 8",
"IsWMSExpress": true,
"CloseOrderTypeId": 1,
"CloseOrderTypeName": "sample string 10",
"WMSId": 1,
"CarrierId": 1,
"CarrierName": "sample string 11",
"Waybill": [
"sample string 1",
"sample string 2"
],
"PaymentTransactionProviderId": "sample string 12",
"AgreementNo": 1,
"RetailPriceListId": "4c8b80d0-89a2-4987-8f8e-09652143ec80",
"TimebookReservationId": "9c744b4c-a4e0-49be-9cd8-15eca498322a",
"CalendarEventId": 1,
"SplitId": "b50b06f8-d700-4cfa-816d-1e48e9003219",
"OrderLines": [
{
"OrderLineArticle": {
"OrderLineTypeId": 1,
"OrderLineTypeName": "sample string 2",
"MainGroupName": "sample string 3",
"SubGroupName": "sample string 4",
"MainGroupId": 5,
"SubGroupId": 6,
"IsService": true,
"WMSConfirmedQuantity": 1.0,
"OrderLineStatistics": {
"Brand": "sample string 1",
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"RimDiameter": 1.0,
"TreadPattern": "sample string 2",
"SpeedRating": "sample string 3",
"ExtraLoad": true,
"RunFlatTyre": true,
"Wet": "sample string 4",
"Fuel": "sample string 5",
"Noise": 1,
"NoiseClass": 1,
"Weight": 1.0
},
"ArticleNumber": 8,
"Quantity": 9.0,
"Description": "sample string 10",
"Price": 11.0,
"DiscountFactor": 12.0,
"Amount": 13.0,
"VatPercent": 14.0,
"VatAmount": 15.0,
"HasVat": true,
"IsExport": true
},
"OrderLineText": {
"Text": "sample string 1"
},
"LineNumber": 1,
"ParentLineNumber": 1,
"IsArticlePackageLine": true,
"HasFixedQuantity": true
},
{
"OrderLineArticle": {
"OrderLineTypeId": 1,
"OrderLineTypeName": "sample string 2",
"MainGroupName": "sample string 3",
"SubGroupName": "sample string 4",
"MainGroupId": 5,
"SubGroupId": 6,
"IsService": true,
"WMSConfirmedQuantity": 1.0,
"OrderLineStatistics": {
"Brand": "sample string 1",
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"RimDiameter": 1.0,
"TreadPattern": "sample string 2",
"SpeedRating": "sample string 3",
"ExtraLoad": true,
"RunFlatTyre": true,
"Wet": "sample string 4",
"Fuel": "sample string 5",
"Noise": 1,
"NoiseClass": 1,
"Weight": 1.0
},
"ArticleNumber": 8,
"Quantity": 9.0,
"Description": "sample string 10",
"Price": 11.0,
"DiscountFactor": 12.0,
"Amount": 13.0,
"VatPercent": 14.0,
"VatAmount": 15.0,
"HasVat": true,
"IsExport": true
},
"OrderLineText": {
"Text": "sample string 1"
},
"LineNumber": 1,
"ParentLineNumber": 1,
"IsArticlePackageLine": true,
"HasFixedQuantity": true
}
],
"OrderType": 1,
"SellerBranchId": 13,
"CustomerNumber": 1,
"OrderDate": "2026-01-21 22:52:38",
"LicensePlate": "sample string 15",
"Odometer": 1,
"WorkOrderNumber": "sample string 16",
"SalesPerson": "sample string 17",
"CurrencyId": 18,
"CurrencyRate": 19.0,
"DeliveryDate": "2026-01-21 22:52:38",
"RequisitionOrderNumber": "sample string 20",
"TotalAmountIncludingVat": 1.0,
"TotalAmountExcludingVat": 1.0,
"RoundingAmount": 1.0,
"CustomerReference": "sample string 21",
"ContactId": "72b5cc08-24d1-4790-894e-35f1cdceba4c"
},
{
"Id": 1,
"CurrencyName": "sample string 2",
"IsWebOrder": true,
"AgreementName": "sample string 4",
"RetailPriceListName": "sample string 5",
"OrderStatusId": 6,
"OrderStatusName": "sample string 7",
"WMSStatusId": 1,
"WMSStatusName": "sample string 8",
"IsWMSExpress": true,
"CloseOrderTypeId": 1,
"CloseOrderTypeName": "sample string 10",
"WMSId": 1,
"CarrierId": 1,
"CarrierName": "sample string 11",
"Waybill": [
"sample string 1",
"sample string 2"
],
"PaymentTransactionProviderId": "sample string 12",
"AgreementNo": 1,
"RetailPriceListId": "4c8b80d0-89a2-4987-8f8e-09652143ec80",
"TimebookReservationId": "9c744b4c-a4e0-49be-9cd8-15eca498322a",
"CalendarEventId": 1,
"SplitId": "b50b06f8-d700-4cfa-816d-1e48e9003219",
"OrderLines": [
{
"OrderLineArticle": {
"OrderLineTypeId": 1,
"OrderLineTypeName": "sample string 2",
"MainGroupName": "sample string 3",
"SubGroupName": "sample string 4",
"MainGroupId": 5,
"SubGroupId": 6,
"IsService": true,
"WMSConfirmedQuantity": 1.0,
"OrderLineStatistics": {
"Brand": "sample string 1",
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"RimDiameter": 1.0,
"TreadPattern": "sample string 2",
"SpeedRating": "sample string 3",
"ExtraLoad": true,
"RunFlatTyre": true,
"Wet": "sample string 4",
"Fuel": "sample string 5",
"Noise": 1,
"NoiseClass": 1,
"Weight": 1.0
},
"ArticleNumber": 8,
"Quantity": 9.0,
"Description": "sample string 10",
"Price": 11.0,
"DiscountFactor": 12.0,
"Amount": 13.0,
"VatPercent": 14.0,
"VatAmount": 15.0,
"HasVat": true,
"IsExport": true
},
"OrderLineText": {
"Text": "sample string 1"
},
"LineNumber": 1,
"ParentLineNumber": 1,
"IsArticlePackageLine": true,
"HasFixedQuantity": true
},
{
"OrderLineArticle": {
"OrderLineTypeId": 1,
"OrderLineTypeName": "sample string 2",
"MainGroupName": "sample string 3",
"SubGroupName": "sample string 4",
"MainGroupId": 5,
"SubGroupId": 6,
"IsService": true,
"WMSConfirmedQuantity": 1.0,
"OrderLineStatistics": {
"Brand": "sample string 1",
"SectionWidth": 1.0,
"AspectRatio": 1.0,
"RimDiameter": 1.0,
"TreadPattern": "sample string 2",
"SpeedRating": "sample string 3",
"ExtraLoad": true,
"RunFlatTyre": true,
"Wet": "sample string 4",
"Fuel": "sample string 5",
"Noise": 1,
"NoiseClass": 1,
"Weight": 1.0
},
"ArticleNumber": 8,
"Quantity": 9.0,
"Description": "sample string 10",
"Price": 11.0,
"DiscountFactor": 12.0,
"Amount": 13.0,
"VatPercent": 14.0,
"VatAmount": 15.0,
"HasVat": true,
"IsExport": true
},
"OrderLineText": {
"Text": "sample string 1"
},
"LineNumber": 1,
"ParentLineNumber": 1,
"IsArticlePackageLine": true,
"HasFixedQuantity": true
}
],
"OrderType": 1,
"SellerBranchId": 13,
"CustomerNumber": 1,
"OrderDate": "2026-01-21 22:52:38",
"LicensePlate": "sample string 15",
"Odometer": 1,
"WorkOrderNumber": "sample string 16",
"SalesPerson": "sample string 17",
"CurrencyId": 18,
"CurrencyRate": 19.0,
"DeliveryDate": "2026-01-21 22:52:38",
"RequisitionOrderNumber": "sample string 20",
"TotalAmountIncludingVat": 1.0,
"TotalAmountExcludingVat": 1.0,
"RoundingAmount": 1.0,
"CustomerReference": "sample string 21",
"ContactId": "72b5cc08-24d1-4790-894e-35f1cdceba4c"
}
]
application/xml, text/xml
<ArrayOfOrderHeadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Order">
<OrderHeadResponse>
<ContactId>72b5cc08-24d1-4790-894e-35f1cdceba4c</ContactId>
<CurrencyId>18</CurrencyId>
<CurrencyRate>19</CurrencyRate>
<CustomerNumber>1</CustomerNumber>
<CustomerReference>sample string 21</CustomerReference>
<DeliveryDate>2026-01-21T22:52:38.8746871+01:00</DeliveryDate>
<LicensePlate>sample string 15</LicensePlate>
<Odometer>1</Odometer>
<OrderDate>2026-01-21T22:52:38.8746871+01:00</OrderDate>
<OrderType>NormalOrder</OrderType>
<RequisitionOrderNumber>sample string 20</RequisitionOrderNumber>
<RoundingAmount>1</RoundingAmount>
<SalesPerson>sample string 17</SalesPerson>
<SellerBranchId>13</SellerBranchId>
<TotalAmountExcludingVat>1</TotalAmountExcludingVat>
<TotalAmountIncludingVat>1</TotalAmountIncludingVat>
<WorkOrderNumber>sample string 16</WorkOrderNumber>
<AgreementName>sample string 4</AgreementName>
<AgreementNo>1</AgreementNo>
<CalendarEventId>1</CalendarEventId>
<CarrierId>1</CarrierId>
<CarrierName>sample string 11</CarrierName>
<CloseOrderTypeId>1</CloseOrderTypeId>
<CloseOrderTypeName>sample string 10</CloseOrderTypeName>
<CurrencyName>sample string 2</CurrencyName>
<Id>1</Id>
<IsWMSExpress>true</IsWMSExpress>
<IsWebOrder>true</IsWebOrder>
<OrderLines>
<OrderLineResponse>
<HasFixedQuantity>true</HasFixedQuantity>
<IsArticlePackageLine>true</IsArticlePackageLine>
<LineNumber>1</LineNumber>
<ParentLineNumber>1</ParentLineNumber>
<OrderLineArticle>
<Amount>13</Amount>
<ArticleNumber>8</ArticleNumber>
<Description>sample string 10</Description>
<DiscountFactor>12</DiscountFactor>
<HasVat>true</HasVat>
<IsExport>true</IsExport>
<Price>11</Price>
<Quantity>9</Quantity>
<VatAmount>15</VatAmount>
<VatPercent>14</VatPercent>
<IsService>true</IsService>
<MainGroupId>5</MainGroupId>
<MainGroupName>sample string 3</MainGroupName>
<OrderLineStatistics>
<AspectRatio>1</AspectRatio>
<Brand>sample string 1</Brand>
<ExtraLoad>true</ExtraLoad>
<Fuel>sample string 5</Fuel>
<Noise>1</Noise>
<NoiseClass>1</NoiseClass>
<RimDiameter>1</RimDiameter>
<RunFlatTyre>true</RunFlatTyre>
<SectionWidth>1</SectionWidth>
<SpeedRating>sample string 3</SpeedRating>
<TreadPattern>sample string 2</TreadPattern>
<Weight>1</Weight>
<Wet>sample string 4</Wet>
</OrderLineStatistics>
<OrderLineTypeId>1</OrderLineTypeId>
<OrderLineTypeName>sample string 2</OrderLineTypeName>
<SubGroupId>6</SubGroupId>
<SubGroupName>sample string 4</SubGroupName>
<WMSConfirmedQuantity>1</WMSConfirmedQuantity>
</OrderLineArticle>
<OrderLineText>
<Text>sample string 1</Text>
</OrderLineText>
</OrderLineResponse>
<OrderLineResponse>
<HasFixedQuantity>true</HasFixedQuantity>
<IsArticlePackageLine>true</IsArticlePackageLine>
<LineNumber>1</LineNumber>
<ParentLineNumber>1</ParentLineNumber>
<OrderLineArticle>
<Amount>13</Amount>
<ArticleNumber>8</ArticleNumber>
<Description>sample string 10</Description>
<DiscountFactor>12</DiscountFactor>
<HasVat>true</HasVat>
<IsExport>true</IsExport>
<Price>11</Price>
<Quantity>9</Quantity>
<VatAmount>15</VatAmount>
<VatPercent>14</VatPercent>
<IsService>true</IsService>
<MainGroupId>5</MainGroupId>
<MainGroupName>sample string 3</MainGroupName>
<OrderLineStatistics>
<AspectRatio>1</AspectRatio>
<Brand>sample string 1</Brand>
<ExtraLoad>true</ExtraLoad>
<Fuel>sample string 5</Fuel>
<Noise>1</Noise>
<NoiseClass>1</NoiseClass>
<RimDiameter>1</RimDiameter>
<RunFlatTyre>true</RunFlatTyre>
<SectionWidth>1</SectionWidth>
<SpeedRating>sample string 3</SpeedRating>
<TreadPattern>sample string 2</TreadPattern>
<Weight>1</Weight>
<Wet>sample string 4</Wet>
</OrderLineStatistics>
<OrderLineTypeId>1</OrderLineTypeId>
<OrderLineTypeName>sample string 2</OrderLineTypeName>
<SubGroupId>6</SubGroupId>
<SubGroupName>sample string 4</SubGroupName>
<WMSConfirmedQuantity>1</WMSConfirmedQuantity>
</OrderLineArticle>
<OrderLineText>
<Text>sample string 1</Text>
</OrderLineText>
</OrderLineResponse>
</OrderLines>
<OrderStatusId>6</OrderStatusId>
<OrderStatusName>sample string 7</OrderStatusName>
<PaymentTransactionProviderId>sample string 12</PaymentTransactionProviderId>
<RetailPriceListId>4c8b80d0-89a2-4987-8f8e-09652143ec80</RetailPriceListId>
<RetailPriceListName>sample string 5</RetailPriceListName>
<SplitId>b50b06f8-d700-4cfa-816d-1e48e9003219</SplitId>
<TimebookReservationId>9c744b4c-a4e0-49be-9cd8-15eca498322a</TimebookReservationId>
<WMSId>1</WMSId>
<WMSStatusId>1</WMSStatusId>
<WMSStatusName>sample string 8</WMSStatusName>
<Waybill xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</Waybill>
</OrderHeadResponse>
<OrderHeadResponse>
<ContactId>72b5cc08-24d1-4790-894e-35f1cdceba4c</ContactId>
<CurrencyId>18</CurrencyId>
<CurrencyRate>19</CurrencyRate>
<CustomerNumber>1</CustomerNumber>
<CustomerReference>sample string 21</CustomerReference>
<DeliveryDate>2026-01-21T22:52:38.8746871+01:00</DeliveryDate>
<LicensePlate>sample string 15</LicensePlate>
<Odometer>1</Odometer>
<OrderDate>2026-01-21T22:52:38.8746871+01:00</OrderDate>
<OrderType>NormalOrder</OrderType>
<RequisitionOrderNumber>sample string 20</RequisitionOrderNumber>
<RoundingAmount>1</RoundingAmount>
<SalesPerson>sample string 17</SalesPerson>
<SellerBranchId>13</SellerBranchId>
<TotalAmountExcludingVat>1</TotalAmountExcludingVat>
<TotalAmountIncludingVat>1</TotalAmountIncludingVat>
<WorkOrderNumber>sample string 16</WorkOrderNumber>
<AgreementName>sample string 4</AgreementName>
<AgreementNo>1</AgreementNo>
<CalendarEventId>1</CalendarEventId>
<CarrierId>1</CarrierId>
<CarrierName>sample string 11</CarrierName>
<CloseOrderTypeId>1</CloseOrderTypeId>
<CloseOrderTypeName>sample string 10</CloseOrderTypeName>
<CurrencyName>sample string 2</CurrencyName>
<Id>1</Id>
<IsWMSExpress>true</IsWMSExpress>
<IsWebOrder>true</IsWebOrder>
<OrderLines>
<OrderLineResponse>
<HasFixedQuantity>true</HasFixedQuantity>
<IsArticlePackageLine>true</IsArticlePackageLine>
<LineNumber>1</LineNumber>
<ParentLineNumber>1</ParentLineNumber>
<OrderLineArticle>
<Amount>13</Amount>
<ArticleNumber>8</ArticleNumber>
<Description>sample string 10</Description>
<DiscountFactor>12</DiscountFactor>
<HasVat>true</HasVat>
<IsExport>true</IsExport>
<Price>11</Price>
<Quantity>9</Quantity>
<VatAmount>15</VatAmount>
<VatPercent>14</VatPercent>
<IsService>true</IsService>
<MainGroupId>5</MainGroupId>
<MainGroupName>sample string 3</MainGroupName>
<OrderLineStatistics>
<AspectRatio>1</AspectRatio>
<Brand>sample string 1</Brand>
<ExtraLoad>true</ExtraLoad>
<Fuel>sample string 5</Fuel>
<Noise>1</Noise>
<NoiseClass>1</NoiseClass>
<RimDiameter>1</RimDiameter>
<RunFlatTyre>true</RunFlatTyre>
<SectionWidth>1</SectionWidth>
<SpeedRating>sample string 3</SpeedRating>
<TreadPattern>sample string 2</TreadPattern>
<Weight>1</Weight>
<Wet>sample string 4</Wet>
</OrderLineStatistics>
<OrderLineTypeId>1</OrderLineTypeId>
<OrderLineTypeName>sample string 2</OrderLineTypeName>
<SubGroupId>6</SubGroupId>
<SubGroupName>sample string 4</SubGroupName>
<WMSConfirmedQuantity>1</WMSConfirmedQuantity>
</OrderLineArticle>
<OrderLineText>
<Text>sample string 1</Text>
</OrderLineText>
</OrderLineResponse>
<OrderLineResponse>
<HasFixedQuantity>true</HasFixedQuantity>
<IsArticlePackageLine>true</IsArticlePackageLine>
<LineNumber>1</LineNumber>
<ParentLineNumber>1</ParentLineNumber>
<OrderLineArticle>
<Amount>13</Amount>
<ArticleNumber>8</ArticleNumber>
<Description>sample string 10</Description>
<DiscountFactor>12</DiscountFactor>
<HasVat>true</HasVat>
<IsExport>true</IsExport>
<Price>11</Price>
<Quantity>9</Quantity>
<VatAmount>15</VatAmount>
<VatPercent>14</VatPercent>
<IsService>true</IsService>
<MainGroupId>5</MainGroupId>
<MainGroupName>sample string 3</MainGroupName>
<OrderLineStatistics>
<AspectRatio>1</AspectRatio>
<Brand>sample string 1</Brand>
<ExtraLoad>true</ExtraLoad>
<Fuel>sample string 5</Fuel>
<Noise>1</Noise>
<NoiseClass>1</NoiseClass>
<RimDiameter>1</RimDiameter>
<RunFlatTyre>true</RunFlatTyre>
<SectionWidth>1</SectionWidth>
<SpeedRating>sample string 3</SpeedRating>
<TreadPattern>sample string 2</TreadPattern>
<Weight>1</Weight>
<Wet>sample string 4</Wet>
</OrderLineStatistics>
<OrderLineTypeId>1</OrderLineTypeId>
<OrderLineTypeName>sample string 2</OrderLineTypeName>
<SubGroupId>6</SubGroupId>
<SubGroupName>sample string 4</SubGroupName>
<WMSConfirmedQuantity>1</WMSConfirmedQuantity>
</OrderLineArticle>
<OrderLineText>
<Text>sample string 1</Text>
</OrderLineText>
</OrderLineResponse>
</OrderLines>
<OrderStatusId>6</OrderStatusId>
<OrderStatusName>sample string 7</OrderStatusName>
<PaymentTransactionProviderId>sample string 12</PaymentTransactionProviderId>
<RetailPriceListId>4c8b80d0-89a2-4987-8f8e-09652143ec80</RetailPriceListId>
<RetailPriceListName>sample string 5</RetailPriceListName>
<SplitId>b50b06f8-d700-4cfa-816d-1e48e9003219</SplitId>
<TimebookReservationId>9c744b4c-a4e0-49be-9cd8-15eca498322a</TimebookReservationId>
<WMSId>1</WMSId>
<WMSStatusId>1</WMSStatusId>
<WMSStatusName>sample string 8</WMSStatusName>
<Waybill xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</Waybill>
</OrderHeadResponse>
</ArrayOfOrderHeadResponse>