Add Item to Wish List
POST
DOMAIN/wish-list/add
- Parameters
Parameter |
Type |
Description |
productId required |
int |
Product Identifier |
quantity required |
int |
Product quantity |
- Sample request
{
productId: 5,
quantity: 2
}
- Success Response
HTTP1/1 200 OK
{
status: 'success'
}
- Error Response
HTTP1/1 400 Bad Request
{
status: 'error',
message: 'Bad request'
}
- Translation message keys
Key |
Description |
system.bad_request |
Message for bad request |
system.product_not_found |
Product not found |
system.product_availability_error |
Temporarily out of stock |
system.product_successfully_added_to_wish_list |
Message for success |
Update Wish List Items
POST
DOMAIN/wish-list/update
- Parameters
Parameter |
Type |
Description |
quantities required |
array |
Quantities by product identifier |
- Sample request
{
quantities:
[
1: 5,
5: 3
]
}
- Success Response
HTTP1/1 200 OK
{
status: 'success'
}
- Error Response
HTTP1/1 400 Bad Request
{
status: 'error',
message: 'Bad request'
}
- Translation message keys
Key |
Description |
system.bad_request |
Message for bad request |
system.product_availability_error |
Temporarily out of stock |
system.wish_list_successfully_updated |
Message for success |
Clear Wish List
GET
DOMAIN/wish-list/clear
- Success Response
HTTP1/1 200 OK
{
status: 'success'
}
- Error Response
HTTP1/1 400 Bad Request
{
status: 'error',
message: 'Bad request'
}
- Translation message keys
Key |
Description |
system.bad_request |
Message for bad request |
system.wish_list_successfully_cleaned |
Message for success |
Move Wish List Item to Shopping Cart
POST
DOMAIN/wish-list/add-to-cart
- Parameters
Parameter |
Type |
Description |
itemId required |
int |
Wish list item Identifier |
- Sample request
{
itemId: 15
}
- Success Response
HTTP1/1 200 OK
{
status: 'success'
}
- Error Response
HTTP1/1 400 Bad Request
{
status: 'error',
message: 'Bad request'
}
- Translation message keys
Key |
Description |
system.bad_request |
Message for bad request |
system.product_not_found |
Product not found |
system.product_availability_error |
Temporarily out of stock |
system.wish_list_items_successfully_moved |
Message for success |