Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Add items to wishlist

Add items to a wishlist. Send either product_ids OR variant_group_ids, not both.

  • product_ids: save the whole product (variant_group_id will be null on the item).
  • variant_group_ids: save a specific variant group; product_id is derived from the group.
POST/api/v1/{app_id}/wishlists/{id}/items
Authorization
AuthorizationAPI key · headerrequired

Bearer token (format: "Bearer {token}")

Path parameters
app_idstringrequired

UUID of the app

idstringrequired

UUID of the wishlist

Request body
requiredapplication/json

Items to add

product_idsstring[]

Product IDs for product-level wishlist items. Mutually exclusive with variant_group_ids.

variant_group_idsstring[]

Variant group IDs for group-scoped wishlist items. Mutually exclusive with product_ids. Product ID is derived from each group.

Responses
200

Items added successfully

messagestring
400

Invalid request

detailsstring[] | null
messagestring
successboolean
401

Unauthorized

detailsstring[] | null
messagestring
successboolean
404

Wishlist not found

detailsstring[] | null
messagestring
successboolean
500

Internal server error

detailsstring[] | null
messagestring
successboolean
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST '//customers.enad.io/api/v1/string/wishlists/string/items' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "product_ids": [
    "string"
  ],
  "variant_group_ids": [
    "string"
  ]
}'
Response
{
  "message": "string"
}