Examples
Products
The products-object is an array with one or more product objects. A product object determines how a specific product should be manufactured by Probo. For example the dimension, quantity, and material. As mentioned in the core concepts, it is possible to use composed products (also mentioned as API products) and fully configurable products.
Composed Product breakdown.
Composed products / API Products can be created via the webshop by configuring the product and storing it as an API product.
Parameter | ||
---|---|---|
customer_code |
Identifier | required |
options |
(array) It is possible to overwrite the options of a stored API product, for example, width or height |
|
reference |
reference for this specific order line | optional when ordering |
files |
object with files to produce | required when ordering |
Example
{
"products": [
{
"customer_code": "banner_520_with_grommets"
}
]
}
Example with reference
{
"products": [
{
"customer_code": "banner_520_with_grommets",
"reference" : "Probo Pizza Party"
}
]
}
Example with over different product dimensions
{
"products": [
{
"customer_code": "banner_510_with_grommets",
"options": [
{
"code": "width",
"value": "100"
},
{
"code": "height",
"value": "100"
}
]
}
]
}
Example with a file
{
"products": [
{
"customer_code": "banner_510_with_grommets",
"files": [
{
"uri": "http://proboapi.local/printfile.pdf"
}
]
}
]
}
Configured Product breakdown.
Configured products requires a full options set. This can be obtained via a product on the platform or configure endpoint
Parameter | ||
---|---|---|
code |
Identifier | required |
options |
(array) It is possible to overwrite the options of a stored API product, for example, width or height |
required |
reference |
reference for this specific order line | optional when ordering |
files |
object with files to produce | required when ordering |
If a required option is not supplied or an option is deprecated the product can not be processed.
Example Window-Decal
{
"products": [
{
"code": "window-decal",
"options": [
{
"code": "width",
"value": "100"
},
{
"code": "height",
"value": "100"
},
{
"code": "amount",
"value": "1"
},
{
"code": "white"
},
{
"code": "backward-facing"
},
{
"code": "long-term"
},
{
"code": "ij40-114"
},
{
"code": "no-laminate"
},
{
"code": "cut"
},
{
"code": "customer-supplied-file"
}
]
}
]
}