get https://www.coohom.com/api/saas/openapi/commodity//replace
You can call this operation to obtain replaceable materials for a model.
Response
Name | Required | Type | Description |
---|---|---|---|
defualtReplaceInfo | true | object | The default material of the product. |
defualtReplaceInfo.srcImage | true | string | The image used to create the material. |
defualtReplaceInfo.srcColor | true | int | The color used to create the material. An empty value indicates that the material has only one color option. |
defualtReplaceInfo.materialId | true | string | The ID of the material. |
defualtReplaceInfo.created | true | long | The creation timestamp of the material. |
defualtReplaceInfo.lastModified | true | long | The last update timestamp of the material. |
defualtReplaceInfo.name | true | string | The default name of the material. |
defualtReplaceInfo.previewImage | true | string | The link of the material preview image. |
defualtReplaceInfo.materialCode | true | string | The code of the material set by the user. |
defualtReplaceInfo.comPosition | true | string | The composition of the material. |
defualtReplaceInfo.grade | true | string | The level of the material. |
defualtReplaceInfo.specification | true | string | The specification of the material (size and thickness). |
defualtReplaceInfo.comments | true | string | The comment on the material. |
replaceDetailList | true | list<json> | The list of replaceable materials for the product. The returned structure is the same as the defualtReplaceInfo object. |
componentName | true | string | The component that uses the replaceable materials. |