Get Product Variant
GET/commerce/products/:productId/variants/:variantId
Request
Path Parameters
productId stringrequired
The ID of the product you want to get the product variants for.
variantId stringrequired
The ID of the variant you want to get.
Query Parameters
credentialId stringrequired
The ID of the credential.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
Responses
- 200
- 400
200
- application/json
- Schema
- Result
Schema
any
{
"variant": {
"remoteId": "200100200100",
"productId": "00112233-4455-6677-8899-aabbccddeeff",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
"title": "Medium",
"price": "25.00",
"sku": "SHIRT-M",
"optionValues": [
{
"name": "Size",
"value": "Medium"
}
],
"inventory": {"totalCount": 50},
"weight": [
{
"value": 9.525451098148434,
"unit": "kg"
},
{
"value": 9525.451098148435,
"unit": "g"
},
{
"value": 336.00076203608785,
"unit": "oz"
},
{
"value": 20.999999999999996,
"unit": "lb"
}
],
"id": "11001100-1122-3344-5566-77889900aabb"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
object
{}
{}
Loading...