GET
/
consumers
/
{consumer_id}
/
commerce
/
variants
/
{variant_id}
curl --request GET \
  --url https://api.chift.eu/consumers/{consumer_id}/commerce/variants/{variant_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "source_ref": {
    "id": "<string>",
    "model": "<string>"
  },
  "parent_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "description_html": "<string>",
  "categories": [],
  "created_on": "2023-11-07T05:31:56Z",
  "sku": "<string>",
  "barcode": "<string>",
  "available_quantity": 0,
  "prices": [],
  "unit_of_measure": "<string>",
  "weight": 0,
  "weight_unit": "<string>",
  "status": "unknown",
  "inventory_details": [],
  "common_attributes": [],
  "variant_attributes": [],
  "common_images": [],
  "variant_images": []
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string
required
variant_id
string
required

Response

200
application/json
Successful Response
id
string
required

Technical id in Chift

source_ref
object
required

Technical id in the target software

parent_id
string
required

Technical id of the parent product in Chift

name
string
required
description
string
description_html
string
categories
object[]
created_on
string
sku
string
barcode
string
available_quantity
number
default:0
prices
object[]
unit_of_measure
string
weight
number
default:0
weight_unit
string
status
enum<string>

An enumeration.

Available options:
unknown,
archived,
unpublished,
published
inventory_details
object[]
common_attributes
object[]

List of attributes that are shared by all variants of the product.

variant_attributes
object[]

List of attributes that are specific to the variant of the product.

common_images
object[]

List of images that are shared by all variants of the product.

variant_images
object[]

List of images that are specific to the variant of the product.