GET api/orders/{id}/{branchId}

Gets a specific order.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

branchId

integer

Required

Body Parameters

None.

Remarks

To identify a specific order, order id and branch id must be specified.

Example

//Gets the order with id 1 on branch 75
http://localhost/api/orders/1/75

Response Information

Resource Description

Returns the order with the specified id and branch.

OrderHeadResponse
NameDescriptionTypeAdditional 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

Sample:
{
  "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": "56650a67-d161-482c-a19e-d757f12ff092",
  "TimebookReservationId": "bfad8146-f17b-4ebc-95fa-99d9a9244448",
  "CalendarEventId": 1,
  "SplitId": "e2066ca5-5b85-453f-ba5b-52628cef32d5",
  "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:33",
  "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:33",
  "RequisitionOrderNumber": "sample string 20",
  "TotalAmountIncludingVat": 1.0,
  "TotalAmountExcludingVat": 1.0,
  "RoundingAmount": 1.0,
  "CustomerReference": "sample string 21",
  "ContactId": "19141744-8b7e-4e1d-8f6d-d0fa6465e894"
}

application/xml, text/xml

Sample:
<OrderHeadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Order">
  <ContactId>19141744-8b7e-4e1d-8f6d-d0fa6465e894</ContactId>
  <CurrencyId>18</CurrencyId>
  <CurrencyRate>19</CurrencyRate>
  <CustomerNumber>1</CustomerNumber>
  <CustomerReference>sample string 21</CustomerReference>
  <DeliveryDate>2026-01-21T22:52:33.2333983+01:00</DeliveryDate>
  <LicensePlate>sample string 15</LicensePlate>
  <Odometer>1</Odometer>
  <OrderDate>2026-01-21T22:52:33.2333983+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>56650a67-d161-482c-a19e-d757f12ff092</RetailPriceListId>
  <RetailPriceListName>sample string 5</RetailPriceListName>
  <SplitId>e2066ca5-5b85-453f-ba5b-52628cef32d5</SplitId>
  <TimebookReservationId>bfad8146-f17b-4ebc-95fa-99d9a9244448</TimebookReservationId>
  <WMSId>1</WMSId>
  <WMSStatusId>1</WMSStatusId>
  <WMSStatusName>sample string 8</WMSStatusName>
  <Waybill xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Waybill>
</OrderHeadResponse>