Create Option Product
POST/clusters/:lookupKey/:lookupValue/products
> The same endpoints for option products are used as the cluster products, with a difference that option id is used in lookupValue variable instead if cluster id
Use this endpoint to create a single product to the option. If a option product is successfully created, the response will include the productid
.
Request
Path Parameters
Lookup key. Read more about cluster lookup keys
The value of the key (id or sourceId)
- application/json
Body
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
descriptions
object[]
names
object[]
notes
object[]
packageDescriptions
object[]
shortDescriptions
object[]
Responses
- 201
- 404
Create Option Product - 201 / Create Cluster Product - 201
Response Headers
Alt-Svc
string
Content-Length
string
Via
string
alt-svc
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Create Cluster Product - 201
- Create Option Product - 201
Schema
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
data
object
descriptions
object[]
names
object[]
notes
object[]
packageDescriptions
object[]
shortDescriptions
object[]
{
"data": {
"costPrice": 19.05,
"descriptions": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"eanCode": "4004675044075",
"id": 707972,
"language": "NL",
"manufacturer": "DELL",
"minimumQuantity": 1,
"names": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"notes": [
{
"language": "NL",
"value": "option product"
}
],
"oemCode": "K72334",
"package": "STK",
"packageDescriptions": [
{
"language": "NL",
"value": "Stuks"
}
],
"price": 22.3,
"shortDescriptions": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"shortName": "Dell draadloze lasermuis via nano USB ontvanger",
"sku": "K72334",
"source": "REST-API",
"sourceId": "K72334",
"status": "A",
"suggestedPrice": 22.3,
"supplier": "REST-API",
"supplierCode": "K72334",
"taxCode": "H",
"unit": 1
},
"messages": [
"Cluster Product created"
],
"total": 1
}
{
"data": {
"costPrice": 1.05,
"descriptions": [
{
"language": "NL",
"value": "Balpennen met ViscoGlide-technology. Combineert de voordelen van een balpen en een gelpen. Verkrijgbaar in medium (1mm.) en XB (1,4mm.) punt."
}
],
"eanCode": "4004675044075",
"id": 707966,
"language": "NL",
"manufacturer": "SCHNEIDER",
"minimumQuantity": 1,
"names": [
{
"language": "NL",
"value": "Balpen Slider XB extra blauw"
}
],
"notes": [
{
"language": "NL",
"value": "blawn"
}
],
"oemCode": "151203",
"package": "STK",
"packageDescriptions": [
{
"language": "NL",
"value": "Stuks"
}
],
"price": 1.49,
"shortDescriptions": [
{
"language": "NL",
"value": "Balpennen met ViscoGlide-technology. Combineert de voordelen van een balpen en een gelpen. Verkrijgbaar in medium (1mm.) en XB (1,4mm.) punt."
}
],
"shortName": "Balpen Slider XB extra blauw",
"sku": "151203",
"source": "REST-API",
"sourceId": "151203",
"status": "A",
"suggestedPrice": 1.49,
"supplier": "REST-API",
"supplierCode": "151203",
"taxCode": "H",
"unit": 1
},
"messages": [
"Cluster Product created"
],
"total": 1
}
{
"data": {
"costPrice": 19.05,
"descriptions": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"id": 707972,
"language": "NL",
"manufacturer": "DELL",
"minimumQuantity": 1,
"names": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"notes": [
{
"language": "NL",
"value": "option product"
}
],
"oemCode": "K72334",
"package": "STK",
"packageDescriptions": [
{
"language": "NL",
"value": "Stuks"
}
],
"price": 22.3,
"shortDescriptions": [
{
"language": "NL",
"value": "Dell draadloze lasermuis via nano USB ontvanger"
}
],
"shortName": "Dell draadloze lasermuis via nano USB ontvanger",
"sku": "K72334",
"source": "REST-API",
"sourceId": "K72334",
"status": "A",
"suggestedPrice": 22.3,
"supplier": "REST-API",
"supplierCode": "K72334",
"taxCode": "H",
"unit": 1
},
"messages": [
"Cluster Product created"
],
"total": 1
}
Create Cluster Product - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Create Cluster Product - 404
Schema
error
object
{
"error": {
"code": 20007,
"messages": [
"Parent Cluster with id [213] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/20007",
"status": 404,
"type": "ParentClusterNotFound"
}
}
{
"error": {
"code": 20007,
"messages": [
"Parent Cluster with id [213] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/20007",
"status": 404,
"type": "ParentClusterNotFound"
}
}