February 5, 2019

Sunset of XML support in the Content API for Shopping

What’s changing?
Starting September 1, 2019, the Content API for Shopping will no longer support requests or responses with XML payloads. All requests with an XML payload will fail after the sunset date.

Why is this change happening?
Version 2 of the Content API for Shopping changed the default request and response format from XML to JSON, and version 2.1 of the API (currently marked experimental) will not support XML. The majority of API requests now use JSON, so we’ve decided to sunset XML support and instead focus on enriching our JSON APIs with new features and functionality.

What should you do?
Prior to the sunset date, identify the components of your application that are using XML payloads for any of the following impacted services:

For each case, modify your application to:

  • Send the request body as JSON.
  • Ensure you have removed the alt=xml parameter from the request.
  • Process the response as JSON.
  • Test your updated application using a separate test account.

Tip: The client libraries for .NET, Dart, Go, Java, JavaScript, Node.js, Objective-C, PHP, Python, and Ruby will send JSON requests and parse JSON responses for you. We strongly recommend that you use one of the libraries so you won’t have to write marshalling and unmarshalling code in your application.

When converting a given request, you can use the JSON and XML tabs in the Request body section of the documentation for the method. For example, here’s a partial screenshot of the XML tab for Inventory.set:
Sunset of XML support in the Content API for Shopping
The corresponding JSON tab for that method is:
Sunset of XML support in the Content API for Shopping
Compare the two tabs and use that as a guide when converting your request from XML to JSON.

You can find similar JSON and XML information for the response in one of the following locations:

  • Directly in the Response section for the method.
    Example: The productsCustomBatchResponse for Products.custombatch.
  • In the Resource representations section of the documentation for the resource returned in the response.
    Example: The products resource for Products.insert.

If you have any questions or feedback about this change, or any other questions about the Content API for Shopping, please let us know on the forum.

Powered by WPeMatico

Get Free Site Analysis
Featured Services

What our customers say…

Click On Solutions
Reviewed from Google

5 out of 5 stars

Robert F. Martin
Robert F. Martin

5 out of 5 stars

posted 1 month ago

The guys at this company are stand up gentlemen. Their character has shown they are true to their words and will work with the skills they have to make the most out of your web development needs. They have been able to establish a brand worth working alongside. They have made great impressions on the internet, and will help your search engine optimization through their continued presence on the web. Their graphic skills and knowledge of back-end processes in different software give your company the knowledge needed to reach the audience you are seeking.

aleex dokem
aleex dokem

5 out of 5 stars

posted 2 months ago

They did a great job with my husbands' new site for his business; everything looks super clean, and it's a website that will last years vs. one that will end up looking outdated 18 months from now. The responsiveness of the site and the way that it flows looks awesome, and it's truly a great first impression for anyone coming to learn more about the business. Definitely recommend working

Antonia Montay
Antonia Montay

5 out of 5 stars

posted 2 months ago

Amazing work from these web and marketing geniuses! they built an incredible website and a powerful marketing campaign that took our business to the next level. Strongly recommend...they are driven and helpful!

AB Aaron
AB Aaron

5 out of 5 stars

posted 2 months ago

Because nothing seems too difficult for them to handle, and they do so with patience, an intrinsic understanding of how to make whatever work as well as it can, and with expedience!They bring expert creativity to their projects and can offer a myriad of suggestions to help us look the best we can, and to help our site functionality!

Benedict Robinson
Benedict Robinson

5 out of 5 stars

posted 1 week ago

They are experts!!! Very easy to deal with and we will continue to use them!Thanks guys!