SubmitOrder - An

34 views
Skip to first unread message

Paul Marcotte

unread,
Mar 21, 2011, 8:44:39 PM3/21/11
to ChannelAdvisor Developer Network
I was able to successfully add an order days ago, but can not longer
submit and order. I've checked inventory. And used SoapUI, getting
back the same result. Can anyone help me identify the issue? Thanks
in advance!!

Here is my soap message:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:web="http://api.channeladvisor.com/webservices/"
xmlns:ord="http://api.channeladvisor.com/datacontracts/orders">
<soapenv:Header> <web:APICredentials> <web:DeveloperKey> -- </
web:DeveloperKey> <web:Password> -- </web:Password> </
web:APICredentials> </soapenv:Header> <soapenv:Body> <web:SubmitOrder>
<web:accountID> -- </web:accountID> <web:order>
<ord:OrderTimeGMT>2011-03-04T16:32:09Z</ord:OrderTimeGMT>
<ord:ClientOrderIdentifier>401003-D2549D</ord:ClientOrderIdentifier>
<ord:OrderStatus> <ord:CheckoutStatus>Completed</ord:CheckoutStatus>
<ord:CheckoutDateGMT>2011-03-04T16:32:09Z</ord:CheckoutDateGMT>
<ord:PaymentStatus>Cleared</ord:PaymentStatus>
<ord:PaymentDateGMT>2011-03-04T16:32:09Z</ord:PaymentDateGMT>
<ord:ShippingStatus>Shipped</ord:ShippingStatus>
<ord:ShippingDateGMT>2011-03-04T09:00:00Z</ord:ShippingDateGMT>
<ord:OrderRefundStatus>OrderLevel</ord:OrderRefundStatus> </
ord:OrderStatus>
<ord:BuyerEmailAddress>phonyema...@phonydomain.com</
ord:BuyerEmailAddress> <ord:EmailOptIn>false</ord:EmailOptIn>
<ord:BillingInfo> <ord:FirstName>NAZZARENO</ord:FirstName>
<ord:LastName>MASTRODDI</ord:LastName> </ord:BillingInfo>
<ord:PaymentInfo> <ord:PaymentType>PaypPal</
ord:PaymentType> </ord:PaymentInfo> <ord:ShoppingCart> <ord:CartID>0</
ord:CartID> <ord:CheckoutSource>Unspecified</ord:CheckoutSource>
<ord:VATTaxCalculationOption>Unspecified</ord:VATTaxCalculationOption>
<ord:VATShippingOption>Unspecified</ord:VATShippingOption>
<ord:VATGiftWrapOption>Unspecified</ord:VATGiftWrapOption>
<ord:LineItemSKUList>
<ord:OrderLineItemItem> <ord:LineItemType>SKU</
ord:LineItemType> <ord:UnitPrice>76.99</
ord:UnitPrice> <ord:LineItemID>0</
ord:LineItemID> <ord:AllowNegativeQuantity>true</
ord:AllowNegativeQuantity> <ord:Quantity>1</
ord:Quantity> <ord:ItemSaleSource>DIRECT_SALE</
ord:ItemSaleSource> <ord:SKU>VLCDS23585-3W</
ord:SKU> <ord:Title>View Sonic VE155B 15&quot;
Flat Panel TFT LCD Monitor - Refurbished</
ord:Title> <ord:BuyerUserID></
ord:BuyerUserID> <ord:BuyerFeedbackRating>0</
ord:BuyerFeedbackRating> <ord:SalesSourceID>1</
ord:SalesSourceID> <ord:VATRate>0.00</
ord:VATRate> <ord:TaxCost>6.45</ord:TaxCost> <ord:ShippingCost>0.00</
ord:ShippingCost> <ord:ShippingTaxCost>0.00</ord:ShippingTaxCost>
<ord:GiftWrapCost>0.00</ord:GiftWrapCost> <ord:GiftWrapTaxCost>0.00</
ord:GiftWrapTaxCost> </ord:OrderLineItemItem> </
ord:LineItemSKUList> <ord:LineItemInvoiceList>
<ord:OrderLineItemInvoice> <ord:LineItemType>SalesTax</
ord:LineItemType> <ord:UnitPrice>6.45</
ord:UnitPrice> </
ord:OrderLineItemInvoice> <ord:OrderLineItemInvoice>
<ord:LineItemType>Shipping</ord:LineItemType> <ord:UnitPrice>0.00</
ord:UnitPrice> </
ord:OrderLineItemInvoice> </ord:LineItemInvoiceList> </
ord:ShoppingCart> <ord:ShippingInfo> <ord:AddressLine1>887 NEPPERHAN
AVENUE</ord:AddressLine1> <ord:City>YONKERS</
ord:City> <ord:Region>NY</ord:Region>
<ord:PostalCode>10703</ord:PostalCode>
<ord:CountryCode>US</ord:CountryCode>
<ord:FirstName>NAZZARENO</ord:FirstName>
<ord:LastName>MASTRODDI</ord:LastName> <ord:ShipmentList>
<ord:Shipment> <ord:ShippingCarrier>FEDEX</
ord:ShippingCarrier> <ord:ShippingClass>GROUND</
ord:ShippingClass> </ord:Shipment> </ord:ShipmentList> </
ord:ShippingInfo> </web:order> </web:SubmitOrder> </soapenv:Body> </
soapenv:Envelope>

