Satıcı desteğini taşıma

Content API for Shopping ile merchantsupport kaynağını kullanarak satıcılarınız için uygulama içi teşhis sayfası oluşturabilirsiniz. Merchant API, aynı işlevi destekleyen Sorun çözümü sunar.

Genel Bakış

Content API'den geçiş yaparken hizmet ve yöntem adlarında ve yapılarında değişiklikler olduğunu unutmayın:

  • API yanıtındaki en önemli değişiklik, AccountIssue ve ProductIssue nesnelerinin tek bir RenderedIssue nesnesinde birleştirilmesidir. Bu, her tür sorun için tutarlı bir yapı sağlayarak kodunuzu basitleştirir.
  • Merchant API, issues alanını rendered_issues olarak yeniden adlandırıyor.

Tanımlayıcılar

Merchant API için Content API tanımlayıcılarınızı aşağıdaki gibi değiştirin.

Yöntem 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}

İstekler

Merchant API için Content API isteklerinizi aşağıdaki gibi değiştirin.

İşlem Content API for Shopping Merchant API
Bir hesap için hesap düzeyindeki sorunları oluşturma POST https://shoppingcontent.googleapis.com/content/v2.1/MERCHANT_ID/merchantsupport/renderaccountissues POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/ACCOUNT_ID:renderaccountissues
Bir ürünle ilgili oluşturma sorunları 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
Tetikleyici işlemi POST https://shoppingcontent.googleapis.com/content/v2.1/MERCHANT_ID/merchantsupport/triggeraction https://merchantapi.googleapis.com/issueresolution/v1/accounts/ACCOUNT_ID:triggeraction

API yanıtındaki en önemli değişiklik, AccountIssue ve ProductIssue nesnelerinin tek bir RenderedIssue nesnesinde birleştirilmesidir. Bu, her tür soruna yönelik tutarlı bir yapı sağlayarak kodunuzu basitleştirir.

Yeniden adlandırılan alanlar

Yanıtın üst düzey issues alanının yeni adı renderedIssues. RenderedIssue nesnelerin listesini içerir.

Content API for Shopping Merchant API
issues renderedIssues

Yeniden adlandırılan modeller

Content API for Shopping Merchant API
  • AccountIssue
  • ProductIssue
RenderedIssue