העברת תמיכה למוֹכרים

בעזרת Content API for Shopping, אפשר להשתמש במשאב merchantsupport כדי ליצור דף אבחון בתוך האפליקציה בשביל המוכרים. ‫Merchant API מציע פתרון בעיות, שתומך באותה פונקציונליות.

סקירה כללית

כשמבצעים מיגרציה מ-Content API, צריך לשים לב לשינויים הבאים בשמות ובמבנים של השירותים והשיטות:

  • השינוי המשמעותי ביותר בתגובה מה-API הוא איחוד האובייקטים AccountIssue ו-ProductIssue לאובייקט RenderedIssue יחיד. הפעולה הזו אמורה לפשט את הקוד על ידי יצירת מבנה עקבי לכל סוגי הבעיות.
  • ב-Merchant API, השם של השדה issues משתנה ל-rendered_issues.

מזהים

כדי להשתמש ב-Merchant API, צריך לשנות את המזהים שלכם ב-Content API באופן הבא.

שיטה Content API for Shopping Merchant API
renderaccountissues {merchant_id} accounts/{ACCOUNT_ID}
renderproductissues {PRODUCT_ID} accounts/{ACCOUNT_ID}/products/{PRODUCT_ID}
TriggerAction {merchant_id} accounts/{ACCOUNT_ID}

בקשות

כדי להשתמש ב-Merchant API, צריך לשנות את הבקשות שלכם ל-Content API באופן הבא.

פעולה Content API for Shopping 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 for Shopping Merchant API
issues renderedIssues

מודלים ששמם שונה

Content API for Shopping Merchant API
  • AccountIssue
  • ProductIssue
RenderedIssue