Get Product

GET/products/:productId/view

Get product

Param Type Default Description
productId Stri hash id or slug

Get Products

POST/stores/:storeId/store-products

Get products

Param Type Default Description
page Int 1 page
limit Int 10 limit
categoriesCount Boolean false Show categories with products count totals
sortFilter Object
sortFilter.label String sorting options: Most Popular
sortFilter.type popular
sortFilter.value Int Direction, 1-ASC, -1-DSC
showPriceRange Boolean return min and max price for products
facetsToFilter Object Include facetGroup with facets hash id. Ex. facetsToFilte:{"activity":["62b4ede2dc29d606aec89e9d"]}

Example request body

{
  "params": {
    "page": 1,
    "limit": 24,
    "categoriesCount": true,
    "categoriesToFilter": [],
    "facetsToFilter": {},
    "sortFilter": {
      "label": "Most Popular",
      "value": -1,
      "type": "popular"
    },
    "showPriceRange": true
  }
}

Create Product

POST/products

Create products

Body Type Default Description
supplierCode String supplier code
supplierId String supplier hash id
status String not active active
descriptions String[] list of descrition
slug String unique product slug
productId String product id
productName String product name
fobPoints String[] list of fobs
facets String[] list of facets

Example request body

{
  "supplierCode": "92366",
  "fobPoints": [
    {
      "_id": "5f075ba508861b49e07b1cd0",
      "country": "US",
      "state": "PA",
      "zip": "19123",
      "city": "PHILA",
      "name": "19123, PHILA, PA, US"
    }
  ],
  "cartButtons": [],
  "source": "Manual",
  "productName": "product name",
  "slug": "product-name-product id-92366",
  "productId": "product id",
  "status": "not active",
  "descriptions": [],
  "decorationProducts": [],
  "facets": [],
  "supplierId": "5f075ba208861b49e07b1472"
}

Edit Product

PUT/products/:productId

Edit product

Body Type Default Description
supplierCode String supplier code
supplierId String supplier hash id
status String not active active
descriptions String[] list of descrition
slug String unique product slug
productId String product id
productName String product name
fobPoints String[] list of fobs
facets String[] list of facets

Example request body

{
  "productName": "product name"
}

Delete Product

DELETE/products/:productId

Remove product

Params Type Default Description
productId String product id hash code

Ready to run all of promo in one place?

See how MPower replaces your disconnected tools with one platform — from the first lead to the final shipment.

No credit card required.

Download

Never miss a beat. Download our app and work on the go with all the same features as our desktop application.

Powered by MPower PromoPlatform privacy