UniventsAPIProducts
List a product's variants
Lists the variants of a product. Public.
GET
/products/{product_id}/variantsLists the variants of a product. Public.
Path Parameters
product_id*string
Product ID.
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants"{
"items": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"edition_id": "aeda7fca-56fe-426a-8c37-1876faaaf005",
"product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
"vendor_code": "string",
"name": "string",
"description": "string",
"price": 0,
"stock": 0,
"gallery_urls": [
"http://example.com"
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
]
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 404,
"title": "Not Found"
}{
"detail": "string",
"instance": "../dictionary",
"errors": [
{
"field": "string",
"message": "string"
}
],
"type": "http://example.com",
"status": 500,
"title": "Internal Server Error"
}