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/4cc2448d7d65259d7aa123fecf660aa0 to your computer and use it in GitHub Desktop.
Save somewherewarm-snippets/4cc2448d7d65259d7aa123fecf660aa0 to your computer and use it in GitHub Desktop.
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