Wishlists

Wishlists contain store SKUs saved by users and control how saved items are shared.

Wishlist Object

A user's store wishlist.

Wishlist Structure
FieldTypeDescription
idsnowflakeThe ID of the wishlist
user_idsnowflakeThe ID of the user who owns the wishlist
wishlist_itemsarray[wishlist item object]The items in the wishlist
storefront_pricing?array[object]Storefront pricing for the wishlist's SKUs
visibilityintegerThe visibility
applications?array[application object]Applications referenced by wishlist items
Wishlist Visibility
ValueNameDescription
0PRIVATEThe wishlist is only visible to its owner
1PUBLICThe wishlist is visible on the owner's profile
Wishlist Item Structure
FieldTypeDescription
sku_idsnowflakeThe ID of the SKU
sku_product_lineintegerThe product line of the SKU
sku_namestringThe name of the SKU
is_ownedbooleanWhether the wishlist owner owns the SKU
gifter_user_id??snowflakeThe ID of the user who gifted the SKU
sku?SKU objectThe SKU
collectibles_item?collectible objectThe collectible represented by the item
bundle_items?array[collectible object]The collectibles represented by a bundle

Collectible wishlist items contain either collectibles_item or bundle_items.

Example Wishlist
{
"id": "1415376298170224701",
"user_id": "852892297661906993",
"wishlist_items": [
{
"sku_id": "1212569433834881034",
"sku_product_line": 7,
"sku_name": "Midnight Glow",
"is_owned": false,
"gifter_user_id": null,
"collectibles_item": {
"type": 1,
"sku_id": "1212569433834881034"
}
}
],
"visibility": 1,
"applications": []
}

Wishlist Recommendations Object

Recommendations for gifting wishlist items.

Wishlist Recommendations Structure
FieldTypeDescription
skusarray[SKU object]The recommended SKUs
skus_to_user_and_reasonmap[snowflake, object]A mapping of SKU IDs to recommendation recipient details
applicationsarray[application object]Applications referenced by the recommended SKUs
storefront_pricing?array[object]Storefront pricing for the recommended SKUs

Endpoints

Get Wishlist

GET/wishlists/{wishlist_id}

Returns a wishlist object.

Query String Params
FieldTypeDescription
source?stringThe source of the request (default USER_PROFILE)
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing, either google or apple

Modify User Wishlist

PATCH/users/@me/wishlists/{wishlist_id}

Modifies the current user's wishlist visibility. Returns the updated wishlist object on success.

JSON Params
FieldTypeDescription
visibilityintegerThe wishlist visibility
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing, either google or apple

Add Wishlist Item

POST/users/@me/wishlist/items

Adds a SKU to the current user's wishlist. Returns the updated wishlist object on success.

JSON Params
FieldTypeDescription
sku_idsnowflakeThe ID of the SKU
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing, either google or apple

Delete User Wishlist Item

DELETE/users/@me/wishlists/{wishlist_id}/items/{sku.id}

Removes the SKU from the current user's wishlist. Returns the updated wishlist object on success.

Query String Params
FieldTypeDescription
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing, either google or apple

Modify User Wishlist Item

PATCH/users/@me/wishlists/{wishlist_id}/items/{sku.id}

Reorders a SKU in the current user's wishlist. Returns the updated wishlist object on success.

JSON Params
FieldTypeDescription
previous_sku_id?snowflakeThe ID of the SKU to place before this SKU
next_sku_id?snowflakeThe ID of the SKU to place after this SKU
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing, either google or apple

List User Wishlist Recommendations

GET/wishlist/gift-recommendations

Returns a wishlist recommendations object.

Query String Params
FieldTypeDescription
application_idsarray[snowflake]The application IDs to include
user_idsarray[snowflake]The user IDs to include
max_recommendations?integerThe maximum number of recommendations to return (default 20)
localize?booleanWhether to localize the recommendations (default true)
country_code?stringThe ISO 3166-1 alpha-2 country code used for pricing
payment_gateway?stringThe mobile payment gateway used for pricing
Example Response
{
"skus": [],
"skus_to_user_and_reason": {},
"applications": [],
"storefront_pricing": []
}