Last active
July 30, 2021 14:51
-
-
Save somewherewarm-snippets/99f259b2a4ef8a880cad5200770132d9 to your computer and use it in GitHub Desktop.
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
curl -X PUT https://somewherewarm.test/support/wp-json/wc/v3/orders/68 \ | |
-u consumer_key:consumer_secret \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"gift_cards": [ | |
{ | |
"code": "KKKK-KKKK-KKKK-KKKK", | |
"amount": 0 // Deletes gift card, remaining order total becomes 70 | |
}, | |
{ | |
"code": "EEEE-EEEE-EEEE-EEEE", | |
"amount": 40 // Gift card is applied successfully | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment