API Reference Overview
Authentication
Consumers
Connections
Accounting
- Folders
- Book years
- Clients
- Suppliers
- Invoices
- Ledger accounts
- Journals
- Journal entries
- Employees
- Analytic plans
- Analytic accounts
- Miscellaneous operations
- Outstandings
- VAT codes
- Attachments
Invoicing
- Contacts
- Invoices
- Products
- Taxes
- Opportunities
- Payments
- Payment methods
POS
- Orders
- Payment methods
- Payments
- Closure info
- Locations
- Products
- Categories
- Customers
- Objectives
eCommerce
- Orders
- Products & variants
- Categories
- Customers
- Payment methods
- Locations
- Countries
- Taxes
PMS
- Orders
- Invoices
- Payment methods
- Payments
- Closure info
- Locations
- Categories
- Customers
- Taxes
Payment
- Payments
- Balances
- Transactions
- Refunds
Banking
- Financial institutions
- Banking accounts
- Transactions
Advanced
- Webhooks
- Syncs
- Issues
- Datastores
Products & variants
Get one specific product variant
Returns a specific product variant
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": [
{
"id": "<string>",
"name": "<string>"
}
],
"created_on": "2023-11-07T05:31:56Z",
"sku": "<string>",
"barcode": "<string>",
"available_quantity": 123,
"prices": [
{
"currency": "<string>",
"price": 123
}
],
"unit_cost": {
"amount": 123,
"currency": "<string>"
},
"unit_of_measure": "<string>",
"weight": 123,
"weight_unit": "<string>",
"status": "unknown",
"inventory_details": [
{
"location": {
"id": "<string>",
"name": "<string>"
},
"available_quantity": 123
}
],
"common_attributes": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"variant_attributes": [
{
"name": "<string>",
"value": "<string>"
}
],
"common_images": [
{
"id": "<string>",
"main_image": true,
"url": "<string>"
}
],
"variant_images": [
{
"id": "<string>",
"main_image": true,
"url": "<string>"
}
]
}
Authorizations
This access token needs to be included in each of your request to the Chift API.
Response
200
application/json
Successful Response
The response is of type object
.
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": [
{
"id": "<string>",
"name": "<string>"
}
],
"created_on": "2023-11-07T05:31:56Z",
"sku": "<string>",
"barcode": "<string>",
"available_quantity": 123,
"prices": [
{
"currency": "<string>",
"price": 123
}
],
"unit_cost": {
"amount": 123,
"currency": "<string>"
},
"unit_of_measure": "<string>",
"weight": 123,
"weight_unit": "<string>",
"status": "unknown",
"inventory_details": [
{
"location": {
"id": "<string>",
"name": "<string>"
},
"available_quantity": 123
}
],
"common_attributes": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"variant_attributes": [
{
"name": "<string>",
"value": "<string>"
}
],
"common_images": [
{
"id": "<string>",
"main_image": true,
"url": "<string>"
}
],
"variant_images": [
{
"id": "<string>",
"main_image": true,
"url": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.