Menu

Add Configuration to Cart

This endpoint adds Configuration to Cart.
To call any /carts endpoints, you need to use a JWT token or an intent token for authorization.

POST https://api-staging-v2.logyx.it/v1/carts

Body


model_id required

company_id required

language_code optional

questions required

Example

{
    "model_id": "int",
    "company_id": "int",
    "language_code": null,
    "questions": {
        "key": {
            "values": [
                "value"
            ]
        }
    }

}

Response

{
    "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": []
}

Possible responses


201 Created; created new Cart line.

401 Bad request

403 Forbidden

Menu