Last active
July 28, 2021 13:19
-
-
Save somewherewarm-snippets/ed9dd7c6a17dd1424c5773cd99f9807e 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": [ | |
{ | |
"id": 43, | |
"code": "XXXX-XXXX-XXXX-XXXX", | |
"amount": 50 // Remaining order total becomes $50 | |
}, | |
{ | |
"id": 96, | |
"code": "KKKK-KKKK-KKKK-KKKK", | |
"amount": 60 // Exceeds available order total, cannot be applied | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment