Method: accounts.lfpStores.insert
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.
Chèn một cửa hàng cho người bán mục tiêu. Nếu cửa hàng có cùng mã cửa hàng đã tồn tại, thì cửa hàng đó sẽ được thay thế.
Yêu cầu HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Định dạng tài khoản nhà cung cấp LFP: accounts/{account}
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của LfpStore
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của LfpStore
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/content
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
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-01-23 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-23 UTC."],[[["\u003cp\u003eInserts or replaces a store for the target merchant using the provided store code.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e authorization scope for access.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP POST request to \u003ccode\u003ehttps://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert\u003c/code\u003e with the LFP provider account in the path parameter.\u003c/p\u003e\n"],["\u003cp\u003eIncludes the store details in the request body as an instance of \u003ccode\u003eLfpStore\u003c/code\u003e and returns the created/updated store in the response body.\u003c/p\u003e\n"]]],["A `POST` request is made to `https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert` to insert a store for a merchant, replacing existing stores with the same code. The `parent` path parameter, in the format `accounts/{account}`, is required. The request body must contain an `LfpStore` instance. A successful response will also return an `LfpStore` instance. This operation requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"],null,["# Method: accounts.lfpStores.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nInserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.\n\n### HTTP request\n\n`POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------|\n| `parent` | `string` Required. The LFP provider account Format: `accounts/{account}` |\n\n### Request body\n\nThe request body contains an instance of [LfpStore](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpStores#LfpStore).\n\n### Response body\n\nIf successful, the response body contains an instance of [LfpStore](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpStores#LfpStore).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]