Get all variations
GEThttps://euwest.api.elasticpath.com/pcm/variations
Get all variations
Request
Query Parameters
page[offset] int64
Possible values: <= 10000
The number of records to offset the results by.
page[limit] int64
Possible values: <= 10000
The number of records per page. The maximum limit is 100.
Responses
- 200
- 400
- 500
Returns all variations.
- application/json
- Schema
- Example (from schema)
- list-variations
Schema
data object[]
meta object
{
"data": [
{
"id": "string",
"type": "product-variation",
"attributes": {
"name": "string",
"sort_order": 0
},
"meta": {
"options": [
{
"id": "string",
"name": "string",
"description": "string",
"created_at": "2020-09-22T09:00:00",
"updated_at": "2020-09-22T09:00:00",
"sort_order": 0
}
],
"owner": "organization",
"created_at": "2020-09-22T09:00:00",
"updated_at": "2020-09-22T09:00:00"
}
}
],
"meta": {
"results": {
"total": 3
}
}
}
{
"data": [
{
"type": "product-variation",
"id": "c1ccccba-53e4-46b5-aed8-94f32823148a",
"attributes": {
"name": "Size",
"sort_order": 1
},
"meta": {
"options": [
{
"id": "057a50ba-1afb-4944-9637-bd9b568a9f39",
"name": "Large",
"description": "Large size",
"sort_order": 3,
"created_at": "2024-01-25T11:25:38.001Z",
"updated_at": "2024-01-25T11:25:38.001Z"
},
{
"id": "fa191e68-9bba-49f9-8e12-056c4e8f50e2",
"name": "Medium",
"description": "Medium size",
"sort_order": 2,
"created_at": "2024-01-25T11:25:38.001Z",
"updated_at": "2024-01-25T11:25:38.001Z"
},
{
"id": "112d1c5c-d149-453e-b208-89470968bacf",
"name": "Small",
"description": "Small size",
"sort_order": 1,
"created_at": "2024-01-25T11:25:38.001Z",
"updated_at": "2024-01-25T11:25:38.001Z"
}
],
"owner": "store",
"created_at": "2024-01-25T11:25:38.001Z",
"updated_at": "2024-01-25T11:25:38.001Z"
}
},
{
"type": "product-variation",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"attributes": {
"name": "Paint Color"
},
"meta": {
"owner": "store",
"created_at": "2024-01-25T11:25:38.001Z",
"updated_at": "2024-01-25T11:25:38.001Z"
}
}
],
"meta": {
"results": {
"total": 2
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- 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 (from schema)
- 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
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://euwest.api.elasticpath.com/pcm/variations' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear