EMUN1 ASP.NET

<back to all web services

QueryOrders

The following routes are available for this service:
All Verbs/service/QueryOrders
QueryOrders Parameters:
NameParameterData TypeRequiredDescription
SearchquerystringNo
OrderNumberquerystringNo
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
OrderBase<TLine> Parameters:
NameParameterData TypeRequiredDescription
LinesformList<TLine>No
OrderBase Parameters:
NameParameterData TypeRequiredDescription
TagsformDictionary<string, HashSet<String>>No
IdformstringNo
OrderNumberformstringNo
OriginalOrderNumberformstringNo
RetailerIdformstringNo
ConsumerIdformstringNo
CustomerIdformstringNo
CompanyNameformstringNo
StatusformstringNo
ERPStatusformstringNo
ManufacturerIdformstringNo
ReviewReasonformstringNo
TransactionTypeformstringNo
SalesRepIDformstringNo
CurrentRepIDformstringNo
OrderDateformDateTimeNo
ShipDateformDateTimeNo
ExpectedToClearformDateTimeNo
OpenItemsformIEnumerable<OrderLine>No
ShippedItemsformIEnumerable<OrderLine>No
OrderTotalformdecimalNo
OpenTotalformdecimalNo
ShippedTotalformdecimalNo
BalanceformdecimalNo
ShippedAmountformdecimalNo
SourceformstringNo
ClientVersionformstringNo
IsEmunOrderformboolNo
ShippingMethdodformstringNo
ShippingLocationAddressformstringNo
ShippingLocationAddress2formstringNo
ShippingLocationCityformstringNo
ShippingLocationStateformstringNo
ShippingLocationZipformstringNo
ShippingLocationCountryformstringNo
ShippingLocationPhoneformstringNo
ShippingLocationNameformstringNo
BillAddressformstringNo
BillAddress2formstringNo
BillCityformstringNo
BillStateformstringNo
BillZipformstringNo
BillCountryformstringNo
BillPhoneformstringNo
PaymentTermsformstringNo
CreditCardTypeformstringNo
CreditCardNumberformstringNo
Custom11formstringNo
PrefixformstringNo
ParcelsformList<Parcel>No
ParcelCountformintNo
RetailerEmailformstringNo
PONumberformstringNo
ActiveformboolNo
UploadedformboolNo
ExportedformboolNo
NextFulfillmentformstringNo
LocationformstringNo
CustEmailformstringNo
MetaformDictionary<string, string>No
EntityBase<K> Parameters:
NameParameterData TypeRequiredDescription
IdformKNo
OrderLineBase Parameters:
NameParameterData TypeRequiredDescription
OrderNumberformstringNo
PositionformintNo
ProductIdformstringNo
DescriptionformstringNo
QtyPurchasedformintNo
QtyOpenformintNo
PriceformdecimalNo
ExtendedTotalformdecimalNo
PromoDiscountformdecimalNo
OptionsformList<ILineOption>No
ActiveformboolNo
XmlOptionsformstringNo
CostformstringNo
VendorIdformstringNo
CategoryIdformstringNo
ShipDateformDateTime?No
StatusformstringNo
ILineOption Parameters:
NameParameterData TypeRequiredDescription
FieldIdformstringNo
OrderNumberformstringNo
PositionformintNo
UpchargeformdoubleNo
UpchargeTypeformstringNo
ValueIdformstringNo
Parcel Parameters:
NameParameterData TypeRequiredDescription
CartonNumberformstringNo
OrderNumberformstringNo
OrderStatusformstringNo
OrderedOnformDateTimeNo
InvoiceNumberformstringNo
InvoicedOnformDateTimeNo
ManufacturerIdformstringNo
ShippingMethodformstringNo
TrackingNumberformstringNo
TrackingUrlformstringNo
WarehouseformstringNo
PONumberformstringNo
CartNameformstringNo
RetailerIdformstringNo
RetailerEmailformstringNo
ShippingLocationIdformstringNo
QueryResponse<T> Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
TotalformintNo
ResultsformList<T>No
MetaformDictionary<string, string>No
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /service/QueryOrders HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<QueryOrders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Orders">
  <Fields xmlns="http://schemas.servicestack.net/types">String</Fields>
  <Include xmlns="http://schemas.servicestack.net/types">String</Include>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <OrderBy xmlns="http://schemas.servicestack.net/types">String</OrderBy>
  <OrderByDesc xmlns="http://schemas.servicestack.net/types">String</OrderByDesc>
  <Skip xmlns="http://schemas.servicestack.net/types">0</Skip>
  <Take xmlns="http://schemas.servicestack.net/types">0</Take>
  <OrderNumber>String</OrderNumber>
  <Search>String</Search>
