Elastic Path Variations API
```mdx-code-blockimport VariationsOverview from '/docs/partials/pxm/variations/variationsoverview.mdx';import VariationsReusability from '/docs/partials/pxm/variations/variationsreusability.mdx';import ChildProducts from '/docs/partials/pxm/variations/childproducts.mdx';import BuildChildren from '/docs/partials/pxm/variations/buildchildproducts.mdx';import ProductModifiers from '/docs/partials/pxm/variations/productmodifiers.mdx';import PriceModifiers from "/docs/partials/pxm/variations/pricemodifiers.mdx";### Reusability### Child Products### Building Child Products### Sorting the Order of Variations and OptionsThe `variation_matrix` object lists the variation IDs and variation option IDs and their corresponding product IDs that are generated when the variation and variation options are built with a product. The `variation_matrix` can then be added to your catalogs.The order of the variations in the `variation_matrix` is the order of the variations in the array when the variations were linked to the product. For example, the first variation in the `variation_matrix` corresponds to the first variation in the array, and so on. You can use the `sort_order`attribute to sort the order of your variation and variation options in the `variation_matrix` object. The sort order value is visible when you add the variations and variation options to your catalogs. You can then use the `sort_order` value to program your storefront to display the variations and variation options in the order that you want.Add the `sort_order` attribute to the body of your request and specify a `sort_order` value. A `sort_order` value must be a number. You can specify any numbers that you want.- 1, 2, 3, or 100, 90, 80, and so on.- Zero or negative numbers.You can set `sort_order` to either `null` or omit it entirely from the request if you wish to remove an existing `sort_order` attribute.:::caution- Commerce does not sort variations and variation options. You must program your storefront to sort the variations and variation options in the order that you want.- You must rebuild your products for the sort order changes to take effect. See [**Build Child Products**](#build-child-products).:::### Product Modifiers### Price Modifiers```
Elastic Path Variations API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Variations. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 21 operations across 9 paths, and defines 31 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.
Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Elastic Path Variations API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (BearerToken).
By default, every request must be authenticated.
Paths & Operations 21
Across 9 paths, the API surfaces 21 operations — 4 DELETE, 8 GET, 5 POST, 4 PUT. Each is listed below with its method, path, parameters, and response codes.
mdx-code-block import VariationsOverview from '/docs/partials/pxm/variations/variationsoverview.mdx'; import VariationsReusability from '/docs/partials/pxm/variations/variationsre…
Schemas 31
The contract defines 31 schemas that model the data the API accepts and returns. The most detailed are elastic_path_file (9 properties), product_response (5 properties), multi_links (5 properties), job (4 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Elastic Path 12
Other APIs Elastic Path publishes across the network.