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 بهوقت ساعت هماهنگ جهانی."],[[["Inserts or replaces a store for the target merchant using the provided store code."],["Requires `https://www.googleapis.com/auth/content` authorization scope for access."],["Utilizes an HTTP POST request to `https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert` with the LFP provider account in the path parameter."],["Includes the store details in the request body as an instance of `LfpStore` and returns the created/updated store in the response body."]]],["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"]]