Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
curl -X PUT https://example.com/wp-json/wc/v2/orders/199 \
-u consumer_key:consumer_secret \
-H "Content-Type: application/json" \
-k \
-d '{
"line_items": [
{
"product_id": 101,
"quantity": 1,
"composite_configuration": [
{
"component_id": "1482917234",
"product_id": 114,
"quantity": 1,
"variation_id": 115,
"attributes": [
{
"name": "Attribute A",
"option": "Value A1"
},
{
"name": "Attribute B",
"option": "Value B1"
}
]
}
]
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment