API Documentation
Authentication APIs
- Login & Register
- Create & Manage Users
Catalog APIs
- GETList all products
- GETList all skus
- GETRetrieve a product
- GETRetrieve product variants
- GETRetrieve variant detail
- GETList all categories
- GETRetrieve product reviews
- POSTCreate product review
- GETRetrieve similar products
- GETRetrieve up sell products
- GETRetrieve cross sell products
- GETRetrieve recommended products
- POSTDatocms webhook
Cart & Checkout APIs
Coupons & promotions API
Customers API
Orders APIs
Shipping APIs
Analytics
Campaigns API
Cart
Add product to wishlist
POST
/
wishlist
/
{user_id}
curl --request POST \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/wishlist/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"product_id": "01F3Z7KG06J4ACWH1C4926KJEC",
"sku": "<string>"
}'
{
"message": "<string>",
"success": true
}
Authorizations
Access token
Path Parameters
user id
curl --request POST \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/wishlist/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"product_id": "01F3Z7KG06J4ACWH1C4926KJEC",
"sku": "<string>"
}'
{
"message": "<string>",
"success": true
}