Last active
September 22, 2020 11:45
-
-
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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