question

vladbut16 avatar image
0 Likes"
vladbut16 asked ·

API How to check that cancellation was done

Hi! Could anyone help?

I recieve an order via API and in checkout statusIi see "pending", but the seller's front-end says "The cancellation is complete".

Is this normal behavior ? And how to check that the order is closed with a return?

Previously I check that the order was completed exactly by checkout status field, but it looks like such approach no longer correct...

api and api problemcancellationcancellations
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.

1 Answer

· Write an Answer
sagar_developersupport avatar image
1 Like"
sagar_developersupport answered ·

Hi @vladbut16,

Please see the OrderStatus container to check the status of the order. Cancelled value indicates that the order has been cancelled.

REF: https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/OrderStatusCodeType.html

You can also check OrderArray.Order.CancelReason and OrderArray.Order.CancelStatus to know the reason why the order cancellation was initiated and current status for the order cancellation request respectively.

Please refer below doc to see the CancelStatusCodeType:

https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/CancelStatusCodeType.html

Note:

The CancelDetail container and the CancelReasonDetails field are no longer returned in getOrders API. You can use the Search Cancellations method of the Post-Order API to retrieve more details on a cancelled order.

Best Regards ,
eBay Developer Support

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.