This endpoint has been replaced by multiple endpoints:
POST /carts/{cartUuid}/items
.PUT /carts/{cartUuid}/customer
.PUT /carts/{cartUuid}/items/{cartItemUuid}/participants
.The request can be an empty object: {}
Tickets not already in the cart will be added. Existing tickets with a different quantity will be updated to match the submitted quantity.
object (Customer) | |
Array of objects |
Cart
Resource not found
Error
{- "customer": {
- "email": "user@example.com",
- "firstname": "string",
- "lastname": "string"
}, - "tickets": [
- {
- "product": {
- "type": "musement",
- "id": "string"
}, - "quantity": 1
}
]
}
{- "customer": {
- "email": "api-distribution@tui.com",
- "events_related_newsletter": "NO",
- "extra_customer_data": {
- "1223356a-69a0-4c45-bf51-bd903820d210": {
- "phone_number": 1234567890
}
}, - "firstname": "John",
- "lastname": "Smith",
- "musement_newsletter": "NO",
- "thirdparty_newsletter": "NO"
}, - "discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "items": [
- {
- "product": {
- "activity_uuid": "df542cb8-8fca-44d0-94e6-715399c783f0",
- "date": "2022-05-01 10:15",
- "discount_amount": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "id": "4445102588",
- "language": {
- "code": "en",
- "name": "English"
}, - "max_confirmation_time": "P0D",
- "original_retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "original_retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "title": "Calendar activity with pickups and multiple price tag features",
- "type": "musement",
}, - "quantity": 1,
- "status": "PREBOOK_KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
], - "preferred_payment_gateway": "ADYEN",
- "promo_code": {
- "code": "string"
}, - "retail_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "retail_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
Replace any existing customer info and/or tickets for the specified cart.
This endpoint has been replaced by multiple endpoints:
POST /carts/{cartUuid}/items
.DELETE /carts/{cartUuid}/items/{cartItemUuid}
.PUT /carts/{cartUuid}/customer
.PUT /carts/{cartUuid}/items/{cartItemUuid}/participants
.It is possible to remove items from cart by excluding the tickets
property in the request.
However, customer info must always be part of the request.
required | object (Customer) |
Array of objects |
Cart
Resource not found
Error
{- "customer": {
- "email": "user@example.com",
- "firstname": "string",
- "lastname": "string"
}, - "tickets": [
- {
- "product": {
- "type": "musement",
- "id": "string"
}, - "quantity": 1
}
]
}
{- "customer": {
- "email": "api-distribution@tui.com",
- "events_related_newsletter": "NO",
- "extra_customer_data": {
- "1223356a-69a0-4c45-bf51-bd903820d210": {
- "phone_number": 1234567890
}
}, - "firstname": "John",
- "lastname": "Smith",
- "musement_newsletter": "NO",
- "thirdparty_newsletter": "NO"
}, - "discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "items": [
- {
- "product": {
- "activity_uuid": "df542cb8-8fca-44d0-94e6-715399c783f0",
- "date": "2022-05-01 10:15",
- "discount_amount": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "id": "4445102588",
- "language": {
- "code": "en",
- "name": "English"
}, - "max_confirmation_time": "P0D",
- "original_retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "original_retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "title": "Calendar activity with pickups and multiple price tag features",
- "type": "musement",
}, - "quantity": 1,
- "status": "PREBOOK_KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
], - "preferred_payment_gateway": "ADYEN",
- "promo_code": {
- "code": "string"
}, - "retail_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "retail_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
Tickets are an older term for cart items.
This endpoint has been replaced by POST /carts/{cartUuid}/items
.
Array of objects An array of products to add to cart. |
Cart
Resource not found
Locked: cart is connected to a paid order and cannot be modified
Error
{- "tickets": [
- {
- "product": {
- "type": "musement",
- "id": "4445092627"
}, - "quantity": 2
}
]
}
{- "customer": {
- "email": "api-distribution@tui.com",
- "events_related_newsletter": "NO",
- "extra_customer_data": {
- "1223356a-69a0-4c45-bf51-bd903820d210": {
- "phone_number": 1234567890
}
}, - "firstname": "John",
- "lastname": "Smith",
- "musement_newsletter": "NO",
- "thirdparty_newsletter": "NO"
}, - "discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "full_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "items": [
- {
- "product": {
- "activity_uuid": "df542cb8-8fca-44d0-94e6-715399c783f0",
- "date": "2022-05-01 10:15",
- "discount_amount": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "id": "4445102588",
- "language": {
- "code": "en",
- "name": "English"
}, - "max_confirmation_time": "P0D",
- "original_retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "original_retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "retail_price_without_service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 9.00",
- "formatted_iso_value": "€9.00",
- "value": 9
}, - "service_fee": {
- "currency": "EUR",
- "formatted_value": "€ 0.00",
- "formatted_iso_value": "€0.00",
- "value": 0
}, - "title": "Calendar activity with pickups and multiple price tag features",
- "type": "musement",
}, - "quantity": 1,
- "status": "PREBOOK_KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
], - "preferred_payment_gateway": "ADYEN",
- "promo_code": {
- "code": "string"
}, - "retail_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "retail_price_without_service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "service_fee": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_discount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
Tickets are an older term for cart items.
Returns the numeric ID of the cart.
This endpoint has been replaced by DELETE /carts/{cartUuid}/items/{cartItemUuid}
.
Cart ID
Forbidden: unable to remove item due to cart's order status
Resource not found
Error
33181838