curl --request POST \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Wishlist",
"is_private": false,
"is_default": true
}
'{
"data": {
"id": "28",
"type": "wishlist",
"attributes": {
"token": "1inBHcJnxBrVEMAZb9esRqZP",
"name": "My Wishlist",
"is_private": false,
"is_default": true,
"variant_included": false
},
"relationships": {
"wished_items": {
"data": [
{
"id": "14",
"type": "wished_item"
}
]
}
}
}
}Creates a new wishlist for the current user in the current store.
curl --request POST \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Wishlist",
"is_private": false,
"is_default": true
}
'{
"data": {
"id": "28",
"type": "wishlist",
"attributes": {
"token": "1inBHcJnxBrVEMAZb9esRqZP",
"name": "My Wishlist",
"is_private": false,
"is_default": true,
"variant_included": false
},
"relationships": {
"wished_items": {
"data": [
{
"id": "14",
"type": "wished_item"
}
]
}
}
}
}User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
Specify the fields you would like returned in the response body. More information.
200 Success - Returns the wishlist object.
Show child attributes
Show child attributes
Was this page helpful?