Method: accounts.lfpStores.insert
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
فروشگاهی را برای تاجر هدف درج می کند. اگر فروشگاهی با همان کد فروشگاه از قبل وجود داشته باشد، جایگزین خواهد شد.
درخواست HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
parent | string مورد نیاز. قالب حساب ارائهدهنده LFP: accounts/{account} |
درخواست بدن
بدنه درخواست شامل یک نمونه از LfpStore
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از LfpStore
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/content
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-23 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-23 بهوقت ساعت هماهنگ جهانی."],[[["\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)."]]