Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Delete Orders imported via Shopify API

Delete Orders imported via Shopify API

Nouman_Ahmad
Shopify Partner
3 0 0

Hi there,

We attempted to import order data into Shopify using the Shopify API, but the "processed_at" attribute was omitted during the initial import. Now, we need to delete all of these orders and then attempt to import them again via a CSV file containing all the details.

What is the best way to proceed?

I've attempted to use the delete order endpoint, but I receive a 200 response with the full body of the order, and the order is still present in the Shopify store.

I've also tried archiving orders from the admin panel and then using the API, but I encountered the same result.

Additionally, I can't cancel orders in the admin panel that were created by the API.

Here's an example of my delete request:

curl --location 'https://adasda-24.myshopify.com/admin/api/2024-10/orders/123123123123.json' \
--header 'X-Shopify-Access-Token: token'

Could you please assist with resolving these issues?

Replies 0 (0)