Get all modifiers
GEThttps://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
- 200
- 400
- 500
Successfully returns all variation modifiers.
- application/json
- Schema
- Example (auto)
- list-variations
Schema
data object[]
meta object
{
"data": [
{
"id": "string",
"type": "product-variation-modifier",
"attributes": {
"type": "commodity_type",
"value": "string",
"seek": "string",
"set": "string",
"reference_name": "string"
},
"meta": {
"owner": "store"
}
}
],
"meta": {
"results": {
"total": 3
}
}
}
{
"data": [
{
"type": "product-variation-modifier",
"id": "68ec4892-9e4c-4154-a9fd-f5a9fb1f6878",
"attributes": {
"type": "sku_equals",
"value": "newSku"
},
"meta": {
"owner": "store"
}
},
{
"type": "product-variation-modifier",
"id": "a510cddc-e946-4c22-9541-54626a7cf0ec",
"attributes": {
"seek": "{color}",
"set": "red",
"type": "slug_builder"
},
"meta": {
"owner": "store"
}
},
{
"type": "product-variation-modifier",
"id": "2f0cbb06-8880-4a75-bfc6-a20f0f73a997",
"attributes": {
"reference_name": "PriceEqual",
"type": "price"
},
"meta": {
"owner": "store"
}
}
],
"meta": {
"results": {
"total": 3
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (auto)
- bad-request
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Bad Request",
"detail": "Could not parse the supplied filter",
"status": "400"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors undefined[]required
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"status": "500",
"title": "Internal Server Error",
"detail": "There was an internal server error, you can report with your request id.",
"request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear