Whishlist

Manage wishlist

Get wishlist items

GET https://<domain>/<api prefix>/<version>/commerce/wishlist-items/

get the list of items in wishlist

Query Parameters

Name
Type
Description

offset

string

Offset value

Headers

Name
Type
Description

apikey*

string

api-key

Authorization*

string

Bearer access-token

HTTP/1.1 200 OK
Content-Type: application/json

Body:
{
    "status_code": 200,
    "errors": {},
    "data": [
        {
            "wished_products": <items>,
            "currency_symbol": <currency_symbol>
        }
    ]
}

Sample Code

Node

PHP

Add to wishlist

POST https://<domain>/<api prefix>/<version>/commerce/wishlist-add/

add product to wishlist

Headers

Name
Type
Description

apikey*

string

api key

Authorization*

string

Bearer access token

Request Body

Name
Type
Description

product_id*

integer

product_id

Sample Code

Node

PHP

Error Responses

Status code

Error Type

Field

Description

400

Validation Error

product_id

This field is required.

400

Validation Error

product_id

Invalid product_id.

Remove item from the wishlist

POST https://<domain>/<api prefix>/<version>/commerce/wishlist-remove/

remove a specific item from wishlist

Headers

Name
Type
Description

apikey*

string

apikey

Authorization*

string

Bearer access token

Sample code

Node

PHP

Error Responses

Status Code

Error Type

Field

Description

400

Validation Error

product_id

This field may not be blank.

400

Not Found

product not found

Product not found

Last updated

Was this helpful?