Method: accounts.lfpStores.insert
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แทรกร้านค้าสำหรับผู้ขายเป้าหมาย หากมีร้านค้าที่มีรหัสร้านค้าเดียวกันอยู่แล้ว ระบบจะแทนที่ร้านค้าดังกล่าว
คำขอ HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ รูปแบบบัญชีผู้ให้บริการ LFP: accounts/{account}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ LfpStore
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ LfpStore
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/content
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-23 UTC
[null,null,["อัปเดตล่าสุด 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)."]]