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?
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.