Docs
Management API
Wishlists

Wishlist

Create and manage customer wishlists and wishlist items.

Additional Information

Get All Wishlists

GET /wishlists

Request

Returns a list of wishlists. Optional filter parameters can be passed in.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

Body

object | application/json
  • data
    array[object]

  • meta
    object

example

Create a Wishlist

POST /wishlists

Request

Creates a wishlist and wishlist item. More than one item can be added in the POST.

Required Fields

  • name
  • customer_id

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

Body

object | application/json
  • customer_id
    integer
    required

    The customer id.

    Example: 12
  • is_public
    boolean

    Whether the wishlist is available to the public.

  • name
    string

    The title of the wishlist.

    Example: School Shopping
  • items
    array[object]

    Array of wishlist items.

example

Response

Body

object | application/json
  • data
    object

  • meta
    object

    Response metadata.

example

Get a Wishlist

GET /wishlists/{wishlist_id}

Request

Returns a single wishlist.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

Body

object | application/json
  • data
    object

  • meta
    object

    Response metadata.

example

Update a Wishlist

PUT /wishlists/{wishlist_id}

Request

Updates a wishlist.

Use this endpoint to update existing wishlist items, change the wishlistʼs name and whether the wishlist is available publicly. To add or delete a wishlist item, see Wishlist Items.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

Body

object | application/json
  • customer_id
    integer
    required

    The customer ID. A read-only value.

  • is_public
    boolean

    Whether the wishlist is available to the public.

  • name
    string

    The title of the wishlist.

  • items
    array[object]
    required

    Array of wishlist items.

example

Response

Body

object | application/json
  • data
    object

  • meta
    object

    Response metadata.

example

Delete a Wishlist

DELETE /wishlists/{wishlist_id}

Request

Deletes a wishlist.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string

example

Response

Did you find what you were looking for?