A collection of endpoints regarding payment during the booking flow. Partners have multiple payment options at their disposal, depending on agreements with the Strategic partnerships team.
Confirm order payment with the "no-payment flow".
This flow can be used by any partner if the total price of an order is zero.
For orders with a total price greater than zero, this flow is reserved for partners acting as merchant of record. Permission to use this flow must be set up ahead of time.
Order
Not found: specified order in request body does not exist
Unprocessable entity: order price is greater than zero and partner does not have permission to use "no-payment flow"
Locked: order has already been paid
Error
{- "uuid": "de52057f-e788-46d6-8b18-6ccb8f9267d9"
}
{- "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"
}
Start paying for an order using either Adyen or Stripe.
Use of this endpoint requires completing payment with the POST /payments/split/complete_3d_secure
endpoint.
Payment details
Redirect to 3D Secure authentication
Unauthorized: order does not belong to partner
Not found: specified order in request body does not exist
Unprocessable entity: error during payment
Locked: order has already been paid
Error
{- "adyen_token": "string",
- "card_brand": "string",
- "card_country": "st",
- "client_ip": "string",
- "order_uuid": "e56795c7-0bc3-4742-a52f-988d2af8608f",
}
{- "gateway": "ADYEN",
- "3d_secure": {
- "payload": { },
- "payment_intent_client_secret": "string",
- "type": "FORM",
}, - "reason": "BUSINESS_STRATEGY"
}
Finish paying for an order using either Adyen or Stripe.
After completing 3D Secure authentication, use this endpoint to confirm successful payment for the order.
Payment details
Unauthorized: order does not belong to partner
Not found: specified order in request body does not exist
Unprocessable entity: error during payment
Locked: order has already been paid
Error
{- "order_uuid": "e56795c7-0bc3-4742-a52f-988d2af8608f",
- "payment_intent_id": "string"
}
{- "3d_secure": {
- "payload": { },
- "payment_intent_client_secret": "string",
- "type": "FORM",
}
}