مهاجرت به پشتیبانی بازرگان
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
با Content API for Shopping، میتوانید از منبع پشتیبانی فروشنده برای ایجاد یک صفحه عیبیابی درونبرنامهای برای تاجران خود استفاده کنید. Merchant API رزولوشن Issue را ارائه می دهد که از همان عملکرد پشتیبانی می کند.
نمای کلی
هنگام مهاجرت از Content API، به موارد زیر توجه کنید که تغییراتی در نام و ساختار سرویس و روش وجود دارد:
- مهم ترین تغییر در پاسخ API، ادغام اشیاء
AccountIssue
و ProductIssue
در یک شی RenderedIssue
است. این باید کد شما را با ارائه یک ساختار سازگار برای همه انواع مسائل ساده کند. - Merchant API نام فیلد
issues
به عنوان rendered_issues
تغییر میدهد.
شناسه ها
شناسه های Content API خود را برای Merchant API به شرح زیر تغییر دهید.
روش | Content API برای خرید | Merchant API |
---|
renderaccountissues | {merchant_id} | accounts/{ACCOUNT_ID} |
renderproductissues | {PRODUCT_ID} | accounts/{ACCOUNT_ID}/products/{PRODUCT_ID} |
TriggerAction | {merchant_id} | accounts/{ACCOUNT_ID} |
درخواست ها
درخواست های Content API خود را برای Merchant API به شرح زیر تغییر دهید.
اقدام | Content API برای خرید | Merchant API |
---|
مسائل مربوط به سطح حساب را برای یک حساب رندر کنید | POST https://shoppingcontent.googleapis.com/content/v2.1/ MERCHANT_ID /merchantsupport/renderaccountissues | POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/ ACCOUNT_ID :renderaccountissues |
مشکلات رندر برای یک محصول | POST https://shoppingcontent.googleapis.com/content/v2.1/ MERCHANT_ID /merchantsupport/renderproductissues/ PRODUCT_ID | POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/ ACCOUNT_ID /products/ PRODUCT_ID :renderproductissues |
اقدام ماشه ای | POST https://shoppingcontent.googleapis.com/content/v2.1/ MERCHANT_ID /merchantsupport/triggeraction | https://merchantapi.googleapis.com/issueresolution/v1/accounts/ ACCOUNT_ID :triggeraction |
مهم ترین تغییر در پاسخ API، ادغام اشیاء AccountIssue
و ProductIssue
در یک شی RenderedIssue
است. این باید کد شما را با ارائه یک ساختار سازگار برای همه انواع مسائل ساده کند.
فیلدهای تغییر نام یافته
نام جدید فیلد issues
سطح بالا در پاسخ renderedIssues
است. این شامل لیستی از اشیاء RenderedIssue
است.
Content API برای خرید | Merchant API |
---|
issues | renderedIssues |
مدل های تغییر نام یافته
Content API برای خرید | Merchant API |
---|
-
AccountIssue -
ProductIssue
| RenderedIssue |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Migrate merchant support\n\nWith Content API for Shopping, you can use the\n[merchantsupport](/shopping-content/reference/rest/v2.1/merchantsupport)\nresource to create an in-app diagnostics page for your merchants. Merchant API\noffers Issue resolution, which supports the same functionality.\n\nOverview\n--------\n\nWhen migrating from Content API, observe the following that there are changes to\nthe service and method names and structures:\n\n- The most significant change in the API response is the consolidation of the `AccountIssue` and `ProductIssue` objects into a single `RenderedIssue` object. This should simplify your code by providing a consistent structure for all types of issues.\n- Merchant API renames the `issues` field as `rendered_issues`.\n\nIdentifiers\n-----------\n\nChange your Content API identifiers as follows for Merchant API.\n\n| Method | Content API for Shopping | Merchant API |\n|-----------------------|--------------------------|-----------------------------------------------|\n| `renderaccountissues` | `{merchant_id}` | `accounts/{ACCOUNT_ID}` |\n| `renderproductissues` | `{PRODUCT_ID}` | `accounts/{ACCOUNT_ID}/products/{PRODUCT_ID}` |\n| `TriggerAction` | `{merchant_id}` | `accounts/{ACCOUNT_ID}` |\n\nRequests\n--------\n\nChange your Content API requests as follows for Merchant API.\n\n| Action | Content API for Shopping | Merchant API |\n|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Render account level issues for an account | ` POST https://shoppingcontent.googleapis.com/content/v2.1/`\u003cvar translate=\"no\"\u003eMERCHANT_ID\u003c/var\u003e`/merchantsupport/renderaccountissues ` | ` POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/`\u003cvar translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e`:renderaccountissues ` |\n| Render issues for a product | ` POST https://shoppingcontent.googleapis.com/content/v2.1/`\u003cvar translate=\"no\"\u003eMERCHANT_ID\u003c/var\u003e`/merchantsupport/renderproductissues/`\u003cvar translate=\"no\"\u003ePRODUCT_ID\u003c/var\u003e` ` | ` POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/`\u003cvar translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e`/products/`\u003cvar translate=\"no\"\u003ePRODUCT_ID\u003c/var\u003e`:renderproductissues ` |\n| Trigger action | ` POST https://shoppingcontent.googleapis.com/content/v2.1/`\u003cvar translate=\"no\"\u003eMERCHANT_ID\u003c/var\u003e`/merchantsupport/triggeraction ` | ` https://merchantapi.googleapis.com/issueresolution/v1/accounts/`\u003cvar translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e`:triggeraction ` |\n\nThe most significant change in the API response is the consolidation of\n`AccountIssue` and `ProductIssue` objects into a single `RenderedIssue` object.\nThis should simplify your code by providing a consistent structure for all types\nof issues.\n\nRenamed fields\n--------------\n\nThe new name for the top-level `issues` field in the response is\n`renderedIssues`. It contains a list of `RenderedIssue` objects.\n\n| Content API for Shopping | Merchant API |\n|--------------------------|------------------|\n| `issues` | `renderedIssues` |\n\nRenamed models\n--------------\n\n| Content API for Shopping | Merchant API |\n|-----------------------------------|-----------------|\n| - `AccountIssue` - `ProductIssue` | `RenderedIssue` |"]]