Propose times with a booking page
POST /booking_pages/{uuid}/offers
/booking_pages/{uuid}/offersCreates a proposal of up to 10 specific times on a published booking page and returns one link per time. Whoever opens a link lands on the booking page with that time selected and still has to confirm the booking.
When to use: When the user wants to offer a person a few exact times, for example to paste the links into an email.
When not to use: To give a general link where the person picks any free time, use the page's public_url. This does not book a meeting and does not send anything; to book a meeting yourself with someone, create the meeting directly. Check the times first with get_booking_page_availability.
Side effects: Reads the host's calendars from Google during the request, once per option and calendar, so it can take several seconds. Nothing is written to Google and nothing is sent: the links are only returned to you, and the person who receives them (when you put them in an email) is the one who books. The offer does not block the calendar. Each link is revalidated when opened, so an option someone else books in the meantime stops working. The links stop working at expires_at, and when the page is paused, archived or its configuration changes.
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. The page must be published and either belong to the user who owns the token or be shared with them (set_booking_page_sharing).
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of a published booking page that is the user's own or shared with them. Get it from list_usable_booking_pages.
uuidThe new BookingOffer resource
TypeScript Definitions
Use the request body type in TypeScript.
create_booking_offer (fase 5): up to 10 exact times of a published booking page, one link each (CreateBookingOffer).
Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. An offer is not readable afterwards: the links are only in this answer.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84/offers" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "starts_at": [ "string" ], "duration_minutes": 15, "time_zone": "string", "allow_outside_hours": true, "expected_version": 1 }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "page": "string", "duration_minutes": 0, "time_zone": "string", "expires_at": "2019-08-24T14:15:22Z", "links": [ { "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "url": "http://example.com" } ]}