Cancelling an order via the API doesn't always cancel on UI and cancelled_at still null

Tourist
11 1 5

I'm cancelling orders via the API, and refunding by setting the amount field.

The order is always refunded but sometimes it's not cancelled (not in UI, and the cancelled_at field is still null)

Using the PHP SDK

Did anyone experience this before?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
618 45 84

Hi @Lulu1,

 

Are the orders you are trying to cancel already fulfilled? If they are, you would first need to cancel the fulfillment, and then you will be able to cancel the order.

0 Likes