Prepare Booking
prepare_bookingPrepares a booking for the person who allowed you, for a free time. Nothing is booked yet: it returns a link (orderUrl) to give to the person. They read who the seller is and the terms, tick two boxes and press the button, and only then is it booked. Needs the person's own ServeCounter sign-in (OAuth). The booking is always for that person, whatever name or email you send; their phone number and full name are needed only when their account has none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The day, YYYY-MM-DD, from get_free_times. | |
| name | No | The person's full name, if their account has none. | |
| phone | No | The person's phone number, if their account has none. | |
| start | Yes | The start time, HH:MM, from get_free_times. | |
| payment | No | Only where the business lets the customer choose: pay the full amount now, or pay at the business with a deposit now. Defaults to the deposit. | |
| addOnIds | No | Add-ons chosen with the service. | |
| business | Yes | The business's address, such as "studio-noord". | |
| personId | No | Who it is with; leave out for no preference. | |
| serviceId | Yes | The service's id from get_business. | |
| variantId | No | A variant of the service, when it has them. | |
| locationId | Yes | The location's id from get_business. |