Add Musée d'Orsay timed-entry tickets to the basket
Automatically add Musée d'Orsay timed-entry tickets to the basket on billetterie.musee-orsay.fr. Put tickets for one date and one timed-entry slot in the basket of the official Musée d'Orsay ticket shop, with a quantity per rate. Take the slot and the rates from check_availability: a slot is its slotId or its time (HH:MM), a rate is its priceId or its label. Returns the basket lines (event, date and time, rate, quantity, unit price), the total in euros and how many seconds the shop still holds the basket (about 15 minutes). Tickets already in the basket stay. Nothing is paid or booked. A slot that is full, an unknown slot or rate, or a quantity above what the slot allows fails with an error that names the valid values.
Input
date requiredVisit date, YYYY-MM-DD.
slot requiredEntry slot: its slotId or its time (HH:MM), from check_availability.
tickets requiredeventId optionalTicket offer id: 1100509 is the standard timed admission to the museum.
Default: 1100509language optionalOutput
added requiredbasket requiredFAQ
Identify the buyer on the Musée d'Orsay ticket shop
Give the buyer's email to the official Musée d'Orsay ticket shop, for the basket filled with add_to_cart, and report what the shop needs before payment. Every order needs a Musée d'Orsay customer account, and the shop only keeps a new account once its first order is paid. A browser already identified returns already_identified and changes nothing. Otherwise the email decides: an existing account returns sign_in_required (sign in with its password in this browser), an unknown email returns new_customer_details_required with the sign-up fields the shop asks for (name, email, password, country). The script never types a password, never creates an account and stops before payment: run complete_booking next.
Open the Musée d'Orsay payment step
Take the basket filled with add_to_cart, for a buyer identified with fill_booking_details, to the payment step of the official Musée d'Orsay ticket shop, and stop there. It never types card details, never ticks the terms of sale and never clicks the pay button: with dryRun true (the default) it returns whether the payment step was reached, the total in euros, the basket lines, the payment provider and the fields the buyer still has to fill to pay. dryRun false is refused. A basket that is empty, or a buyer the shop has not identified yet, fails with an error that names the step to do first.
Check Musée d'Orsay timed-entry availability
For one visit date on the official Musée d'Orsay ticket shop, list the timed-entry slots of one ticket offer (the standard timed admission by default) and whether each slot can still be booked, plus the rates with their prices in euros and the most one order can hold, read from the first slot that can be booked. The shop does not show how many places a slot has left, only whether it is bookable. A day with no slot on sale (for example a Monday, when the museum is closed) returns no slots and a reason.
