用户创建候位名单条目后,Google 会向您发送用户的名字、姓氏、电话号码和电子邮件地址。该电子邮件地址与用户的 Google 账号相同,且被视为唯一标识符。从您的角度来看,需要将该候位名单视为游客结账,因为“通过 Google 预订”无法在您的系统中查找用户的账号。请确保最终的候位名单条目与您的候位名单系统中显示的商家的条目相同。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eYou need a booking server to enable the Actions Center to create and update bookings for users.\u003c/p\u003e\n"],["\u003cp\u003eTwo implementations exist: Reservations Waitlists for managing waitlists and the Standard implementation for appointments and bookings.\u003c/p\u003e\n"],["\u003cp\u003eYour booking server must implement a REST API interface for Google to send requests.\u003c/p\u003e\n"],["\u003cp\u003eImplement security measures like HTTPS and HTTP basic authentication to ensure secure communication.\u003c/p\u003e\n"],["\u003cp\u003eHandle HTTP and business logic errors gracefully and ensure all state-mutating methods are idempotent for reliable communication.\u003c/p\u003e\n"]]],["To enable Actions Center bookings, implement a booking server with a REST API interface over HTTPS. The server can handle standard bookings or waitlist entries. It must support specific API methods (e.g., `HealthCheck`, `CreateWaitlistEntry`), handle HTTP and business logic errors, and ensure requests that alter state are idempotent. Use unique tokens for retryable actions. Configure server credentials and choose between sandbox or production environments. Utilize provided code samples for implementation and validate TLS certificate.\n"],null,["# Step 3: Implement the Waitlists booking server\n\nYou need to stand up a booking server to allow the Actions Center to make callbacks to create and\nupdate bookings on your behalf.\n\n- **The Reservations Waitlists implementation.** This is used when you participate in the Reservations Waitlists pilot program. This allows the Actions Center to retrieve wait estimates and create waitlist entries on behalf of the user.\n- **The Standard implementation.** This allows the Actions Center to create appointments, bookings, and reservations with you on behalf of the user. To implement a booking server for the Reservations End-to-End integration please refer to [Implement the booking server](/actions-center/verticals/reservations/waitlists/integration-steps/implement-booking-server).\n\nRefer to the\n[Partner Portal](/actions-center/verticals/reservations/waitlists/partner-portal/testing/booking-server-endpoint-and-credentials) documentation to learn how to configure the connection\nto your sandbox and production booking servers.\n\nImplement a REST API interface\n------------------------------\n\nImplement an API interface based on\n[REST](http://en.wikipedia.org/wiki/Representational_State_Transfer) This allows Google to send booking server\nrequests over HTTP.\n\nTo start, set up a development or sandbox booking server that can be\nconnected to the Actions Center sandbox environment. Only move to a\nproduction environment once the sandbox server is fully tested.\n\n### Methods\n\nFor each type of booking server, a different set of API methods are required\non your end. Optionally, you can download the service definition in proto\nformat to get started with the API implementation. The following tables show\nthe methods for each implementation and include links to the service proto\nformats.\n\n| Waitlist implementation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Waitlist service definition](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-definitions/proto-interface). Download the proto service definition file. |\n\n| Method | HTTP Request |\n|------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|\n| [HealthCheck](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/healthcheck-method) | GET /v3/HealthCheck/ |\n| [BatchGetWaitEstimates](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/batchgetwaitestimates-method) | POST /v3/BatchGetWaitEstimates/ |\n| [CreateWaitlistEntry](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/createwaitlistentry-method) | POST /v3/CreateWaitlistEntry/ |\n| [GetWaitlistEntry](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/getwaitlistentry-method) | POST /v3/GetWaitlistEntry/ |\n| [DeleteWaitlistEntry](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/deletewaitlistentry-method) | POST /v3/DeleteWaitlistEntry/ |\n\n### API resources\n\n#### Waitlist\n\nThe following resources are used to implement waitlist-based booking:\n\n- [WaitEstimate](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-definitions/waitestimate-definition): A wait estimate for a specific party size and merchant.\n- [WaitlistEntry](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-definitions/waitlistentry-definition): A user's entry in the waitlist.\n\n### Flow: create a waitlist entry\n\nThis section covers how to create a booking for the Reservations Waitlists integration.\nFigure 2: Workflow to create a waitlist entry\n\nWhen the user creates a waitlist entry, Google sends you the user's given\nname, surname, phone number, and email. The email is the same as the user's\nGoogle account and is treated as a unique identifier. From your point of\nview, this waitlist needs to be treated as a guest checkout, because Reserve\nwith Google can't look up the user's account in your system. Make sure the\nfinal waitlist entry appears identical to your merchants' entries that come\nfrom your waitlist system.\n\n### Security and Authentication\n\nAll communication to your booking server happens over HTTPS, so it's\nessential that your server has a valid TLS certificate that matches its\nDNS name. To help set up your server, we recommend the use of a freely\navailable SSL/TLS verification tool, such as\n[Qualys' SSL Server Test](https://www.ssllabs.com/ssltest/).\n\nAll requests Google will make to your booking server will be authenticated\nusing HTTP basic authentication. The basic authentication credentials\n(username and password) for your booking server can be entered in the\nBooking Server Configuration page within the\n[Partner Portal](https://partnerdash.google.com/apps/reservewithgoogle/configuration/booking-server). Passwords must be rotated every six months.\n| **Note:** You must set username and password for Sandbox and Production separately by using the [Environment switcher](/actions-center/verticals/reservations/waitlists/partner-portal/overview/environment-switcher).\n\n### Sample Skeleton Implementations\n\nTo get started, check out the following sample skeletons of a booking server\nwritten for Node.js and Java frameworks:\n\n- Node.js skeleton [js-maps-booking-rest-server-v3-skeleton](/actions-center/verticals/reservations/waitlists/reference/booking-server-code-samples/node-js)\n- Java skeleton [java-maps-booking-rest-server-v3-skeleton](/actions-center/verticals/reservations/waitlists/reference/booking-server-code-samples//java)\n\nThese servers have stubbed out REST methods.\n| **Note:** For Reservations Waitlists integration, change the REST methods to the required Reservations Waitlists methods.\n\nRequirements\n------------\n\n### HTTP errors and business logic errors\n\nWhen your backend handles HTTP requests, two types of errors may occur.\n\n- **Errors related to infrastructure or incorrect data**\n - Return these errors to the client with standard HTTP error codes. See the [full HTTP status code list](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/status-codes).\n- **Errors related to business logic**\n - Return HTTP status code set to `200` OK, and specify the business logic failure in the response body. The types of business logic errors you can encounter are different for the different types of server implementations.\n\nFor the Reservations Waitlists integraton, business logic errors are captured in\n[Waitlist Business Logic Failure](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-definitions/waitlistbusinesslogicfailure-definition) and they're returned in HTTP\nresponse. Business logic errors may be encountered when a resource is\ncreated, for instance when you handle the `CreateWaitlistEntry`\nmethod. Examples include, but are not limited to, the following:\n\n- `ABOVE_MAX_PARTY_SIZE` is used when the requested waitlist entry is over the merchant's maximum party size.\n- `MERCHANT_CLOSED` is used when the waitlist isn't open because the merchant is already closed.\n\n### Idempotency\n\nCommunication over the network is not always reliable and Google may retry\nHTTP requests if no response is received. For this reason, all methods that\nmutate state must be idempotent:\n\n- `CreateWaitlistEntry`\n- `DeleteWaitlistEntry`\n\nFor every request message except `DeleteWaitlistEntry`, idempotency tokens are included to uniquely\nidentify the request. This allows you to distinguish between a retried REST\ncall, with the intent to create a single request, and two separate requests.\n`DeleteWaitlistEntry` is uniquely\nidentified by their waitlist entry IDs respectively, so no\nidempotency token is included in their requests.\n\n\nThe following are some examples of how booking servers handle idempotency:\n\n- A successful\n [CreateWaitlistEntry](/actions-center/verticals/reservations/waitlists/reference/booking-server-api-rest/e2e-methods/createwaitlistentry-method) HTTP response includes the created\n waitlist entry ID. If the same `CreateWaitlistEntryRequest` is\n received a second time (with the same `idempotency_token`),\n then the same `CreateWaitlistEntryResponse` must be returned. No\n second waitlist entry is created and no error is returned.\n\n Note that if a `CreateWaitlistEntry` attempt fails and the\n same request is resent, your backend should retry in this case.\n\nThe idempotency requirement applies to all methods that mutate state."]]