Search
K
Links

Product variations

Learn how to retrieve product variation information.
You can retrieve product variations programmatically.

Getting product variations

The GET /v1/shoppers/me/products/{productId}/variations request gets all product variations for a specified product identifier (productId) (productId).
cURL
200 OK response
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/products/{productId}/variations \
--header 'authorization: bearer ***\
...
{
"variations": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64358200/variations",
"product": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500",
"displayName": "Class I",
"thumbnailImage": "https://drh-sys-ora.img.digitalriver.com/Storefront/Company/demosft1/images/product/thumbnail/classIThumb.jpg",
"pricing": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/products/64578500/pricing",
"formattedListPrice": "$19.99",
"formattedSalePriceWithQuantity": "$17.99"
},
"addProductToCart": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/carts/active/line-items?productId=64578500",
"cartUri": "https://api.digitalriver.com/v1/shoppers/me/carts/active?productId=64578500"
}
}
]
}
}
Last modified 5mo ago