UniventsAPIProducts
Get an edition variant by vendor code
AIP custom method (`:verb` suffix per AIP-136). Fetches a product variant by its vendor code within the edition. Public.
GET
/editions/{edition_id}/variants/{vendor_code}:by-codeAIP custom method (:verb suffix per AIP-136). Fetches a product
variant by its vendor code within the edition. Public.
Path Parameters
edition_id*string
Edition ID.
vendor_code*string
Variant vendor code.
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/editions/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants/string:by-code"{
"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"
}