SubmitOrder and shipping/tax costs

57 views
Skip to first unread message

Adam Scholfield

unread,
Jun 19, 2013, 5:34:56 PM6/19/13
to ca...@googlegroups.com

we are submiting orders via the API; it doesn't seem to have an option for setting the full shipping and tax amounts per order. i see a taxcost and shippingcost on each OrderLineItemItem but these don't seem to be reflected in the final order on the "Invoice Details" page on the CA dashboard. i have read some posts leading me to believe that the shipping and taxes are actually computed by CA after the order is submitted; is this the case and is there a way around this?

AndyB

unread,
Jun 20, 2013, 2:36:20 PM6/20/13
to ca...@googlegroups.com
That is correct.  You submit the details at the Line Item level and when the Order is stored the totals are calculated.

Andy Berryman
Senior Software Engineer
ChannelAdvisor

Adam Scholfield

unread,
Jun 27, 2013, 1:12:08 PM6/27/13
to ca...@googlegroups.com
Thank you for your help Andy but it's still not working. I put in my shipping and tax costs into the first line item but it's still not calculating my total correctly in the order detail page on the CA dashboard. the following is the xml i am sending and a screenshot of how it shows up on the dashboard maybe i am missing somthing?

<?xml version="1.0" encoding="utf-16"?>
  <OrderTimeGMT xmlns="http://api.channeladvisor.com/datacontracts/orders">2013-06-27T16:36:35.817Z</OrderTimeGMT>
  <ClientOrderIdentifier xmlns="http://api.channeladvisor.com/datacontracts/orders">100168</ClientOrderIdentifier>
    <CheckoutStatus>Completed</CheckoutStatus>
    <CheckoutDateGMT>2013-06-27T16:36:35.817Z</CheckoutDateGMT>
    <PaymentStatus>Submitted</PaymentStatus>
    <PaymentDateGMT>2013-06-27T16:36:35.817Z</PaymentDateGMT>
    <ShippingStatus>Unshipped</ShippingStatus>
    <ShippingDateGMT>2013-06-27T16:36:35.817Z</ShippingDateGMT>
  </OrderStatus>
  <BuyerEmailAddress xmlns="http://api.channeladvisor.com/datacontracts/orders">xxxxxxxxxx</BuyerEmailAddress>
  <EmailOptIn xmlns="http://api.channeladvisor.com/datacontracts/orders">false</EmailOptIn>
    <AddressLine1>xxxxxxxxxx</AddressLine1>
    <AddressLine2 />
    <City>Phoenix</City>
    <Region>AZ</Region>
    <PostalCode>85027</PostalCode>
    <CountryCode>US</CountryCode>
    <CompanyName>xxxxxxx</CompanyName>
    <Title />
    <FirstName>xxxxxxxx</FirstName>
    <LastName>Office</LastName>
    <PhoneNumberDay>(xxx) xxx-xxxx</PhoneNumberDay>
  </BillingInfo>
    <CartID>0</CartID>
    <CheckoutSource>Site_Checkout</CheckoutSource>
    <VATTaxCalculationOption>Unspecified</VATTaxCalculationOption>
    <VATShippingOption>Unspecified</VATShippingOption>
    <VATGiftWrapOption>Unspecified</VATGiftWrapOption>
    <LineItemSKUList>
      <OrderLineItemItem>
        <LineItemType>SKU</LineItemType>
        <UnitPrice>24.9900</UnitPrice>
        <LineItemID>721</LineItemID>
        <AllowNegativeQuantity>true</AllowNegativeQuantity>
        <Quantity>1</Quantity>
        <ItemSaleSource>DIRECT_SALE</ItemSaleSource>
        <SKU>3222613031</SKU>
        <Title>Titleist Mens Tour Fashion Hat</Title>
        <BuyerFeedbackRating>0</BuyerFeedbackRating>
        <VATRate>0.0</VATRate>
        <TaxCost>0.0000</TaxCost>
        <ShippingCost>1.0000</ShippingCost>
        <ShippingTaxCost>0.0</ShippingTaxCost>
        <GiftWrapCost>0.0</GiftWrapCost>
        <GiftWrapTaxCost>0.0</GiftWrapTaxCost>
        <RecyclingFee>0.0</RecyclingFee>
      </OrderLineItemItem>
    </LineItemSKUList>
  </ShoppingCart>
    <AddressLine2 />
    <City>Phoenix</City>
    <Region>AZ</Region>
    <PostalCode>85027</PostalCode>
    <CountryCode>US</CountryCode>
    <CompanyName>xxxxxxxx</CompanyName>
    <Title />
    <FirstName>xxxxxxxx</FirstName>
    <LastName>Office</LastName>
    <PhoneNumberDay>(xxx) xxx-xxxx</PhoneNumberDay>
    <ShipmentList>
      <Shipment>
        <ShippingCarrier>UPS</ShippingCarrier>
        <ShippingClass>Ground</ShippingClass>
      </Shipment>
    </ShipmentList>
    <EstimatedShipDate xsi:nil="true" />
    <DeliveryDate xsi:nil="true" />
  </ShippingInfo>
</OrderSubmit>


[CA] Marshall McClure

unread,
Jun 27, 2013, 1:36:44 PM6/27/13
to ca...@googlegroups.com
See the note on this page in the documentation: http://developer.channeladvisor.com/display/cadn/OrderLineItemItem.

Adam Scholfield

unread,
Jun 27, 2013, 2:03:03 PM6/27/13
to ca...@googlegroups.com
Thank you Marshall, that worked fine. I can't believe i missed that, i am sorry to waste your time.
Reply all
Reply to author
Forward
0 new messages