Created
June 8, 2021 13:01
-
-
Save somewherewarm-snippets/43aa7df3a39aed9abba6312a8f7428f6 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/batch' \ | |
-u consumer_key:consumer_secret \ | |
-H 'Content-Type: application/json' \ | |
--data-raw '{ | |
"create": [ | |
{ | |
"recipient": "recipient@somewherewarm.local", | |
"sender": "sender@somewherewarm.local", | |
"balance": 100 | |
}, | |
{ | |
"recipient": "recipient@somewherewarm.local", | |
"sender": "sender@somewherewarm.local", | |
"balance": 200 | |
} | |
], | |
"update": [ | |
{ | |
"id": 177, | |
"meta_data": [ | |
{ | |
"key": "sample key 1", | |
"value": "this is the new updated value" | |
} | |
] | |
}, | |
{ | |
"id": 176, | |
"message": "176 message" | |
} | |
], | |
"delete": [ | |
15, | |
16, | |
17 | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment