API Documentation
Authentication APIs
- Login & Register
- Create & Manage Users
Catalog APIs
- GETList all products
- GETList all skus
- GETRetrieve a product
- GETRetrieve product variants
- GETRetrieve variant detail
- GETList all categories
- GETRetrieve product reviews
- POSTCreate product review
- GETRetrieve similar products
- GETRetrieve up sell products
- GETRetrieve cross sell products
- GETRetrieve recommended products
- POSTDatocms webhook
Cart & Checkout APIs
- Cart
- Checkout
Coupons & promotions API
Customers API
Orders APIs
Shipping APIs
Analytics
Campaigns API
Catalog APIs
List all skus
GET
/
catalog
/
skus
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/skus \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"skus": [
{
"product_id": "<string>",
"product_name": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"product_type": "physical",
"sku": "<string>",
"stock_available": true,
"is_featured": false,
"on_offer": false,
"on_subscription": false,
"on_promotion": false,
"attributes": [
{
"id": "<string>",
"name": "<string>",
"attribute_type": "single_select",
"attribute_value": "<string>",
"is_visible": true,
"is_filterable": false
}
],
"images": [
{
"id": 123,
"title": "<string>",
"alternate_text": "<string>",
"sort_order": 123,
"url_tiny": "<string>",
"url_thumbnail": "<string>",
"url_standard": "<string>",
"url_zoom": "<string>",
"other_details": {}
}
],
"pricing": {
"id": 123,
"customer_group_id": "<string>",
"cost_price": 123,
"listing_price": 123,
"selling_price": 123,
"min_order_quantity": 123,
"max_order_quantity": 123,
"incremental_quantity": 123,
"tax_type": "<string>",
"tax_rate": 123
},
"shipping": {
"is_free_shipping": false,
"is_fixed_cost_shipping": false,
"fixed_cost_shipping_price": 123,
"is_shipping_price_include_tax": true,
"availability_description": "<string>",
"ships_internationally": true,
"mid_code": "<string>",
"country_of_origin": "<string>"
},
"tags": [
"<string>"
],
"category_ids": [
"<string>"
],
"reviews_rating_sum": 123,
"reviews_count": 123,
"promotion": [
{
"promotion_type": "<string>",
"starts_at": "<string>",
"expires_at": "<string>",
"details": [
{
"discount_type": "percentage",
"discount_percent": 123,
"discount_fixed_amount": 123,
"customer_group_id": "<string>"
}
]
}
],
"subscription": [
{
"subscription_plan": "<string>",
"billing_interval": 123,
"billing_frequency": "<string>",
"billing_limit": 123,
"billing_trial_days": 123,
"order_interval": 123,
"order_frequency": "<string>",
"order_limit": 123,
"fulfill_separately": true,
"subscription_price": [
{
"customer_group_id": "<string>",
"min_quantity": 123,
"suscription_price": 123
}
],
"quantity": 123
}
]
}
],
"pagination": {
"total_records": 123,
"total_pages": 123,
"previous_page": "<any>",
"limit": 123,
"next_page": "<any>"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
OK
Available options:
physical
, digital
, bundle
Available options:
color
, single_select
, multi_select
, text
, date
, radio
, image
, file
, number
, currency
Maximum length:
128
Maximum length:
128
Maximum length:
512
Maximum length:
512
Maximum length:
512
Maximum length:
512
Maximum length:
64
customer group ulid
Maximum length:
128
Available options:
percentage
, fixed-amount
'> 0' if discount_type = percentage, otherwise set 0.
'> 0' if discount_type = fixed-amount, otherwise set 0.
null means never expires.
Maximum length:
64
Maximum length:
64
Maximum length:
64
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/skus \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"skus": [
{
"product_id": "<string>",
"product_name": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"product_type": "physical",
"sku": "<string>",
"stock_available": true,
"is_featured": false,
"on_offer": false,
"on_subscription": false,
"on_promotion": false,
"attributes": [
{
"id": "<string>",
"name": "<string>",
"attribute_type": "single_select",
"attribute_value": "<string>",
"is_visible": true,
"is_filterable": false
}
],
"images": [
{
"id": 123,
"title": "<string>",
"alternate_text": "<string>",
"sort_order": 123,
"url_tiny": "<string>",
"url_thumbnail": "<string>",
"url_standard": "<string>",
"url_zoom": "<string>",
"other_details": {}
}
],
"pricing": {
"id": 123,
"customer_group_id": "<string>",
"cost_price": 123,
"listing_price": 123,
"selling_price": 123,
"min_order_quantity": 123,
"max_order_quantity": 123,
"incremental_quantity": 123,
"tax_type": "<string>",
"tax_rate": 123
},
"shipping": {
"is_free_shipping": false,
"is_fixed_cost_shipping": false,
"fixed_cost_shipping_price": 123,
"is_shipping_price_include_tax": true,
"availability_description": "<string>",
"ships_internationally": true,
"mid_code": "<string>",
"country_of_origin": "<string>"
},
"tags": [
"<string>"
],
"category_ids": [
"<string>"
],
"reviews_rating_sum": 123,
"reviews_count": 123,
"promotion": [
{
"promotion_type": "<string>",
"starts_at": "<string>",
"expires_at": "<string>",
"details": [
{
"discount_type": "percentage",
"discount_percent": 123,
"discount_fixed_amount": 123,
"customer_group_id": "<string>"
}
]
}
],
"subscription": [
{
"subscription_plan": "<string>",
"billing_interval": 123,
"billing_frequency": "<string>",
"billing_limit": 123,
"billing_trial_days": 123,
"order_interval": 123,
"order_frequency": "<string>",
"order_limit": 123,
"fulfill_separately": true,
"subscription_price": [
{
"customer_group_id": "<string>",
"min_quantity": 123,
"suscription_price": 123
}
],
"quantity": 123
}
]
}
],
"pagination": {
"total_records": 123,
"total_pages": 123,
"previous_page": "<any>",
"limit": 123,
"next_page": "<any>"
}
}
}