When a customer cart is ready, it's time to create an order and proceed to payment. We strongly recommend creating orders only when payment is guaranteed in order to reduce unnecessary API calls and avoid misleading results in sales reports.
Partners are able to include more details to help map the order to their own orders system.
Order
Error
{- "cart_uuid": "ff111070-984a-4cff-87c7-2a32cd76de36",
- "email_notification": "NONE",
- "extra_data": "{\"clientReferenceId\":\"12345678\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"reservationId\":\"3E5B7445-00E6-4ED6-9321-19E30D73A128\",\"utm_campaign\":\"example-it\",\"utm_content\":\"it-native\",\"utm_medium\":\"example-App it\",\"utm_source\":\"channel-abc\"}"
}
{- "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"
}, - "date": "2019-08-24T14:15:22Z",
- "discount_amount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "extra_data": "{\"clientReferenceId\":\"12345678\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"reservationId\":\"3E5B7445-00E6-4ED6-9321-19E30D73A128\",\"utm_campaign\":\"example-it\",\"utm_content\":\"it-native\",\"utm_medium\":\"example-App it\",\"utm_source\":\"channel-abc\"}",
- "identifier": "string",
- "items": [
- {
- "quantity": 1,
- "b2b_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "cancellation_additional_info": "Customer rejected suggested change to reservation date.",
- "cancellation_reason": "REJECTED-SCHEDULE-CHANGE",
- "error_status": true,
- "extra_customer_data": [
- {
- "name": "string"
}
], - "is_gift_redeem": true,
- "participants_info": [
- {
- "salutation": "string",
- "firstname": "string",
- "lastname": "string",
- "date_of_birth": "2019-08-24T14:15:22Z",
- "passport": "string",
- "email": "string",
- "passport_expiry_date": "2019-08-24T14:15:22Z",
- "nationality": "string",
- "medical_notes": "string",
- "address": "string",
- "fan_card": "string",
- "weight": 0,
- "phone_number": "string"
}
], - "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",
}, - "status": "CANCELLATION_ERROR",
- "transaction_code": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}
}
], - "market": "string",
- "status": "KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "affiliate": {
- "uuid": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "code": "string",
- "name": "string",
- "logo_url": "string",
- "secondary_logo_url": "string",
- "header": "string",
- "customer_care_phone_number": "string",
- "customer_care_email": "string",
- "whitelabel": true,
- "show_cobranded_header": true,
- "show_cobranded_voucher": true,
- "show_cobranded_item_confirmation_email": true,
- "setup_cookie_after_first_visit": true,
- "translations": [
- {
- "locale": "string"
}
]
}, - "affiliate_channel": "string",
- "promo_codes": [
- {
- "code": "string",
- "active": true,
- "percentage": true,
- "discount": 0,
- "max_usage": 0,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "minimum_amount": 0
}
], - "source": "string"
}
Returns an order.
Order
Resource not found
Error
{- "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"
}, - "date": "2019-08-24T14:15:22Z",
- "discount_amount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "extra_data": "{\"clientReferenceId\":\"12345678\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"reservationId\":\"3E5B7445-00E6-4ED6-9321-19E30D73A128\",\"utm_campaign\":\"example-it\",\"utm_content\":\"it-native\",\"utm_medium\":\"example-App it\",\"utm_source\":\"channel-abc\"}",
- "identifier": "string",
- "items": [
- {
- "quantity": 1,
- "b2b_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "cancellation_additional_info": "Customer rejected suggested change to reservation date.",
- "cancellation_reason": "REJECTED-SCHEDULE-CHANGE",
- "error_status": true,
- "extra_customer_data": [
- {
- "name": "string"
}
], - "is_gift_redeem": true,
- "participants_info": [
- {
- "salutation": "string",
- "firstname": "string",
- "lastname": "string",
- "date_of_birth": "2019-08-24T14:15:22Z",
- "passport": "string",
- "email": "string",
- "passport_expiry_date": "2019-08-24T14:15:22Z",
- "nationality": "string",
- "medical_notes": "string",
- "address": "string",
- "fan_card": "string",
- "weight": 0,
- "phone_number": "string"
}
], - "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",
}, - "status": "CANCELLATION_ERROR",
- "transaction_code": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}
}
], - "market": "string",
- "status": "KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "affiliate": {
- "uuid": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "code": "string",
- "name": "string",
- "logo_url": "string",
- "secondary_logo_url": "string",
- "header": "string",
- "customer_care_phone_number": "string",
- "customer_care_email": "string",
- "whitelabel": true,
- "show_cobranded_header": true,
- "show_cobranded_voucher": true,
- "show_cobranded_item_confirmation_email": true,
- "setup_cookie_after_first_visit": true,
- "translations": [
- {
- "locale": "string"
}
]
}, - "affiliate_channel": "string",
- "promo_codes": [
- {
- "code": "string",
- "active": true,
- "percentage": true,
- "discount": 0,
- "max_usage": 0,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "minimum_amount": 0
}
], - "source": "string"
}
Once payment has occurred, orders cannot be updated.
Order information
Order
Resource not found
Locked: order cannot be modified due to status
Error
{- "extra_data": "{\"clientReferenceId\":\"12345678\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"reservationId\":\"3E5B7445-00E6-4ED6-9321-19E30D73A128\",\"utm_campaign\":\"example-it\",\"utm_content\":\"it-native\",\"utm_medium\":\"example-App it\",\"utm_source\":\"channel-abc\"}"
}
{- "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"
}, - "date": "2019-08-24T14:15:22Z",
- "discount_amount": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "extra_data": "{\"clientReferenceId\":\"12345678\",\"firstName\":\"John\",\"lastName\":\"Smith\",\"reservationId\":\"3E5B7445-00E6-4ED6-9321-19E30D73A128\",\"utm_campaign\":\"example-it\",\"utm_content\":\"it-native\",\"utm_medium\":\"example-App it\",\"utm_source\":\"channel-abc\"}",
- "identifier": "string",
- "items": [
- {
- "quantity": 1,
- "b2b_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "cancellation_additional_info": "Customer rejected suggested change to reservation date.",
- "cancellation_reason": "REJECTED-SCHEDULE-CHANGE",
- "error_status": true,
- "extra_customer_data": [
- {
- "name": "string"
}
], - "is_gift_redeem": true,
- "participants_info": [
- {
- "salutation": "string",
- "firstname": "string",
- "lastname": "string",
- "date_of_birth": "2019-08-24T14:15:22Z",
- "passport": "string",
- "email": "string",
- "passport_expiry_date": "2019-08-24T14:15:22Z",
- "nationality": "string",
- "medical_notes": "string",
- "address": "string",
- "fan_card": "string",
- "weight": 0,
- "phone_number": "string"
}
], - "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",
}, - "status": "CANCELLATION_ERROR",
- "transaction_code": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}
}
], - "market": "string",
- "status": "KO",
- "total_price": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "total_retail_price_in_order_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_original_retail_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "total_supplier_price_in_supplier_currency": {
- "currency": "USD",
- "formatted_value": "$ 10.00",
- "formatted_iso_value": "$10.00",
- "value": 10
}, - "affiliate": {
- "uuid": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "code": "string",
- "name": "string",
- "logo_url": "string",
- "secondary_logo_url": "string",
- "header": "string",
- "customer_care_phone_number": "string",
- "customer_care_email": "string",
- "whitelabel": true,
- "show_cobranded_header": true,
- "show_cobranded_voucher": true,
- "show_cobranded_item_confirmation_email": true,
- "setup_cookie_after_first_visit": true,
- "translations": [
- {
- "locale": "string"
}
]
}, - "affiliate_channel": "string",
- "promo_codes": [
- {
- "code": "string",
- "active": true,
- "percentage": true,
- "discount": 0,
- "max_usage": 0,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "minimum_amount": 0
}
], - "source": "string"
}
Trigger a webhook notification for an order item. This endpoint requires setting up a webhook URL with us ahead of time.
Notifications cannot be requested for gifted order items.
Request was successful
Bad request: notification is not possible
Not found: order or order item do not exist
Error
{- "code": "1000",
- "message": "Notifications cannot be triggered for this order item."
}
Returns an array of refund policies for an order item.
Refund policies for order item
Not found: resource or refund policies do not exist
Error
[- {
- "period": "P2D",
- "type": "PERCENTAGE",
- "uuid": "e9d85f7d-6e48-11e8-8a05-02bc4b6113e8",
- "value": 100,
- "applicable_until": "2022-11-09 09:00",
- "remaining_time": "P6M26DT18H50M11S"
}
]
Returns an array of paid refunds for an order.
Refunds for order
Resource not found
Error
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "order_items": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "payment": {
- "payment_strategy": "adyen_cse",
- "price_amount": {
- "amount": "string",
- "currency": "str"
}
}
}
]