Method: accounts.lfpInventories.insert
یک منبع LfpInventory
را برای حساب تاجر هدف داده شده درج می کند. اگر منبع از قبل وجود داشته باشد، جایگزین خواهد شد. موجودی به طور خودکار پس از 30 روز منقضی می شود.
درخواست HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpInventories:insert
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
parent | string مورد نیاز. حساب ارائه دهنده LFP. قالب: accounts/{account} |
درخواست بدن
بدنه درخواست شامل یک نمونه از LfpInventory
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه از LfpInventory
است.
محدوده مجوز
به محدوده 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 an `LfpInventory` resource for a given merchant account, with automatic 30-day expiration."],["Uses a POST request to the specified URL with path parameter indicating the target account."],["Requires an `LfpInventory` object in the request body and returns the same in the response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This describes the process of inserting a `LfpInventory` resource for a merchant account via an HTTP POST request. The request URL includes a required `parent` path parameter specifying the provider account. The request body must contain an `LfpInventory` instance, and a successful response also returns an `LfpInventory` instance. The process utilizes gRPC Transcoding, and requires the `https://www.googleapis.com/auth/content` OAuth scope for authorization. Existing resources will be replaced, and inventories expire after 30 days.\n"]]