GET/products/:productId/view
Get product
| Param | Type | Default | Description |
|---|---|---|---|
| productId | Stri | hash id or slug |
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"]} |
{
"params": {
"page": 1,
"limit": 24,
"categoriesCount": true,
"categoriesToFilter": [],
"facetsToFilter": {},
"sortFilter": {
"label": "Most Popular",
"value": -1,
"type": "popular"
},
"showPriceRange": true
}
}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 |
{
"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"
}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 |
{
"productName": "product name"
}DELETE/products/:productId
Remove product
| Params | Type | Default | Description |
|---|---|---|---|
| productId | String | product id hash code |
See how MPower replaces your disconnected tools with one platform — from the first lead to the final shipment.
A product specialist will reach out within one business day to schedule your demo.