question

js_lab_it avatar image
0 Likes"
js_lab_it asked

AddOrder ShippingServiceCost returned as Zero in auctioncheckoutcomplete

I'm using AddOrder call: here is sample XML: ????? OrderType Seller PayPal ebay@seller.itt ShippingDetailsType ShippingServiceOptionsType false 0 IT_Posta1 0 2.7 1 false ShippingServiceOptionsType false 0 IT_ExpressCourier 0 5.95 2 true 20.00 TransactionArrayType TransactionType ItemType 333333333333 444444444444 TransactionType ItemType 555555555555 666666666666 en_US 1019 Low where in > Total there is the amount of all items (17,30) plus ShippingCosts of SelectedShippingOption (2.70) thus 20.00 (Euro) and get such answer: 2017-09-08T10:30:13.627Z Success 1029 E1029_INTL_APIXO_18523079_R1 237519530019 2017-09-08T10:30:13.000Z But, when I receive the auctioncheckoutcomplete notification I find this: 0.0 IT_Posta1 0.0 where ShippingServiceCost is set to Zero I'm doing something wrong? Thanks
shippingservicecostaddorderzero
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

yazhou_developersupport avatar image
0 Likes"
yazhou_developersupport answered
Hello , The data fields in the [AuctionCheckoutComplete Notification][1] are the same as those returned by the GetItemTransactions call with the default detail level. If [BuyerSelectedShipping][2] is false, the application should ignore ShippingServiceCost and ShippingServiceSelected (items whose values are defaulted by eBay). It should be the reason for zero value of < ShippingServiceCost >. You need to use GetOrders API call to retrieve accurate orders' information. Below is a sample of this api response. 0.0 IT_Posta1 2.7 17.3 20.0 [1]: https://developer.ebay.com/devzone/guides/ebayfeatures/Notifications/Notif-AuctionCheckoutComplete.html [2]: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/GetItemTransactions.html#Response.TransactionArray.Transaction.Status.BuyerSelectedShipping
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

js_lab_it avatar image
0 Likes"
js_lab_it answered
Hi Yazhou! Thanks for answering. Well, that's strange, because we get zero as shipping cost only when we use AddOrder call: in "normal" sales the shipping costs of ShippingServiceSelected is always correct, but we will try to manage through GetOrder. But we have changed a little the way of handling multiple items sales: we set `FlatShippingDiscount/EachAdditionalAmount` to 0.00 and leave system to group them when customer pays. issue is that although it is working well, 'sometimes' the shipping costs are doubled: this is from `auctioncheckoutcomplete` 0.0 IT_Posta1 2.7 2017-10-09T07:00:00.000Z 2017-10-12T07:00:00.000Z ----- 2017-10-05T11:23:49.000Z 234551806018 Completed 143249 Buyer NotApplicable 234551806018!40000070015102 false and this is from `GetOrder` 234551806018 Completed 0.0 27.94 8.1 NoPaymentFailure 2017-10-05T11:23:49.000Z PayPal Complete PayPal 0.0 NotOffered false 0.0 false 0.0 IT_Posta1 5.4 1 false 1 4 143249 true ... 0.0 IT_Posta1 5.4 22.54 27.94 Why in THIS GetOrder the shipping costs are doubled? (since in many other shipping costs for multiple items orders are 2.7? Considering that shipping costs are 2.70, and that the order contains 2 items why ` 8.1 ` has such value? should be zero... but 8.10 is 3 times 2.7 What am I missing? thanks
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.