CartConfig

When available, this will return all essential information about the cart. When the cart is also set in the response, the cart_config contains information about the cart in the response, not in the request.

Field Type Description
target_price Bool A boolean value
prices CartPrices Prices
payment PaymentConfig Information about the allowed payment methods and messages that should get displayed on the payment page.
takeout TakeoutConfig Information needed in the takeout flow
delivery DeliveryConfig Information needed in the delivery flow
latch LatchConfig Information needed in the latch flow
checkout_method_messages [String] Array of String
warranty Bool A boolean value
discounts [Discount] Array of Discount
allow_combined_cart Bool A boolean value
invoice InvoiceConfig Information about invoices
allow_discount_codes Bool A boolean value

Examples

Request

When used inside a request.

Example 1

{
    "target_price": true,
    "prices": {
        "price": {
            "value": 12,
            "currency": "EUR"
        },
        "discount": {
            "value": 12,
            "currency": "EUR"
        },
        "warranty": {
            "value": 12,
            "currency": "EUR"
        },
        "delivery_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "invoice_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "sms_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "transaction_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "price_to_pay": {
            "value": 12,
            "currency": "EUR"
        },
        "price_with_discount": {
            "value": 12,
            "currency": "EUR"
        }
    },
    "payment": {
        "methods": [
            "point_of_sale",
            "point_of_sale",
            "point_of_sale"
        ],
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "takeout": {
        "allowed": true
    },
    "delivery": {
        "allowed": true,
        "use_intervals": true,
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "latch": {
        "allowed": true,
        "latches": [
            {
                "id": 12,
                "address": {
                    "street": "Coolsweg",
                    "nr": "97",
                    "zipcode": "9800",
                    "city": "Nijvel",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            },
            {
                "id": 12,
                "address": {
                    "street": "Coolsweg",
                    "nr": "97",
                    "zipcode": "9800",
                    "city": "Nijvel",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            },
            {
                "id": 12,
                "address": {
                    "street": "Coolsweg",
                    "nr": "97",
                    "zipcode": "9800",
                    "city": "Nijvel",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            }
        ]
    },
    "checkout_method_messages": [
        "string",
        "string",
        "string"
    ],
    "warranty": true,
    "discounts": [
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        },
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        },
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        }
    ],
    "allow_combined_cart": true,
    "invoice": {
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "allow_discount_codes": true
}

Response

When returned in a response.

Example 1

{
    "target_price": true,
    "prices": {
        "price": {
            "value": 12,
            "currency": "EUR"
        },
        "discount": {
            "value": 12,
            "currency": "EUR"
        },
        "warranty": {
            "value": 12,
            "currency": "EUR"
        },
        "delivery_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "invoice_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "sms_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "transaction_cost": {
            "value": 12,
            "currency": "EUR"
        },
        "price_to_pay": {
            "value": 12,
            "currency": "EUR"
        },
        "price_with_discount": {
            "value": 12,
            "currency": "EUR"
        }
    },
    "payment": {
        "methods": [
            "point_of_sale",
            "point_of_sale",
            "point_of_sale"
        ],
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "takeout": {
        "allowed": true
    },
    "delivery": {
        "allowed": true,
        "use_intervals": true,
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "latch": {
        "allowed": true,
        "latches": [
            {
                "id": 12,
                "address": {
                    "street": "Jacquesdreef",
                    "nr": "14",
                    "zipcode": "5580",
                    "city": "Edingen",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            },
            {
                "id": 12,
                "address": {
                    "street": "Jacquesdreef",
                    "nr": "14",
                    "zipcode": "5580",
                    "city": "Edingen",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            },
            {
                "id": 12,
                "address": {
                    "street": "Jacquesdreef",
                    "nr": "14",
                    "zipcode": "5580",
                    "city": "Edingen",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "name": "string"
            }
        ]
    },
    "checkout_method_messages": [
        "string",
        "string",
        "string"
    ],
    "warranty": true,
    "discounts": [
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        },
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        },
        {
            "name": "string",
            "description": "string",
            "percentage": 9.67,
            "fixed": 12,
            "type": "first-order",
            "code": "string"
        }
    ],
    "allow_combined_cart": true,
    "invoice": {
        "messages": [
            "string",
            "string",
            "string"
        ]
    },
    "allow_discount_codes": true
}
1.5.0 stable