Created
April 28, 2020 14:53
-
-
Save somewherewarm-snippets/4cc2448d7d65259d7aa123fecf660aa0 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://example.com/wp-json/wc/v1/orders/199 \ | |
-u consumer_key:consumer_secret \ | |
-H "Content-Type: application/json" \ | |
-k \ | |
-d '{ | |
"line_items": [ | |
{ | |
"product_id": 30, | |
"quantity": 1, | |
"bundle_configuration": [ | |
{ | |
"bundled_item_id": 313, | |
"product_id": 8, | |
"quantity": 3 | |
}, | |
{ | |
"bundled_item_id": 339, | |
"product_id": 114, | |
"quantity": 1, | |
"optional_selected": true, | |
"variation_id": 115, | |
"attributes": [ | |
{ | |
"name": "Property A", | |
"option": "Value A1" | |
}, | |
{ | |
"name": "Property B", | |
"option": "Value B1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment