Last active
June 9, 2021 08:43
-
-
Save somewherewarm-snippets/901fb7f6966b5cf91d0494f8eed50cdb 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 POST 'https://example.com/wp-json/wc/v3/gift-cards' \ | |
-u consumer_key:consumer_secret \ | |
-H 'Content-Type: application/json' \ | |
--data-raw '{ | |
"recipient": "recipient@somewherewarm.local", | |
"sender": "Awesome Sender", | |
"balance": 100 | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment