Product variations

Learn how to retrieve product variation information.

You can retrieve product variations programmatically.

Offering customers various options to suit their preferences and needs is crucial when selling products online. Product variations allow you to provide multiple product versions, differing in attributes such as size, color, or style. By accessing product variations programmatically through the API, you can streamline the management and display of these options, enhancing the shopping experience.

You can retrieve product variations programmatically.

Getting product variations

To get product variations, you can send a GET /v1/shoppers/me/products/{productId}/variations request, providing the productId for the desired product. Replace {Your_Access_Token} with your access token. This request retrieves all variations for the specified product. Here's an example using cURL:

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/products/{productId}/variations \
--header 'authorization: bearer {Your_Access_token}\
...

A 200 OK response provides details of the product variations, including pricing and options for adding the product to the cart.

Last updated