NAV

<back to all web services

OrderClose

The following routes are available for this service:
POST/orders/close
OrderClose Parameters:
NameParameterData TypeRequiredDescription
OrderCloseDatabodyNAVOrderCloseNo
ShipmentbodyList<NAVOrderCloseShipment>No
NAVOrderClose Parameters:
NameParameterData TypeRequiredDescription
ExternalOrderIdformstringNo
OrderTypeIdformstringNo
CreatedDateUTCformDateTime?No
SubmittedDateUTCformDateTime?No
CompletedDateUTCformDateTime?No
BeeNumberCustomerformdecimal?No
BeeNumberPayeeformdecimal?No
OrderSourceformstringNo
ShippingMethodformstringNo
GiftMessageformstringNo
GiftMessageFromformstringNo
GiftMessageToformstringNo
ShippingCommentformstringNo
ShippingAddressformNAVOrderCloseAddressNo
OrderSkusformList<NAVOrderCloseSku>No
OrderPaymentsformList<NAVOrderClosePayment>No
OrderFeesformList<NAVOrderCloseFee>No
SubTotalformdecimal?No
OrderTotalformdecimal?No
ShippingCostformdecimal?No
Taxformdecimal?No
ShippingTaxformdecimal?No
ExternalDiscountReasonformstringNo
PCLevelformdecimal?No
AgentIdformstringNo
NumberOfCustomersServedformdecimal?No
VersionNumberformstringNo
VersionYearformstringNo
AdditionalCodeformstringNo
DiscountPercentformstringNo
TaxRatePercentformstringNo
OrderWithinTimePeriodformdecimal?No
TaxAreaCodeformstringNo
GeocodeformstringNo
FundraiserIdformstringNo
WarehouseCodeformstringNo
OriginalReshipExternalOrderIdformstringNo
ShippedVersionNumberformstringNo
ShippedVersionYearformstringNo
MasterOrderIdformstringNo
CouponValueformstringNo
SalesCenterIdformstringNo
PremierLevelformstringNo
PCLevelCurrentCycleformdecimal?No
PremierLevelCurrentCycleformstringNo
EmailAddressformstringNo
PhoneNumberformstringNo
NAVOrderCloseAddress Parameters:
NameParameterData TypeRequiredDescription
FirstNameformstringNo
LastNameformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
AddressLine3formstringNo
AddressLine4formstringNo
AddressLine5formstringNo
CityformstringNo
StateProvinceCodeformstringNo
PostalCodeformstringNo
CountyformstringNo
CountryCodeformstringNo
NAVOrderCloseSku Parameters:
NameParameterData TypeRequiredDescription
SkuCodeformstringNo
OrderLineNumberformint?No
Quantityformint?No
IsAutoShipformbool?No
OrderSkuComponentsformList<NAVOrderCloseSkuComponent>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
BuyingDiscountformdecimal?No
OriginalOrderQtyformdecimal?No
ParentSKUCodeformstringNo
ClosedQuantityformdecimal?No
NAVOrderCloseSkuComponent Parameters:
NameParameterData TypeRequiredDescription
ParentOrderLineNumberformint?No
OrderLineNumberformint?No
SkuCodeformstringNo
Quantityformint?No
PricePaidPerUnitformdecimal?No
RetailPricePerUnitformdecimal?No
NetPriceformdecimal?No
TaxAmountformdecimal?No
TaxPercentageformdecimal?No
VersionNumberformstringNo
VersionYearformstringNo
VehicleIdformstringNo
OfferIdformstringNo
NAVOrderClosePayment Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeformstringNo
PaymentIdentifier1formstringNo
PaymentIdentifier2formstringNo
PaymentIdentifier3formstringNo
PaymentIdentifier4formstringNo
PaymentIdentifier5formstringNo
PaymentTokenformstringNo
AuthorizationTimeformDateTime?No
AuthorizationCodeformstringNo
TransactionIdformstringNo
AmountChargedformdecimal?No
BillingAddressformNAVOrderCloseAddressNo
NAVOrderCloseFee Parameters:
NameParameterData TypeRequiredDescription
FeeSystemKeywordformstringNo
FeeAmountformdecimal?No
TaxAmountformdecimal?No
FeeTotalformdecimal?No
NAVOrderCloseShipment Parameters:
NameParameterData TypeRequiredDescription
ShipmentDateUTCformDateTime?No
ShippingMethodformstringNo
ShippingSpeedformstringNo
TrackingNumberformstringNo
ShipmentStatusformstringNo
ShipmentDetailsformstringNo
ShippingCostformdecimal?No
Chargeformdecimal?No
Taxformdecimal?No
ActualShippingCostformdecimal?No
CartonWeightformdecimal?No
OrderShipmentSkuformList<NAVOrderCloseShipmentSku>No
NAVOrderCloseShipmentSku Parameters:
NameParameterData TypeRequiredDescription
OrderLineNumberformint?No
QuantityShippedformint?No
SubstituteSkuCodeformstringNo
OrderCloseResponse 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/close HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OrderClose xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <OrderCloseData>
    <AdditionalCode>String</AdditionalCode>
    <AgentId>String</AgentId>
    <BeeNumberCustomer>0</BeeNumberCustomer>
    <BeeNumberPayee>0</BeeNumberPayee>
    <CompletedDateUTC>0001-01-01T00:00:00</CompletedDateUTC>
    <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>
      <NAVOrderCloseFee>
        <FeeAmount>0</FeeAmount>
        <FeeSystemKeyword>String</FeeSystemKeyword>
        <FeeTotal>0</FeeTotal>
        <TaxAmount>0</TaxAmount>
      </NAVOrderCloseFee>
    </OrderFees>
    <OrderPayments>
      <NAVOrderClosePayment>
        <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>
      </NAVOrderClosePayment>
    </OrderPayments>
    <OrderSkus>
      <NAVOrderCloseSku>
        <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>
          <NAVOrderCloseSkuComponent>
            <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>
          </NAVOrderCloseSkuComponent>
        </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>
      </NAVOrderCloseSku>
    </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>
  </OrderCloseData>
  <Shipment>
    <NAVOrderCloseShipment>
      <ActualShippingCost>0</ActualShippingCost>
      <CartonWeight>0</CartonWeight>
      <Charge>0</Charge>
      <OrderShipmentSku>
        <NAVOrderCloseShipmentSku>
          <OrderLineNumber>0</OrderLineNumber>
          <QuantityShipped>0</QuantityShipped>
          <SubstituteSkuCode>String</SubstituteSkuCode>
        </NAVOrderCloseShipmentSku>
      </OrderShipmentSku>
      <ShipmentDateUTC>0001-01-01T00:00:00</ShipmentDateUTC>
      <ShipmentDetails>String</ShipmentDetails>
      <ShipmentStatus>String</ShipmentStatus>
      <ShippingCost>0</ShippingCost>
      <ShippingMethod>String</ShippingMethod>
      <ShippingSpeed>String</ShippingSpeed>
      <Tax>0</Tax>
      <TrackingNumber>String</TrackingNumber>
    </NAVOrderCloseShipment>
  </Shipment>
</OrderClose>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OrderCloseResponse 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>
</OrderCloseResponse>