From e63f4e6c7a0a7458ba8640fd01029e8ee66a399a Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 18 Dec 2023 13:47:15 +0200 Subject: [PATCH] docs: fix wishlist route (#5914) --- www/apps/docs/content/plugins/other/wishlist.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/apps/docs/content/plugins/other/wishlist.md b/www/apps/docs/content/plugins/other/wishlist.md index 2c01e24a88..086e77348b 100644 --- a/www/apps/docs/content/plugins/other/wishlist.md +++ b/www/apps/docs/content/plugins/other/wishlist.md @@ -60,7 +60,7 @@ The plugin exposes four API Routes. ### Add Item to Wishlist API Route -The `POST` API Route at `/store/customer//wishlist` allows customers to add items to their existing or new wishlist, where `` is the ID of the customer. It accepts the following body parameters: +The `POST` API Route at `/store/customers//wishlist` allows customers to add items to their existing or new wishlist, where `` is the ID of the customer. It accepts the following body parameters: - `variant_id`: a string indicating the ID of the product variant to add to the wishlist. - `quantity`: (optional) a number indicating the quantity of the product variant. @@ -70,7 +70,7 @@ The request returns the full customer object. The wishlist is available at `cust ### Delete Item from Wishlist API Route -The `DELETE` API Route at `/store/customer//wishlist` allows customers to delete items from their wishlist, where `` is the ID of the customer. +The `DELETE` API Route at `/store/customers//wishlist` allows customers to delete items from their wishlist, where `` is the ID of the customer. The API Route accepts one request body parameter `index`, which indicates the index of the item in the `customer.metadata.wishlist` array. @@ -78,7 +78,7 @@ The request returns the full customer object. The wishlist is available at `cust #### Generate Share Token API Route -The `POST` API Route at `/store/customer//wishlist/share-token` allows customers to retrieve a token that can be used to access the wishlist, where `` is the ID of the customer. +The `POST` API Route at `/store/customers//wishlist/share-token` allows customers to retrieve a token that can be used to access the wishlist, where `` is the ID of the customer. The API Route doesn't accept any request body parameters.