0

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?

gunr2171
  • 16,104
  • 25
  • 61
  • 88
ihorko
  • 6,855
  • 25
  • 77
  • 116

1 Answers1

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>
SH-
  • 1,642
  • 10
  • 13