Get a draft
GET
/api/rest/v1/products/{code}/draft
Product [identifier]
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/rest/v1/products//draft'
Response Response Example
200 - Example 1
{
"associations": {
"PACK": {
"groups": [],
"product_models": [],
"products": [
"sunglass"
]
}
},
"categories": [
"summer_collection"
],
"completenesses": [
{
"data": 10,
"locale": "en_US",
"scope": "ecommerce"
},
{
"data": 20,
"locale": "fr_FR",
"scope": "ecommerce"
},
{
"data": 30,
"locale": "en_US",
"scope": "tablet"
},
{
"data": 40,
"locale": "fr_FR",
"scope": "tablet"
}
],
"created": "2023-08-15T05:53:50.717Z",
"enabled": true,
"family": "tshirt",
"groups": [],
"identifier": "top",
"parent": null,
"quality_scores": [
{
"data": "A",
"locale": "en_US",
"scope": "ecommerce"
},
{
"data": "B",
"locale": "fr_FR",
"scope": "ecommerce"
},
{
"data": "D",
"locale": "en_US",
"scope": "tablet"
},
{
"data": "E",
"locale": "fr_FR",
"scope": "tablet"
}
],
"quantified_associations": {
"PRODUCT_SET": {
"product_models": [
{
"identifier": "model-biker-jacket-leather",
"quantity": 2
}
],
"products": [
{
"identifier": "cap",
"quantity": 2
},
{
"identifier": "shoes",
"quantity": 1
}
]
}
},
"updated": "2023-08-15T05:53:50.717Z",
"values": {
"collection": [
{
"data": [
"winter_2016"
],
"linked_data": {
"winter_2016": {
"attribute": "collection",
"code": "winter_2016",
"labels": {
"en_US": "Winter 2016",
"fr_FR": "Hiver 2016"
}
}
},
"locale": null,
"scope": null
}
],
"color": [
{
"data": "black",
"linked_data": {
"attribute": "color",
"code": "black",
"labels": {
"en_US": "Black",
"fr_FR": "Noir"
}
},
"locale": null,
"scope": null
}
],
"description": [
{
"data": "Summer top",
"locale": "en_US",
"scope": "ecommerce"
},
{
"data": "Top",
"locale": "en_US",
"scope": "tablet"
},
{
"data": "Débardeur pour l'été",
"locale": "fr_FR",
"scope": "ecommerce"
},
{
"data": "Débardeur",
"locale": "fr_FR",
"scope": "tablet"
}
],
"name": [
{
"data": "Top",
"locale": "en_US",
"scope": null
},
{
"data": "Débardeur",
"locale": "fr_FR",
"scope": null
}
],
"price": [
{
"data": [
{
"amount": "15.5",
"currency": "EUR"
},
{
"amount": "15",
"currency": "USD"
}
],
"locale": null,
"scope": null
}
],
"size": [
{
"data": "m",
"linked_data": {
"attribute": "size",
"code": "m",
"labels": {
"en_US": "M",
"fr_FR": "M"
}
},
"locale": null,
"scope": null
}
]
}
}
Request
Path Params
code
string
required
Responses
Modified at 2023-08-15 05:53:55