Product variations

Get product variations

get

To find different versions of a product, input the product's ID in the {id} URI path parameter. For instance, a software product may have a variation based on its operating system.

Path parameters
productIdstringRequired

Provide the product identifier.

Query parameters
apiKeystringOptional

Provide your client identifier.

tokenstringOptional

Provide the authorized or anonymous token for a shopper.

expandstringOptional

Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.

fieldsstringOptional

Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.

currencystringOptional

Set the preferred currency for the pricing information returned for a product. The currency query parameter takes precedence over locale.

localestringOptional

Set the preferred locale for the pricing information returned for products. The currency query parameter takes precedence over locale.

Responses
200
Successful response.
application/json
Responseone of
or
get
GET /v1/shoppers/me/products/{productId}/variations HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
  "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 updated