ย้ายข้อมูลการสนับสนุนผู้ขาย

เมื่อใช้ Content API for Shopping คุณจะใช้แหล่งข้อมูล merchantsupport เพื่อสร้างหน้าการวินิจฉัยในแอปสำหรับผู้ขายได้ Merchant API มีการแก้ไขปัญหาซึ่งรองรับฟังก์ชันการทำงานเดียวกัน

ภาพรวม

เมื่อย้ายข้อมูลจาก Content API โปรดสังเกตว่ามีการเปลี่ยนแปลงชื่อและโครงสร้างของบริการและเมธอดดังต่อไปนี้

  • การเปลี่ยนแปลงที่สำคัญที่สุดในการตอบกลับจาก API คือการรวมออบเจ็กต์ AccountIssue และ ProductIssue ไว้ในออบเจ็กต์ RenderedIssue รายการเดียว ซึ่งจะช่วยลดความซับซ้อนของโค้ดโดยการจัดเตรียมโครงสร้างที่สอดคล้องกันสำหรับปัญหาทุกประเภท
  • Merchant API จะเปลี่ยนชื่อช่อง issues เป็น rendered_issues

รหัสระบุ

เปลี่ยนตัวระบุ Content API เป็น Merchant 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}

คำขอ

เปลี่ยนคำขอ Content API สำหรับ Merchant 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