End Point: Ցանկությունների Ցանկ

Add Item to Wish List


POST
DOMAIN/wish-list/add

Parameter Type Description
productId required int Product Identifier
quantity required int Product quantity

{
      productId: 5,
      quantity: 2
}

HTTP1/1 200 OK
{
      status: 'success'
}

HTTP1/1 400 Bad Request
{
      status: 'error',
      message: 'Bad request'
}

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 Ապրանքը հաջողությամբ ավելացվեց


Update Wish List Items


POST
DOMAIN/wish-list/update

Parameter Type Description
quantities required array Quantities by product identifier

{
      quantities:
           [
                  1: 5,
                  5: 3 
           ]
}

HTTP1/1 200 OK
{
      status: 'success'
}

HTTP1/1 400 Bad Request
{
      status: 'error',
      message: 'Bad request'
}

Key Description
system.bad_request Message for bad request
system.product_availability_error Temporarily out of stock
system.wish_list_successfully_updated Ցանկը հաջողությամբ թարմացվեց


Clear Wish List


GET
DOMAIN/wish-list/clear

HTTP1/1 200 OK
{
      status: 'success'
}

HTTP1/1 400 Bad Request
{
      status: 'error',
      message: 'Bad request'
}

Key Description
system.bad_request Message for bad request
system.wish_list_items_successfully_moved Message for success


Move Wish List Item to Shopping Cart


POST
DOMAIN/wish-list/add-to-cart

Parameter Type Description
itemId required int Wish list item Identifier

{
      itemId: 15
}

HTTP1/1 200 OK
{
      status: 'success'
}

HTTP1/1 400 Bad Request
{
      status: 'error',
      message: 'Bad request'
}

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