getProductStatusesById
Search for a single product status object by identifier
ProductStatuses.getProductStatusesById(id, langCode)
const value = await ProductStatuses.getProductStatusesById(1)
Schema
id:* number
Status id
example: 1
langCode: string
language code
example: en_US
This method searches for a product status object based on its identifier (id) from the API. It returns a Promise that resolves to a product status object.
Example return:
{
"id": 1764,
"version": 10,
"position": 2,
"identifier": "catalog",
"localizeInfos": {
"title": "Status 1"
}
}
Schema
id: number
object identifier
example: 1764
version number
object's version number of modification
example: 10
identifier: string
textual identifier for a field in the record
example: catalog
localizeInfos: Record<string, any>
json description of the main page data object taking into account the language "en_US" (for example)
example:
{
"en_US": {
"title": "Catalog",
"plainContent": "Content for catalog",
"htmlContent": "<b>Content for catalog</b>",
"menuTitle": "Catalog"
}
}