Method: locations.verifications.complete
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hoàn tất quy trình xác minh PENDING
.
Điều này chỉ cần thiết cho các phương thức xác minh không phải AUTO
. Yêu cầu xác minh AUTO
được gửi ngay VERIFIED
sau khi tạo.
Yêu cầu HTTP
POST https://mybusinessverifications.googleapis.com/v1/{name=locations/*/verifications/*}:complete
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
name |
string
Bắt buộc. Tên tài nguyên của quy trình xác minh cần hoàn tất.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"pin": string
} |
Trường |
pin |
string
Bắt buộc. Người bán nhận được mã PIN để hoàn tất quy trình xác minh.
|
Nội dung phản hồi
Thông báo phản hồi cho Verifys.CompleteVerifyAction.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"verification": {
object (Verification )
}
} |
Trường |
verification |
object (Verification )
Quy trình xác minh đã hoàn tất.
|
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/business.manage
Để biết thêm thông tin, hãy xem bài viết Tổng quan về OAuth 2.0.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThis document explains how to complete a pending verification for a business using the Google My Business Verifications API.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves sending a POST request to a specific endpoint with the verification's resource name and a PIN code.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON object containing the PIN received by the merchant.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will contain the completed verification details in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: locations.verifications.complete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CompleteVerificationResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nCompletes a `PENDING` verification.\n\nIt is only necessary for non `AUTO` verification methods. `AUTO` verification request is instantly `VERIFIED` upon creation.\n\n### HTTP request\n\n`POST https://mybusinessverifications.googleapis.com/v1/{name=locations/*/verifications/*}:complete`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------|\n| `name` | `string` Required. Resource name of the verification to complete. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------|\n| ``` { \"pin\": string } ``` |\n\n| Fields ||\n|-------|------------------------------------------------------------------------------------|\n| `pin` | `string` Required. PIN code received by the merchant to complete the verification. |\n\n### Response body\n\nResponse message for Verifications.CompleteVerificationAction.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------|\n| ``` { \"verification\": { object (/my-business/reference/verifications/rest/v1/Verification) } } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------|\n| `verification` | `object (`[Verification](/my-business/reference/verifications/rest/v1/Verification)`)` The completed verification. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]