Skip to main content

Get all modifiers

GET 

https://euwest.api.elasticpath.com/pcm/variations/:variationID/options/:optionID/modifiers

Get all modifiers

Request

Path Parameters

    variationID stringrequired

    A unique identifier for the variation.

    optionID stringrequired

    A unique identifier for the option.

Query Parameters

    page[offset] int64

    Possible values: >= 0 and <= 10000

    The number of records to offset the results by.

    page[limit] int64

    Possible values: >= 0 and <= 10000

    The number of records per page. The maximum limit is 100.

Responses

Successfully returns all variation modifiers.

Schema
    data object[]
  • Array [
  • idstring

    A unique identifier for a modifier that is generated automatically when a modifier is created.

    typestring

    This represents the type of resource object being returned. Always product-variation-modifier.

    Possible values: [product-variation-modifier]

    attributes object
    typestring

    You can specify different modifiers for different options in a variation. When you build child products using options in variations, the properties of a child products depends on the modifier set for the options that are applied to the child product. The table below describes the different types of modifiers.

    ModifierData TypeEffect
    name_equalsstringOverrides the name of the child product with the name specified by the modifier.
    name_appendstringAppends the string specified in the modifier to the name of the child product.
    name_prependstringPrepends the string specified in the modifier to the name of the child product.
    description_equalsstringOverrides the description of the child product.
    description_appendstringAppends the string specified in the modifier to the description of the child product.
    description_prependstringPrepends the string specified in the modifier to the product description of the child product.
    commodity_typestringSets the commodity type of the child product, such as physical or digital.
    pricestringAllows application of price modifiers (price_increment, price_decrement, and price_equals) to the child products.
    price_incrementstringIncreases the price of the child product.
    price_decrementstringDecreases the price of the child product.
    price_equalsstringSets the price of a child product to the amount you specify.
    slug_appendstringAppends the string specified in the modifier to the slug of the child product. Can only contain A-Z, a-z, 0 to 9, hyphen, underscore, and period. Spaces or other special characters like ^, [], *, and $ are not allowed. However, for the slug-builder modifier, you can use {} in the seek field, for example, "seek": :{COLOR}".
    slug_prependstringPrepends the string specified in the modifier to the slug of the child product. Can only contain A-Z, a-z, 0 to 9, hyphen, underscore, and period. Spaces or other special characters like ^, [], *, and $ are not allowed. However, for the slug-builder modifier, you can use {} in the seek field, for example, "seek": :{COLOR}".
    slug_builderstringSets a part of the slug of the child product. Can only contain A-Z, a-z, 0 to 9, hyphen, underscore, and period. Spaces or other special characters like ^, [], *, and $ are not allowed. However, for the slug-builder modifier, you can use {} in the seek field, for example, "seek": :{COLOR}".
    sku_equalsstringSets the SKU of the child product.
    sku_appendstringAppends the string specified in the modifier to the SKU of the child product.
    sku_prependstringPrepends the string specified in the modifier to the SKU of the child product.
    sku_builderstringSets a part of the SKU of the child product.
    statusstringSets the status of the child product, such as draft or live.

    Possible values: [commodity_type, status, price, name_append, name_prepend, name_equals, sku_append, sku_prepend, sku_equals, sku_builder, slug_append, slug_prepend, slug_equals, slug_builder, description_append, description_prepend, description_equals, custom_inputs_equals, build_rules_equals, locales_equals, upc_ean_equals, mpn_equals, external_ref_equals]

    valuestring

    Required for non-builder modifiers. The value of the modifier type.

    seekstring

    Required for builder modifiers. The sub-string to find and replace enclosed in curly brackets for slug_builder and sku_builder.

    setstring

    Required for builder modifiers. The value to replace matches the seek string for slug_builder and sku_builder.

    reference_namestring

    The name of the modifier.

    meta object
    ownerstring

    The owner of a resource, either organization or store.

    Possible values: [store, organization]

  • ]
  • meta object
    results object

    Contains the results for the entire collection.

    totalinteger

    Total number of results for the entire collection.

    Example: 3

Authorization: http

name: bearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/pcm/variations/:variationID/options/:optionID/modifiers");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com
Auth
Parameters
— pathrequired
— pathrequired
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!