Merchant API دو روش جدید را برای مدیریت موجودی معرفی می کند:
list : به شما امکان می دهد موجودی محلی و منطقه ای محصولات خود را فهرست کنید.
delete : به شما امکان می دهد موجودی محلی و منطقه ای محصولات خود را حذف کنید.
در اینجا مقایسه ای از روش های موجود برای مدیریت موجودی ها آورده شده است:
روش
Content API برای خرید
Merchant API
customBatch
بله
خیر
insert
بله
بله
list
خیر
بله
delete
خیر
بله
منابع
در اینجا آنچه برای موجودی های محلی و منطقه ای تغییر کرده است:
Content API برای خرید
Merchant API
توضیحات
پشتیبانی نمی شود
name:string
این زمینه منابع LocalInventory و RegionalInventory را در یک product متمایز می کند. Content API برای خرید، موجودی محلی را بر اساس storeCode و productId ، و موجودی منطقهای را بر اساس regionId و productId شناسایی میکند.
پشتیبانی نمی شود
account:string
فیلد جدیدی برای شناسایی حساب Merchant Center که product و LocalInventory متعلق به آن است، اضافه شد.
تاریخ آخرین بهروزرسانی 2025-08-11 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-11 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Merchant API allows management of both local (in-store) and regional inventory for products.\u003c/p\u003e\n"],["\u003cp\u003eIt introduces new methods for inventory management like listing and removing local and regional inventory, replacing the Content API for Shopping for these operations.\u003c/p\u003e\n"],["\u003cp\u003eThere are key differences in how local and regional inventory are handled in the Merchant API compared to the Content API, including new fields and data types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field is introduced to uniquely identify inventory resources, and \u003ccode\u003eaccount\u003c/code\u003e is added to link products and inventory to the merchant account.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eprice\u003c/code\u003e, \u003ccode\u003esalePrice\u003c/code\u003e, and \u003ccode\u003esalePriceEffectiveDate\u003c/code\u003e fields have been updated with new data types and structures in the Merchant Inventories API.\u003c/p\u003e\n"]]],["The Merchant API manages local and regional inventory, using the Inventories sub-API. Key actions include listing and removing both local and regional inventories. The API uses `POST` requests with a specific URL format. New fields like `name` and `account` were added for local and regional inventory. The `price` definition has been modified. `salePriceEffectiveDate` now uses the `TimePeriod` type and `quantity` is now an integer. Methods such as `list` and `delete` are now supported. The `customBatch` method is not.\n"],null,[]]