Cancel eBay order via API

老子叫甜甜 提交于 2019-12-11 20:37:44

问题


I use CompleteSale function to mark order as completed on eBay via API. What is the way to cancel existing order on eBay via API?


回答1:


I think you want AddDispute. It can be used to cancel single line orders.

It takes TransactionId and ItemID OR OrderLineItemID (concatenation of ItemID and TransactionID, with a hyphen in between these two ID [OrderLineItemID = ItemID + "-" + OrderLineItemID]). Presumably, you can call it multiple times to cancel multiple lines. I am not 100% sure though.

Sample from Ebay's customer help.

<?xml version="1.0" encoding="utf-8"?>
<AddDisputeRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>673</Version>
  <DisputeReason>TransactionMutuallyCanceled</DisputeReason>
  <DisputeExplanation>BuyerNoLongerWantsItem</DisputeExplanation>  
  <ItemID>140451132057</ItemID>
  <TransactionID>0</TransactionID>
  <RequesterCredentials>
    <eBayAuthToken> xxx</eBayAuthToken>
    </RequesterCredentials>
</AddDisputeRequest>


来源:https://stackoverflow.com/questions/16816247/cancel-ebay-order-via-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!