This endpoint adds Configuration to Cart.
To call any
/carts
endpoints, you need to use a JWT token or an intent token for authorization.
model_id
required
company_id
required
language_code
optional
questions
required
{
"model_id": "int",
"company_id": "int",
"language_code": null,
"questions": {
"key": {
"values": [
"value"
]
}
}
}
{
"code": 201,
"message": "Created; configuration added to cart.",
"data": {
"id": 1,
"version_number": 1,
"general": {},
"imports": {},
"questions": {},
"bom_items": {},
"cache": {},
"variables": {},
"pricing": {},
"translation": {},
"rules": {},
"triggers": {},
"images": {}
},
"links": {},
"errors": []
}
201
Created; created new Cart line.
401
Bad request
403
Forbidden