Get a Variation
GET
Get a variation
https://api.moltin.com/pcm/variations/:variationId
Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Path parameters
Name | Required | Type | Description |
---|---|---|---|
variationId | Required | string | The ID of the variation to get. |
Request Example
curl -X GET https://api.moltin.com/pcm/variations/1838ded2-3726-4288-bd82-7c4f14376aac \
-H "Authorization: Bearer XXXX"
Response Example
200 OK
{
"data": {
"type": "product-variation",
"id": "1838ded2-3726-4288-bd82-7c4f14376aac",
"attributes": {
"name": "Paint color"
},
"meta": {
"owner": "store"
}
}
}