curl --request PATCH \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token}/set_item_quantity/{item_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"quantity": 7
}'{
"data": {
"id": "1",
"type": "wished_item",
"attributes": {
"quantity": 3,
"price": "55.99",
"total": "167.97",
"display_price": "$55.99",
"display_total": "$167.97"
},
"relationships": {
"variant": {
"data": {
"id": "149",
"type": "variant"
}
}
}
}
}This endpoint sets the wished item quantity.
curl --request PATCH \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token}/set_item_quantity/{item_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"quantity": 7
}'{
"data": {
"id": "1",
"type": "wished_item",
"attributes": {
"quantity": 3,
"price": "55.99",
"total": "167.97",
"display_price": "$55.99",
"display_total": "$167.97"
},
"relationships": {
"variant": {
"data": {
"id": "149",
"type": "variant"
}
}
}
}
}User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
The token is a unique string used to identify the target resource.
The wished item id
Set the quantity value to an integer greater than 0
Was this page helpful?