Method: accounts.lfpInventories.insert
تُدرج هذه السمة موردًا من النوع LfpInventory
لحساب التاجر المستهدَف المحدّد. إذا كان المورد متوفّرًا حاليًا، سيتم استبداله. تنتهي صلاحية المستودع تلقائيًا بعد 30 يومًا.
طلب HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpInventories:insert
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
parent |
string
مطلوب. حساب مقدّم الخدمة في برنامج "الشراكة في الخلاصات المحلية". التنسيق: accounts/{account}
|
نص الطلب
يحتوي نص الطلب على مثال LfpInventory
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال LfpInventory
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/content
لمزيد من المعلومات، يُرجى الاطّلاع على OAuth 2.0 Overview.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة 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"]]