NAV

<back to all web services

NAVOrderImport

The following routes are available for this service:
POST/orders
NAVOrderImport Parameters:
NameParameterData TypeRequiredDescription
ExternalOrderIdbodystringNo
OrderTypeIdbodystringNo
CreatedDateUTCbodyDateTime?No
SubmittedDateUTCbodyDateTime?No
BeeNumberCustomerbodydecimal?No
BeeNumberPayeebodydecimal?No
OrderSourcebodystringNo
ShippingMethodbodystringNo
GiftMessagebodystringNo
GiftMessageFrombodystringNo
GiftMessageTobodystringNo
ShippingCommentbodystringNo
ShippingAddressbodyNAVOrderImportAddressNo
OrderSkusbodyList<NAVOrderImportSku>No
OrderPaymentsbodyList<NAVOrderImportPayment>No
OrderFeesbodyList<NAVOrderImportFee>No
SubTotalbodydecimal?No
OrderTotalbodydecimal?No
ShippingCostbodydecimal?No
Taxbodydecimal?No
ShippingTaxbodydecimal?No
ExternalDiscountReasonbodystringNo
PCLevelbodydecimal?No
AgentIdbodystringNo
NumberOfCustomersServedbodydecimal?No
VersionNumberbodystringNo
VersionYearbodystringNo
AdditionalCodebodystringNo
DiscountPercentbodystringNo
TaxRatePercentbodystringNo
OrderWithinTimePeriodbodydecimal?No
TaxAreaCodebodystringNo
GeocodebodystringNo
FundraiserIdbodystringNo
WarehouseCodebodystringNo
OriginalReshipExternalOrderIdbodystringNo
ShippedVersionNumberbodystringNo
ShippedVersionYearbodystringNo
MasterOrderIdbodystringNo
CouponValuebodystringNo
SalesCenterIdbodystringNo
PremierLevelbodystringNo
PCLevelCurrentCyclebodydecimal?No
PremierLevelCurrentCyclebodystringNo
EmailAddressbodystringNo
PhoneNumberbodystringNo
NAVOrderImportAddress Parameters:
NameParameterData TypeRequiredDescription
FirstNameformstringNo
LastNameformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
AddressLine3formstringNo
AddressLine4formstringNo
AddressLine5formstringNo
CityformstringNo
StateProvinceCodeformstringNo
PostalCodeformstringNo
CountyformstringNo
CountryCodeformstringNo
NAVOrderImportSku Parameters:
NameParameterData TypeRequiredDescription
SkuCodeformstringNo
OrderLineNumberformint?No
Quantityformint?No
IsAutoShipformbool?No
OrderSkuComponentsformList<NAVOrderImportSkuComponent>No
PricePaidPerUnitformdecimal?No
RetailPricePerUnitformdecimal?No
NetPriceformdecimal?No
NetSalesformdecimal?No
SubmittedNetPriceformdecimal?No
SubmittedNetSalesformdecimal?No
ManualDiscountAmountformdecimal?No
ItemDiscountPercentformdecimal?No
TaxAmountformdecimal?No
TaxPercentageformdecimal?No
CommissionableValueEarnedformdecimal?No
QualifyingValueEarnedformdecimal?No
QualifyingValueEarnedSubmittedformdecimal?No
OverrideCVEarnedformdecimal?No
OverrideCVEarnedSubmittedformdecimal?No
OverrideQVEarnedformdecimal?No
GroupCVEarnedformdecimal?No
GroupQVEarnedformdecimal?No
UplineCVEarnedformdecimal?No
UplineQVEarnedformdecimal?No
VersionNumberformstringNo
VersionYearformstringNo
CouponCodeformstringNo
SubstituteIndicatorformstringNo
FulfillmentIndicatorformstringNo
SubstituteSkuCodeformstringNo
VehicleIdformstringNo
OfferIdformstringNo
ParentSKUCodeformstringNo
BuyingDiscountformdecimal?No
OriginalOrderQtyformdecimal?No
ClosedQuantityformdecimal?No
NAVOrderImportSkuComponent Parameters:
NameParameterData TypeRequiredDescription
ParentOrderLineNumberformint?No
OrderLineNumberformint?No
SkuCodeformstringNo
Quantityformint?No
PricePaidPerUnitformdecimal?No
RetailPricePerUnitformdecimal?No
NetPriceformdecimal?No
TaxAmountformdecimal?No
TaxPercentageformdecimal?No
VersionNumberformstringNo
VersionYearformstringNo
VehicleIdformstringNo
OfferIdformstringNo
NAVOrderImportPayment Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeformstringNo
PaymentIdentifier1formstringNo
PaymentIdentifier2formstringNo
PaymentIdentifier3formstringNo
PaymentIdentifier4formstringNo
PaymentIdentifier5formstringNo
PaymentTokenformstringNo
AuthorizationTimeformDateTime?No
AuthorizationCodeformstringNo
TransactionIdformstringNo
AmountChargedformdecimal?No
BillingAddressformNAVOrderImportAddressNo
NAVOrderImportFee Parameters:
NameParameterData TypeRequiredDescription
FeeSystemKeywordformstringNo
FeeAmountformdecimal?No
TaxAmountformdecimal?No
FeeTotalformdecimal?No
NAVOrderImportResponse Parameters:
NameParameterData TypeRequiredDescription
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 /orders HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<NAVOrderImport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AdditionalCode>String</AdditionalCode>
  <AgentId>String</AgentId>
  <BeeNumberCustomer>0</BeeNumberCustomer>
  <BeeNumberPayee>0</BeeNumberPayee>
  <CouponValue>String</CouponValue>
  <CreatedDateUTC>0001-01-01T00:00:00</CreatedDateUTC>
  <DiscountPercent>String</DiscountPercent>
  <EmailAddress>String</EmailAddress>
  <ExternalDiscountReason>String</ExternalDiscountReason>
  <ExternalOrderId>String</ExternalOrderId>
  <FundraiserId>String</FundraiserId>
  <Geocode>String</Geocode>
  <GiftMessage>String</GiftMessage>
  <GiftMessageFrom>String</GiftMessageFrom>
  <GiftMessageTo>String</GiftMessageTo>
  <MasterOrderId>String</MasterOrderId>
  <NumberOfCustomersServed>0</NumberOfCustomersServed>
  <OrderFees>
    <NAVOrderImportFee>
      <FeeAmount>0</FeeAmount>
      <FeeSystemKeyword>String</FeeSystemKeyword>
      <FeeTotal>0</FeeTotal>
      <TaxAmount>0</TaxAmount>
    </NAVOrderImportFee>
  </OrderFees>
  <OrderPayments>
    <NAVOrderImportPayment>
      <AmountCharged>0</AmountCharged>
      <AuthorizationCode>String</AuthorizationCode>
      <AuthorizationTime>0001-01-01T00:00:00</AuthorizationTime>
      <BillingAddress>
        <AddressLine1>String</AddressLine1>
        <AddressLine2>String</AddressLine2>
        <AddressLine3>String</AddressLine3>
        <AddressLine4>String</AddressLine4>
        <AddressLine5>String</AddressLine5>
        <City>String</City>
        <CountryCode>String</CountryCode>
        <County>String</County>
        <FirstName>String</FirstName>
        <LastName>String</LastName>
        <PostalCode>String</PostalCode>
        <StateProvinceCode>String</StateProvinceCode>
      </BillingAddress>
      <PaymentIdentifier1>String</PaymentIdentifier1>
      <PaymentIdentifier2>String</PaymentIdentifier2>
      <PaymentIdentifier3>String</PaymentIdentifier3>
      <PaymentIdentifier4>String</PaymentIdentifier4>
      <PaymentIdentifier5>String</PaymentIdentifier5>
      <PaymentToken>String</PaymentToken>
      <PaymentType>String</PaymentType>
      <TransactionId>String</TransactionId>
    </NAVOrderImportPayment>
  </OrderPayments>
  <OrderSkus>
    <NAVOrderImportSku>
      <BuyingDiscount>0</BuyingDiscount>
      <ClosedQuantity>0</ClosedQuantity>
      <CommissionableValueEarned>0</CommissionableValueEarned>
      <CouponCode>String</CouponCode>
      <FulfillmentIndicator>String</FulfillmentIndicator>
      <GroupCVEarned>0</GroupCVEarned>
      <GroupQVEarned>0</GroupQVEarned>
      <IsAutoShip>false</IsAutoShip>
      <ItemDiscountPercent>0</ItemDiscountPercent>
      <ManualDiscountAmount>0</ManualDiscountAmount>
      <NetPrice>0</NetPrice>
      <NetSales>0</NetSales>
      <OfferId>String</OfferId>
      <OrderLineNumber>0</OrderLineNumber>
      <OrderSkuComponents>
        <NAVOrderImportSkuComponent>
          <NetPrice>0</NetPrice>
          <OfferId>String</OfferId>
          <OrderLineNumber>0</OrderLineNumber>
          <ParentOrderLineNumber>0</ParentOrderLineNumber>
          <PricePaidPerUnit>0</PricePaidPerUnit>
          <Quantity>0</Quantity>
          <RetailPricePerUnit>0</RetailPricePerUnit>
          <SkuCode>String</SkuCode>
          <TaxAmount>0</TaxAmount>
          <TaxPercentage>0</TaxPercentage>
          <VehicleId>String</VehicleId>
          <VersionNumber>String</VersionNumber>
          <VersionYear>String</VersionYear>
        </NAVOrderImportSkuComponent>
      </OrderSkuComponents>
      <OriginalOrderQty>0</OriginalOrderQty>
      <OverrideCVEarned>0</OverrideCVEarned>
      <OverrideCVEarnedSubmitted>0</OverrideCVEarnedSubmitted>
      <OverrideQVEarned>0</OverrideQVEarned>
      <ParentSKUCode>String</ParentSKUCode>
      <PricePaidPerUnit>0</PricePaidPerUnit>
      <QualifyingValueEarned>0</QualifyingValueEarned>
      <QualifyingValueEarnedSubmitted>0</QualifyingValueEarnedSubmitted>
      <Quantity>0</Quantity>
      <RetailPricePerUnit>0</RetailPricePerUnit>
      <SkuCode>String</SkuCode>
      <SubmittedNetPrice>0</SubmittedNetPrice>
      <SubmittedNetSales>0</SubmittedNetSales>
      <SubstituteIndicator>String</SubstituteIndicator>
      <SubstituteSkuCode>String</SubstituteSkuCode>
      <TaxAmount>0</TaxAmount>
      <TaxPercentage>0</TaxPercentage>
      <UplineCVEarned>0</UplineCVEarned>
      <UplineQVEarned>0</UplineQVEarned>
      <VehicleId>String</VehicleId>
      <VersionNumber>String</VersionNumber>
      <VersionYear>String</VersionYear>
    </NAVOrderImportSku>
  </OrderSkus>
  <OrderSource>String</OrderSource>
  <OrderTotal>0</OrderTotal>
  <OrderTypeId>String</OrderTypeId>
  <OrderWithinTimePeriod>0</OrderWithinTimePeriod>
  <OriginalReshipExternalOrderId>String</OriginalReshipExternalOrderId>
  <PCLevel>0</PCLevel>
  <PCLevelCurrentCycle>0</PCLevelCurrentCycle>
  <PhoneNumber>String</PhoneNumber>
  <PremierLevel>String</PremierLevel>
  <PremierLevelCurrentCycle>String</PremierLevelCurrentCycle>
  <SalesCenterId>String</SalesCenterId>
  <ShippedVersionNumber>String</ShippedVersionNumber>
  <ShippedVersionYear>String</ShippedVersionYear>
  <ShippingAddress>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <AddressLine4>String</AddressLine4>
    <AddressLine5>String</AddressLine5>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <County>String</County>
    <FirstName>String</FirstName>
    <LastName>String</LastName>
    <PostalCode>String</PostalCode>
    <StateProvinceCode>String</StateProvinceCode>
  </ShippingAddress>
  <ShippingComment>String</ShippingComment>
  <ShippingCost>0</ShippingCost>
  <ShippingMethod>String</ShippingMethod>
  <ShippingTax>0</ShippingTax>
  <SubTotal>0</SubTotal>
  <SubmittedDateUTC>0001-01-01T00:00:00</SubmittedDateUTC>
  <Tax>0</Tax>
  <TaxAreaCode>String</TaxAreaCode>
  <TaxRatePercent>String</TaxRatePercent>
  <VersionNumber>String</VersionNumber>
  <VersionYear>String</VersionYear>
  <WarehouseCode>String</WarehouseCode>
</NAVOrderImport>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<NAVOrderImportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1: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>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1: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>
    </d2p1:Meta>
  </ResponseStatus>
</NAVOrderImportResponse>