Wishlists

Creating a Wish

Endpoint

POST /v1/wishlists/:wishlist_id/wishes

Parameters

Name Description
product_id required Product ID

Request

curl "https://capi.storyblok.com/v1/wishlists/75234577-3dd3-4c2c-b96b-862ed7eca0ac/wishes" -d '{"product_id":40453}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=FrRqPUQyxmfJqDDH4zALGgtt" \

Response

{
  "id": 957,
  "customer_id": null,
  "product": {
    "id": 40453,
    "sku": "1530723443.1167061",
    "ean": "",
    "name": "marylou_hackett",
    "slug": "elvera",
    "description": null,
    "description_md": null,
    "excerpt": null,
    "price": 10.5,
    "saleprice": 0.0,
    "realprice": 10.5,
    "free_shipping": false,
    "shippable": true,
    "taxable": true,
    "fixed_quantity": false,
    "weight": "0",
    "track_stock": false,
    "quantity": 0,
    "related_products": null,
    "images": [

    ],
    "seo_title": null,
    "meta": null,
    "enabled": true,
    "video": "",
    "height": 0.0,
    "width": 0.0,
    "depth": 0.0,
    "factory_price": 0.0,
    "video_img": "",
    "installments": 0,
    "stared": false,
    "seo_description": "",
    "seo_keywords": "",
    "variant_details": false,
    "subscription_days": 0,
    "subscription_period": "",
    "subscription_trial": null,
    "lookable": false,
    "purchasable": true,
    "reduction_type": "",
    "reduction_amount": 0.0,
    "parent_id": 0,
    "production_time": 0,
    "display_size_as": "",
    "child_image": null,
    "category_ids": [

    ],
    "property_ids": [

    ],
    "primary_image": "",
    "rating_value": 0,
    "review_count": 0,
    "product_option_ids": [

    ],
    "product_type": "standard",
    "sales": 0,
    "updated_at": "2018-07-04T16:57:23.000Z",
    "created_at": "2018-07-04T16:57:23.000Z",
    "currency": "USD"
  }
}

Deleting a Wish

Endpoint

DELETE /v1/wishlists/:wishlist_id/wishes/:id

Request

curl "https://capi.storyblok.com/v1/wishlists/bb81ba87-2ece-43c7-8c2d-43e1bd2c2a9d/wishes/963" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=KMh1fbC77nHpUSJVMolb2gtt" \

Getting a Wish

Endpoint

GET /v1/wishlists/:wishlist_id/wishes/:id

Request

Query Parameters

page=0
curl "https://capi.storyblok.com/v1/wishlists/66015955-a7a0-4d6e-8aaa-1bad21224724/wishes/952?page=0" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=4NaSk1UQCGrFh1JprxZrQwtt" \

Response

{
  "id": 952,
  "customer_id": 0,
  "product": {
    "id": 40446,
    "sku": "1530723442.467245",
    "ean": "",
    "name": "philip.herzog",
    "slug": "cecile",
    "description": null,
    "description_md": null,
    "excerpt": null,
    "price": 10.5,
    "saleprice": 0.0,
    "realprice": 10.5,
    "free_shipping": false,
    "shippable": true,
    "taxable": true,
    "fixed_quantity": false,
    "weight": "0",
    "track_stock": false,
    "quantity": 0,
    "related_products": null,
    "images": [

    ],
    "seo_title": null,
    "meta": null,
    "enabled": true,
    "video": "",
    "height": 0.0,
    "width": 0.0,
    "depth": 0.0,
    "factory_price": 0.0,
    "video_img": "",
    "installments": 0,
    "stared": false,
    "seo_description": "",
    "seo_keywords": "",
    "variant_details": false,
    "subscription_days": 0,
    "subscription_period": "",
    "subscription_trial": null,
    "lookable": false,
    "purchasable": true,
    "reduction_type": "",
    "reduction_amount": 0.0,
    "parent_id": 0,
    "production_time": 0,
    "display_size_as": "",
    "child_image": null,
    "category_ids": [

    ],
    "property_ids": [

    ],
    "primary_image": "",
    "rating_value": 0,
    "review_count": 0,
    "product_option_ids": [

    ],
    "product_type": "standard",
    "sales": 0,
    "updated_at": "2018-07-04T16:57:22.000Z",
    "created_at": "2018-07-04T16:57:22.000Z",
    "currency": "USD"
  }
}

