Select
Products
Operations to get products
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
baseId | path | integer | true | base product id |
body | body | CreateProductDto | true | Information needed to insert a product |
Request body - instance of CreateProductDto
|
|
Name | Type | Required | Description |
---|---|---|---|
name | string | true | none |
status | integer | true | none |
isbundle | boolean | true | none |
phReference | string | false | none |
upcEan | string | false | none |
partnumber | string | false | none |
releaseDate | string(date) | false | none |
retireDate | string(date) | false | none |
sapOrderingAux | SapOrderingDto | true | none |
retrievable | boolean | false | none |
purchasePrice | number | false | none |
phPrice | number | false | none |
reference | string | false | none |
inwarehousePrice | number | false | none |
currency | string | false | none |
purpose | integer | false | none |
productsInBundle | [CreateBundleDto] | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Success | ProductDto |
400 | Bad Request | Bad Request | Error400 |
404 | Not Found | Not found | Error404 |
500 | Internal Server Error | Internal Server Error | Error500 |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
baseId | path | string | true | product base id |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | Inline |
400 | Bad Request | Bad Request | Error400 |
404 | Not Found | Not found | Error404 |
500 | Internal Server Error | Internal Server Error | Error500 |
200 - JsonObject
Custom schema example
|
|
None
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
size | query | integer | true | Page size |
page | query | integer | true | Page number |
sort | query | ProductSortEnum | false | Sort value, multiple values allowed, separte with coma |
grouped | query | ProductSortEnum | false | Group value, multiple values allowed, separte with coma |
order | query | SortEnum | false | Sorting order |
body | body | SearchProductDto | false | Information needed to update a base product |
Enumerated Values
Property | Values |
---|---|
sort | one of [PRODUCT_ID, PRODUCT_BASE, STATUS, BUNDLE, PH_REFERENCE, SAP_ORDERING, RETRIEVABLE, RETIRE_DATE, RELEASE_DATE, PURPOSE, REFERENCE, NAME] |
grouped | one of [PRODUCT_ID, PRODUCT_BASE, STATUS, BUNDLE, PH_REFERENCE, SAP_ORDERING, RETRIEVABLE, RETIRE_DATE, RELEASE_DATE, PURPOSE, REFERENCE, NAME] |
order | one of [ASC, DESC] |
Request body - instance of SearchProductDto
|
|
Name | Type | Required | Description |
---|---|---|---|
productId | integer | false | none |
productBaseId | integer | false | none |
name | string | false | none |
status | integer | false | none |
isbundle | boolean | false | none |
phReference | string | false | none |
upcEan | string | false | none |
partNumber | string | false | none |
releaseDate | string(date) | false | none |
retireDate | string(date) | false | none |
sapOrderingAuxId | integer | false | none |
retrievable | boolean | false | none |
purchasePrice | number | false | none |
phPrice | number | false | none |
reference | string | false | none |
inwarehousePrice | number | false | none |
currency | string | false | none |
purpose | integer | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | PaginatedProductDto |
400 | Bad Request | Bad Request | Error400 |
404 | Not Found | Not found | Error404 |
500 | Internal Server Error | Internal Server Error | Error500 |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
baseId | path | integer | true | product base id |
productId | path | integer | true | product id |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ProductDto |
400 | Bad Request | Bad Request | Error400 |
404 | Not Found | Not found | Error404 |
500 | Internal Server Error | Internal Server Error | Error500 |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
orgId | path | string | true | Organization name as it is registered in Mas-Stack |
baseId | path | string | true | Base product id to update |
productId | path | string | true | Product id to update |
body | body | UpdateProductDto | true | Information needed to update a product |
Request body - instance of UpdateProductDto
|
|
Name | Type | Required | Description |
---|---|---|---|
name | string | true | none |
status | integer | true | none |
isbundle | boolean | true | none |
phReference | string | false | none |
upcEan | string | false | none |
partnumber | string | false | none |
releaseDate | string(date) | false | none |
retireDate | string(date) | false | none |
sapOrderingAux | SapOrderingDto | true | none |
retrievable | boolean | false | none |
purchasePrice | number | false | none |
phPrice | number | false | none |
reference | string | false | none |
inwarehousePrice | number | false | none |
currency | string | false | none |
purpose | integer | false | none |
productsInBundle | [BundleDto] | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success | ProductDto |
400 | Bad Request | Bad Request | Error400 |
404 | Not Found | Not found | Error404 |
500 | Internal Server Error | Internal Server Error | Error500 |
Endpoints
Base products
Products
Characteristics
Delivery commitment
Inputs
Input Types
Outputs
Output Types
Stock
Physical Warehouse
Virtual Warehouse
Returns
Devices
Providers
Logistic Operators
Commercial Brands
Commercial Distributions
Status
Categories
Purposes
Regions
Countries
Receptors
Characteristics Values
Sales Channel
Tenant group brand
Organizations
Sap Ordering
Report importer