</QueryOrders>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<QueryResponseOfOrderzUfGIW9z xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Offset>0</Offset>
  <Total>0</Total>
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Orders">
    <d2p1:Order>
      <Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
      <d2p1:Active>false</d2p1:Active>
      <d2p1:Balance>0</d2p1:Balance>
      <d2p1:BillAddress>String</d2p1:BillAddress>
      <d2p1:BillAddress2>String</d2p1:BillAddress2>
      <d2p1:BillCity>String</d2p1:BillCity>
      <d2p1:BillCountry>String</d2p1:BillCountry>
      <d2p1:BillPhone>String</d2p1:BillPhone>
      <d2p1:BillState>String</d2p1:BillState>
      <d2p1:BillZip>String</d2p1:BillZip>
      <d2p1:ClientVersion>String</d2p1:ClientVersion>
      <d2p1:CompanyName>String</d2p1:CompanyName>
      <d2p1:ConsumerId>String</d2p1:ConsumerId>
      <d2p1:CreditCardNumber>String</d2p1:CreditCardNumber>
      <d2p1:CreditCardType>String</d2p1:CreditCardType>
      <d2p1:CurrentRepID>String</d2p1:CurrentRepID>
      <d2p1:CustEmail>String</d2p1:CustEmail>
      <d2p1:Custom11>String</d2p1:Custom11>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:ERPStatus>String</d2p1:ERPStatus>
      <d2p1:ExpectedToClear>0001-01-01T00:00:00</d2p1:ExpectedToClear>
      <d2p1:Exported>false</d2p1:Exported>
      <d2p1:IsEmunOrder>true</d2p1:IsEmunOrder>
      <d2p1:Location>String</d2p1:Location>
      <d2p1:ManufacturerId>String</d2p1:ManufacturerId>
      <d2p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Meta>
      <d2p1:NextFulfillment>String</d2p1:NextFulfillment>
      <d2p1:OpenItems />
      <d2p1:OpenTotal>0</d2p1:OpenTotal>
      <d2p1:OrderDate>0001-01-01T00:00:00</d2p1:OrderDate>
      <d2p1:OrderNumber>String</d2p1:OrderNumber>
      <d2p1:OrderTotal>0</d2p1:OrderTotal>
      <d2p1:OriginalOrderNumber>String</d2p1:OriginalOrderNumber>
      <d2p1:PONumber>String</d2p1:PONumber>
      <d2p1:ParcelCount>1</d2p1:ParcelCount>
      <d2p1:Parcels>
        <d2p1:Parcel>
          <Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
          <d2p1:CartName>String</d2p1:CartName>
          <d2p1:CartonNumber>String</d2p1:CartonNumber>
          <d2p1:InvoiceNumber>String</d2p1:InvoiceNumber>
          <d2p1:InvoicedOn>0001-01-01T00:00:00</d2p1:InvoicedOn>
          <d2p1:ManufacturerId>String</d2p1:ManufacturerId>
          <d2p1:OrderNumber>String</d2p1:OrderNumber>
          <d2p1:OrderStatus>String</d2p1:OrderStatus>
          <d2p1:OrderedOn>0001-01-01T00:00:00</d2p1:OrderedOn>
          <d2p1:PONumber>String</d2p1:PONumber>
          <d2p1:RetailerEmail>String</d2p1:RetailerEmail>
          <d2p1:RetailerId>String</d2p1:RetailerId>
          <d2p1:ShippingLocationId>String</d2p1:ShippingLocationId>
          <d2p1:ShippingMethod>String</d2p1:ShippingMethod>
          <d2p1:TrackingNumber>String</d2p1:TrackingNumber>
          <d2p1:TrackingUrl>String</d2p1:TrackingUrl>
          <d2p1:Warehouse>String</d2p1:Warehouse>
        </d2p1:Parcel>
      </d2p1:Parcels>
      <d2p1:PaymentTerms>String</d2p1:PaymentTerms>
      <d2p1:Prefix>String</d2p1:Prefix>
      <d2p1:RetailerEmail>String</d2p1:RetailerEmail>
      <d2p1:RetailerId>String</d2p1:RetailerId>
      <d2p1:ReviewReason>String</d2p1:ReviewReason>
      <d2p1:SalesRepID>String</d2p1:SalesRepID>
      <d2p1:ShipDate>0001-01-01T00:00:00</d2p1:ShipDate>
      <d2p1:ShippedAmount>0</d2p1:ShippedAmount>
      <d2p1:ShippedItems />
      <d2p1:ShippedTotal>0</d2p1:ShippedTotal>
      <d2p1:ShippingLocationAddress>String</d2p1:ShippingLocationAddress>
      <d2p1:ShippingLocationAddress2>String</d2p1:ShippingLocationAddress2>
      <d2p1:ShippingLocationCity>String</d2p1:ShippingLocationCity>
      <d2p1:ShippingLocationCountry>String</d2p1:ShippingLocationCountry>
      <d2p1:ShippingLocationName>String</d2p1:ShippingLocationName>
      <d2p1:ShippingLocationPhone>String</d2p1:ShippingLocationPhone>
      <d2p1:ShippingLocationState>String</d2p1:ShippingLocationState>
      <d2p1:ShippingLocationZip>String</d2p1:ShippingLocationZip>
      <d2p1:ShippingMethdod>String</d2p1:ShippingMethdod>
      <d2p1:Source>String</d2p1:Source>
      <d2p1:Status>String</d2p1:Status>
      <d2p1:Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>
            <d4p1:string>String</d4p1:string>
          </d4p1:Value>
        </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      </d2p1:Tags>
      <d2p1:TransactionType>String</d2p1:TransactionType>
      <d2p1:Uploaded>false</d2p1:Uploaded>
      <d2p1:Lines>
        <d2p1:OrderLine>
          <d2p1:Active>false</d2p1:Active>
          <d2p1:CategoryId>String</d2p1:CategoryId>
          <d2p1:Cost>String</d2p1:Cost>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:ExtendedTotal>0</d2p1:ExtendedTotal>
          <d2p1:Options xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
          <d2p1:OrderNumber>String</d2p1:OrderNumber>
          <d2p1:Position>0</d2p1:Position>
          <d2p1:Price>0</d2p1:Price>
          <d2p1:ProductId>String</d2p1:ProductId>
          <d2p1:PromoDiscount>0</d2p1:PromoDiscount>
          <d2p1:QtyOpen>0</d2p1:QtyOpen>
          <d2p1:QtyPurchased>0</d2p1:QtyPurchased>
          <d2p1:ShipDate>0001-01-01T00:00:00</d2p1:ShipDate>
          <d2p1:Status>String</d2p1:Status>
          <d2p1:VendorId>String</d2p1:VendorId>
          <d2p1:XmlOptions>&lt;Options&gt;&lt;/Options&gt;</d2p1:XmlOptions>
        </d2p1:OrderLine>
      </d2p1:Lines>
    </d2p1:Order>
  </Results>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <ResponseStatus>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StackTrace>String</StackTrace>
    <Errors>
      <ResponseError>
        <ErrorCode>String</ErrorCode>
        <FieldName>String</FieldName>
        <Message>String</Message>
        <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Meta>
      </ResponseError>
    </Errors>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
  </ResponseStatus>
</QueryResponseOfOrderzUfGIW9z>