Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somewherewarm-snippets/7a99f360624540ad4facad8a34236191 to your computer and use it in GitHub Desktop.
Save somewherewarm-snippets/7a99f360624540ad4facad8a34236191 to your computer and use it in GitHub Desktop.
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,
"meta_data": [
{
"key": "sample key 1",
"value": "sample value 1"
},
{
"key": "sample key 2",
"value": "sample value 2"
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment