Getting a product variation by locale
Learn how to get information for a product variation by locale.
Basic The following GET /v1/products/{ProductId or ERID}/variation/{productId or ERID}/locales/{locale}
request retrieves data for a specific locale associated with a particular product variation.
To get a product variation for a specific base product and locale, you must provide one of the following options:
A
productId
for the base product, thevariationProductId
for the product variation and thelocale
.An
ERID
for the base product, and avariationERID
for the product variation, and thelocale
. If the request finds multiple products associated with theERID
, the response will return all of them.
The following example gets product variation for a specific base product and a locale with a productId
.
curl --location --request GET 'https://api.digitalriver.com/v1/products/{productId}/variation/{variationProductId}/locales/{locale}' \
--header 'Authorization: Basic <API_key>' \
...
An ERID request requires the x-erid-as-pid=true
header.
curl --location --request GET 'https://api.digitalriver.com/v1/products/{ERID}/variation/{variationERID}/locales/{locale}' \
--header 'Authorization: Basic <API_key>' \
--header 'header x-erid-as-pid=true' \
...
The response returns an error if the locale is not found or is invalid.
Last updated
Was this helpful?