10.5 Properties and translations
The getprop body is { "distCode", "metaCode" }. The addprop body:
| Field | Type | Required | Description |
|---|---|---|---|
distCode | text | Yes | Distributor code |
metaCode | text | Yes | Product code |
props[].propCode | text | Yes | Product property code defined in the system |
props[].valueCode | text | Yes | Value code, at most 50 characters |
props[].name | text | No | Name of the value |
{ "distCode": "TEST", "metaCode": "P0003", "props": [{ "propCode": "Category", "valueCode": "41", "name": "Atıştırmalık" }] }
The value is also written to the product's batch variants. The translate body is a list: distCode, metaCode, lang and value (translation text) are required.
[{ "distCode": "TEST", "metaCode": "P0001", "lang": "en", "value": "Product A" }]