Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zorem
Last active September 22, 2020 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zorem/ba0a654fe684a7b52bb7f0493a221b03 to your computer and use it in GitHub Desktop.
Save zorem/ba0a654fe684a7b52bb7f0493a221b03 to your computer and use it in GitHub Desktop.
You can delete tracking numbers from orders, you will need to pass the order id and the tracking_id for this tracking number:
DELETE /wp-json/wc-ast/v3/orders/<order_id>/shipment-trackings/
curl -X DELETE https://your-domain.com/wp-json/wc-ast/v3/orders/<order_id>/shipment-trackings/fa61d174a05d2f34323b51d92823947d
-u consumer_key:consumer_secret
//response example:
"Tracking ID: fa61d174a05d2f34323b51d92823947d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment