Last active
July 28, 2021 13:55
-
-
Save somewherewarm-snippets/b825e3641fb7e250bbbb8648be518134 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "ΧΧΧΧ-ΧΧΧΧ-ΧΧΧΧ-ΧΧΧΧ", | |
"amount":30 // Remaining order total becomes $70 | |
}, | |
{ | |
"code": "ΚΚΚΚ-ΚΚΚΚ-ΚΚΚΚ-ΚΚΚΚ" // Has 60$ balance, can be applied | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment