Check Jewish Museum Berlin ticket availability
Automatically check Jewish Museum Berlin ticket availability on tickets.jmberlin.de. For one visit date on the official Jewish Museum Berlin ticket shop, list the entry time slots of one ticket type (adults by default) for one exhibition (the core exhibition by default), with the places left and the slot's total places, plus every ticket type sold for that exhibition that day with its price in euros and the most one order can hold. A day that is not on sale (in the past, too far ahead, or closed) returns no slots and a reason.
Input
date requiredVisit date, YYYY-MM-DD.
language optionalvisitors optionalNumber of visitors, used only to set enoughForVisitors on each slot.
Default: 1ticketType optionalTicket type: its id or a part of its title, as listed in ticketTypes (177 is the core exhibition adult ticket).
Default: "177"exhibitionId optionalExhibition id in the shop: 11 is the core exhibition.
Default: 11Output
date requiredslots requiredticketTypes requiredreason optionalticketType optionalFAQ
Place a Jewish Museum Berlin ticket order
Place the order for the basket filled with add_to_cart, as the booker given with fill_booking_details, on the official Jewish Museum Berlin ticket shop. With dryRun true (the default) it opens the basket, checks that the order can be placed, and stops before the final "place your binding order" step; nothing is ordered. With dryRun false it places the order, which is binding, and the shop emails the tickets; this is only done for a basket whose total is 0, so the script never pays. Returns the basket lines, the total, whether the order was placed, and the order id and the confirmation page the shop gives. An empty basket, or a browser without booking details, fails with an error that names the script to run first.
Add Jewish Museum Berlin tickets to the basket
Put tickets for one date and one entry slot in the basket of the official Jewish Museum Berlin ticket shop, with a quantity per ticket type (adults, under age of 18). Take the slot and the ticket types from check_availability: a slot is its time (HH:MM) or its startsAt value, a ticket type is its id or a part of its title. Returns the basket lines (ticket, slot, quantity, unit price, line total) and the total in euros. The basket lives in this browser: tickets already in it stay, unless emptyBasketFirst is true. Nothing is booked until complete_booking places the order. A slot with too few places, an unknown slot or ticket type, or a quantity above the most one order can hold fails with an error that names the valid values.
Fill Jewish Museum Berlin booking details
Give the booker's details to the official Jewish Museum Berlin ticket shop as a guest, so the basket filled with add_to_cart can be ordered with complete_booking. The guest form asks for first name, last name, email, postcode, country and correspondence language, and the shop's terms and conditions must be accepted (acceptTerms). No password and no customer account are created; the tickets are sent to the email. Returns the fields the shop requires and whether each is filled. A browser already signed in, as a guest or with an account, returns already_identified and changes nothing. It stops before the order: run complete_booking next.