Paul Marcotte

unread,
Mar 21, 2011, 8:46:11 PM3/21/11
to ChannelAdvisor Developer Network
The title should have read SubmitOrder - An unexpected error occured.

On Mar 21, 5:44 pm, Paul Marcotte <pmarco...@gmail.com> wrote:
> I was able to successfully add an order days ago, but can not longer
> submit and order.  I've checked inventory.  And used SoapUI, getting
> back the same result.  Can anyone help me identify the issue?  Thanks
> in advance!!
>
> Here is my soap message:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:web="http://api.channeladvisor.com/webservices/"
> xmlns:ord="http://api.channeladvisor.com/datacontracts/orders">
> <soapenv:Header> <web:APICredentials> <web:DeveloperKey> -- </
> web:DeveloperKey>          <web:Password> -- </web:Password> </
> web:APICredentials> </soapenv:Header> <soapenv:Body> <web:SubmitOrder>
> <web:accountID> -- </web:accountID> <web:order>
> <ord:OrderTimeGMT>2011-03-04T16:32:09Z</ord:OrderTimeGMT>
> <ord:ClientOrderIdentifier>401003-D2549D</ord:ClientOrderIdentifier>
> <ord:OrderStatus> <ord:CheckoutStatus>Completed</ord:CheckoutStatus>
> <ord:CheckoutDateGMT>2011-03-04T16:32:09Z</ord:CheckoutDateGMT>
> <ord:PaymentStatus>Cleared</ord:PaymentStatus>
> <ord:PaymentDateGMT>2011-03-04T16:32:09Z</ord:PaymentDateGMT>
> <ord:ShippingStatus>Shipped</ord:ShippingStatus>
> <ord:ShippingDateGMT>2011-03-04T09:00:00Z</ord:ShippingDateGMT>
> <ord:OrderRefundStatus>OrderLevel</ord:OrderRefundStatus> </
> ord:OrderStatus>
> <ord:BuyerEmailAddress>phonyemailaddr...@phonydomain.com</

Marshall McClure

unread,
Mar 22, 2011, 11:25:29 AM3/22/11
to ChannelAdvisor Developer Network
I added my developer credentials, account ID, SKU, and shipping
carrier/class to your XML and was able to successfully create an order
in my test account. For the shipping carrier and class, SubmitOrder
uses the names instead of the codes, so that could possibly be the
source of your error.

Paul Marcotte

unread,
Mar 22, 2011, 3:37:20 PM3/22/11
to ChannelAdvisor Developer Network
Hi Marshall,

If I force the shipping carrier and class to invalid values, I receive
error code 109, "The information for the Carrier or Class is
invalid." Since that is not the same error that I received for the
above xml, I think that it is not related to shipping carrier/class.

I suspect it is an inventory thing, but I have verified that the SKU
is in the system for the order I'm submitting. Does the inventory
have to have a special status to allow orders to be processed?

Paul

On Mar 22, 8:25 am, Marshall McClure <marshall.mccl...@gmail.com>
wrote:

Marshall McClure

unread,
Mar 22, 2011, 4:28:38 PM3/22/11
to ChannelAdvisor Developer Network
No, there is no special status required. Have you tried using any
items other than VLCDS23585-3W?

Paul Marcotte

unread,
Mar 22, 2011, 5:08:12 PM3/22/11
to ChannelAdvisor Developer Network
Several. Are SKUs case sensitive perchance?

On Mar 22, 1:28 pm, Marshall McClure <marshall.mccl...@gmail.com>
wrote:

Marshall McClure

unread,
Mar 23, 2011, 2:10:09 PM3/23/11
to ChannelAdvisor Developer Network
No, SKU is not case sensitive.
Reply all
Reply to author
Forward
0 new messages