Create Session

POST https://api.duffel.com/links/sessions

Request Body

{"data"=>{"traveller_currency"=>"GBP", "success_url"=>"https://example.com/success", "abandonment_url"=>"https://example.com/abandonment", "failure_url"=>"https://example.com/failure", "primary_color"=>"#000000", "secondary_color"=>"#000000", "reference"=>"user_123", "markup_currency"=>"GBP", "markup_amount"=>"1.00", "markup_rate"=>"0.01", "logo_url"=>"https://example.com/logo.svg", "checkout_display_text"=>"Thank you for booking with us.", "flights"=>{"enabled"=>"true"}, "stays"=>{"enabled"=>"false"}}}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Duffel-Versionstringhttps:/duffel.com/docs/api/overview/making-requests/versioning