GET/products/:productId/parts/:productPartId
Get product
| Param | Type | Default | Description |
|---|---|---|---|
| productId | Stri | hash id or slug |
POST/products/:productId/parts
Get product parts
| Param | Type | Default | Description |
|---|---|---|---|
| page | Int | 1 | page |
| productId | String | product id hash | |
| limit | Int | 10 | limit |
| sortFilter | Object | ||
| sortFilter.label | String | sorting options: Most Popular | |
| sortFilter.type | popular | ||
| sortFilter.value | Int | Direction, 1-ASC, -1-DSC |
{
"params": {
"page": 1,
"limit": 24,
"categoriesCount": true,
"categoriesToFilter": [],
"facetsToFilter": {},
"sortFilter": {
"label": "Most Popular",
"value": -1,
"type": "popular"
},
"showPriceRange": true
}
}POST/products/:productId/parts
Create product part
| Body | Type | Default | Description |
|---|---|---|---|
| partGroup | String | 1 | A numeric identifier grouping mutually exclusive parts together. When configuring data, always start with part group “1” code |
| colors | String[] | The name of the imprint color |
|
| partId | String | The partId | |
| partDescription | String | A description of the partId |
{
"partGroup": "1",
"colors": [
{
"name": "black",
"hex": ""
}
],
"compress": true,
"mediaList": [],
"charge_prices": [],
"pricing": [],
"shippingPackages": [],
"dimension": {
"weight": null,
"width": null,
"height": null,
"depth": null
},
"inventory": {
"partInventories": []
},
"defaultPart": false,
"partId": "984927",
"partDescription": "Duralast Brake Poster (English)"
}PUT/products/:productId/parts/:productPartId
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 |
{
"partId": "new part id"
}DELETE/products/:productId/parts/:productPartId
Remove product part
| Body | Type | Default | Description |
|---|---|---|---|
| productId | String | product id hash code | |
| productPartId | String | part hash id |
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.