Stay organized with collections
Save and categorize content based on your preferences.
Creating the lease is the first step when booking an appointment. The partner
backend verifies that the requested appointment slot is valid and still
available. Internally, the partner creates a temporary hold for the requested
slot, which is set up to expire automatically at lease_expiration_time. The
backend is allowed to modify lease_expiration_time, e.g. if the requested
lease time is excessively long. The created lease is returned to the client.
// Temporary lease for an inventory slotmessageLease{// ID of the lease. Ignored when creating a lease.stringlease_id=1;// ID of the merchant for the slotstringmerchant_id=2;// ID of the merchant servicestringservice_id=3;// Start time of the appointment slotgoogle.protobuf.Timestampstart_time=4;// Duration of the appointment slotgoogle.protobuf.Durationduration=5;// Opaque tag that identifies the availability slot and matches the value// provided in the availability feed.stringavailability_tag=8;// The set of resources that disambiguates the appointment slot, e.g. by// indicating the staff member and room selected by the user.Resourcesresources=9;// Unique identifier for this lease, chosen by the client. Serves as an// idempotency token for [ext.maps.booking.partner.v0.CreateLease] requests.stringclient_reference=6;// Expiration time of the leasegoogle.protobuf.Timestamplease_expiration_time=7;}// Reference to a [ext.maps.booking.partner.v0.Lease] that has been created via// [ext.maps.booking.partner.v0.CreateLease]messageLeaseReference{// Lease IDstringlease_id=1;}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Leases are optional in v2 and primarily used for creating temporary holds on appointment slots before booking."],["The `Lease` message contains information like merchant and service IDs, appointment details, resources, and an expiration time managed by the partner backend."],["`LeaseReference` allows referencing a previously created `Lease` using its unique ID."],["Partners verify slot availability and create a temporary hold using `CreateLease`, returning the `Lease` to the client."],["`client_reference` serves as an idempotency token for `CreateLease` requests ensuring unique lease creation."]]],[]]