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 |
When used inside a request.
{
"target_price": true,
"prices": {
"price": 15,
"discount": 15,
"warranty": 17,
"delivery_cost": 19,
"invoice_cost": 10,
"sms_cost": 16,
"transaction_cost": 18,
"price_to_pay": 18,
"price_with_discount": 18
},
"payment": {
"methods": [
"point_of_sale",
"paid_in_shop",
"bank_transfer",
"ideal",
"bancontact",
"sofort",
"giropay",
"creditcard",
"cartes_bancaires",
"paypal",
"eps_uberweisung",
"apple_pay",
"google_pay",
"payconiq",
"monizze",
"edenred",
"webpay",
"satispay",
"stripe_card_visa_mc",
"stripe_card_amex",
"stripe_apple_pay",
"stripe_google_pay",
"payu_romania_visa",
"payu_romania_mc",
"payu_romania_visa_electron",
"payu_romania_maestro",
"payu_brazil_amex",
"payu_brazil_boleto_bancario",
"payu_brazil_diners",
"payu_brazil_elo",
"payu_brazil_hipercard",
"payu_brazil_mc",
"payu_brazil_visa",
"payu_sp_maestro",
"payu_sp_mc",
"payu_sp_pbl",
"payu_sp_visa",
"payu_sp_blik",
"payu_iyzico_amex",
"payu_iyzico_mc",
"payu_iyzico_troy",
"payu_iyzico_visa",
"pesopay_gcash",
"pesopay_visa",
"pesopay_mc",
"redsys_bizum",
"sibs_id"
],
"messages": [
"...",
"...",
"..."
]
},
"takeout": {
"allowed": true
},
"delivery": {
"allowed": true,
"use_intervals": true,
"messages": [
"...",
"...",
"..."
]
},
"latch": {
"allowed": false,
"latches": [
{
"id": 15,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"name": "..."
},
{
"id": 10,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"name": "..."
},
{
"id": 12,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"name": "..."
}
]
},
"checkout_method_messages": [
"...",
"...",
"..."
],
"warranty": true,
"discounts": [
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 14,
"type": "first-order",
"code": "..."
},
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 13,
"type": "first-order",
"code": "..."
},
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 15,
"type": "first-order",
"code": "..."
}
],
"allow_combined_cart": false,
"invoice": {
"messages": [
"...",
"...",
"..."
]
}
}
When returned in a response.
{
"target_price": false,
"prices": {
"price": 12,
"discount": 13,
"warranty": 12,
"delivery_cost": 13,
"invoice_cost": 18,
"sms_cost": 17,
"transaction_cost": 16,
"price_to_pay": 13,
"price_with_discount": 14
},
"payment": {
"methods": [
"point_of_sale",
"paid_in_shop",
"bank_transfer",
"ideal",
"bancontact",
"sofort",
"giropay",
"creditcard",
"cartes_bancaires",
"paypal",
"eps_uberweisung",
"apple_pay",
"google_pay",
"payconiq",
"monizze",
"edenred",
"webpay",
"satispay",
"stripe_card_visa_mc",
"stripe_card_amex",
"stripe_apple_pay",
"stripe_google_pay",
"payu_romania_visa",
"payu_romania_mc",
"payu_romania_visa_electron",
"payu_romania_maestro",
"payu_brazil_amex",
"payu_brazil_boleto_bancario",
"payu_brazil_diners",
"payu_brazil_elo",
"payu_brazil_hipercard",
"payu_brazil_mc",
"payu_brazil_visa",
"payu_sp_maestro",
"payu_sp_mc",
"payu_sp_pbl",
"payu_sp_visa",
"payu_sp_blik",
"payu_iyzico_amex",
"payu_iyzico_mc",
"payu_iyzico_troy",
"payu_iyzico_visa",
"pesopay_gcash",
"pesopay_visa",
"pesopay_mc",
"redsys_bizum",
"sibs_id"
],
"messages": [
"...",
"...",
"..."
]
},
"takeout": {
"allowed": false
},
"delivery": {
"allowed": false,
"use_intervals": true,
"messages": [
"...",
"...",
"..."
]
},
"latch": {
"allowed": false,
"latches": [
{
"id": 16,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"name": "..."
},
{
"id": 11,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"name": "..."
},
{
"id": 14,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"name": "..."
}
]
},
"checkout_method_messages": [
"...",
"...",
"..."
],
"warranty": false,
"discounts": [
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 12,
"type": "first-order",
"code": "..."
},
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 18,
"type": "first-order",
"code": "..."
},
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 14,
"type": "first-order",
"code": "..."
}
],
"allow_combined_cart": false,
"invoice": {
"messages": [
"...",
"...",
"..."
]
}
}