Getting a list of wishes

Endpoint

GET /v1/wishlists/:wishlist_id/wishes

Parameters

Name Description
page Current page of wishes

Request

Query Parameters

page=0
curl "https://capi.storyblok.com/v1/wishlists/0a9ec8ae-08d5-49be-a903-f992fc26ede7/wishes?page=0" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=tcrnJ1aKMi1rKigGrD7DKgtt" \

Response

[
  {
    "id": 953,
    "customer_id": 0,
    "product": {
      "id": 40448,
      "sku": "1530723442.778236",
      "ean": "",
      "name": "nova",
      "slug": "jerrell",
      "description": null,
      "description_md": null,
      "excerpt": null,
      "price": 10.5,
      "saleprice": 0.0,
      "realprice": 10.5,
      "free_shipping": false,
      "shippable": true,
      "taxable": true,
      "fixed_quantity": false,
      "weight": "0",
      "track_stock": false,
      "quantity": 0,
      "related_products": null,
      "images": [

      ],
      "seo_title": null,
      "meta": null,
      "enabled": true,
      "video": "",
      "height": 0.0,
      "width": 0.0,
      "depth": 0.0,
      "factory_price": 0.0,
      "video_img": "",
      "installments": 0,
      "stared": false,
      "seo_description": "",
      "seo_keywords": "",
      "variant_details": false,
      "subscription_days": 0,
      "subscription_period": "",
      "subscription_trial": null,
      "lookable": false,
      "purchasable": true,
      "reduction_type": "",
      "reduction_amount": 0.0,
      "parent_id": 0,
      "production_time": 0,
      "display_size_as": "",
      "child_image": null,
      "category_ids": [

      ],
      "property_ids": [

      ],
      "primary_image": "",
      "rating_value": 0,
      "review_count": 0,
      "product_option_ids": [

      ],
      "product_type": "standard",
      "sales": 0,
      "updated_at": "2018-07-04T16:57:22.000Z",
      "created_at": "2018-07-04T16:57:22.000Z",
      "currency": "USD"
    }
  }
]

Updating a Wish

Endpoint

PUT /v1/wishlists/:wishlist_id/wishes/:id

Parameters

Name Description
product_id required Product ID

Request

curl "https://capi.storyblok.com/v1/wishlists/6b7b47f7-9f63-41e1-bb0a-bd63da82735a/wishes/960" -d '{"product_id":40458}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=FVJ1ZQfptf8sG1jvhzb4rQtt" \

Response

{
  "id": 960,
  "customer_id": 0,
  "product": {
    "id": 40458,
    "sku": "1530723443.444009",
    "ean": "",
    "name": "arvilla_strosin",
    "slug": "noble",
    "description": null,
    "description_md": null,
    "excerpt": null,
    "price": 10.5,
    "saleprice": 0.0,
    "realprice": 10.5,
    "free_shipping": false,
    "shippable": true,
    "taxable": true,
    "fixed_quantity": false,
    "weight": "0",
    "track_stock": false,
    "quantity": 0,
    "related_products": null,
    "images": [

    ],
    "seo_title": null,
    "meta": null,
    "enabled": true,
    "video": "",
    "height": 0.0,
    "width": 0.0,
    "depth": 0.0,
    "factory_price": 0.0,
    "video_img": "",
    "installments": 0,
    "stared": false,
    "seo_description": "",
    "seo_keywords": "",
    "variant_details": false,
    "subscription_days": 0,
    "subscription_period": "",
    "subscription_trial": null,
    "lookable": false,
    "purchasable": true,
    "reduction_type": "",
    "reduction_amount": 0.0,
    "parent_id": 0,
    "production_time": 0,
    "display_size_as": "",
    "child_image": null,
    "category_ids": [

    ],
    "property_ids": [

    ],
    "primary_image": "",
    "rating_value": 0,
    "review_count": 0,
    "product_option_ids": [

    ],
    "product_type": "standard",
    "sales": 0,
    "updated_at": "2018-07-04T16:57:23.000Z",
    "created_at": "2018-07-04T16:57:23.000Z",
    "currency": "USD"
  }
}