Query parameters
-
Default value is
15. -
Default value is
1. -
Filter products by store ID
-
Filter products by currency code
-
Filter by product type
Values are
price,monetary, orvariant. -
Filter by active status
-
Filter by product visibility status
Values are
public,internal, orlink_only. -
Filter by category UUIDs
-
Filter by category slug
-
Filter by store UUIDs
-
Filter products with scheduled activation
-
Filter products with scheduled deactivation
-
Sort products by one or more fields. Use '-' prefix for descending order. Available fields: type, name, price, last_purchased, created_at, updated_at Default: -updated_at
GET
/products
curl \
--request GET 'https://api.gb.enjovia.app/products' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "987e6543-e21b-12d3-a456-426614174000",
"eni": "PROD-2024-001",
"name": "Premium Gift Card",
"type": "monetary",
"is_active": true,
"status": "public",
"currency_code": "usd",
"price": 4999,
"monetary_options": {
"type": "options",
"inputs": {
"min": 1000,
"max": 50000
},
"values": [
{
"price": 2500,
"value": 2500,
"label": "$25"
}
]
},
"validity": {
"type": "period_from_purchase",
"values": {
"days": 0,
"months": 6,
"years": 0
},
"start_date": "2024-01-01",
"end_date": "2024-12-31"
},
"custom_fields": {
"image_urls": [
"https://example.com/product.jpg"
]
},
"variants": [
{
"id": "abc12345-e89b-12d3-a456-426614174000",
"name": "Large Size",
"price": 5999,
"validity": {}
}
],
"addons": [
{
"id": "def45678-e89b-12d3-a456-426614174000",
"eni": "ADDON-001",
"name": "Gift Wrapping",
"price": 500
}
],
"stores": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"subdomain": "acme-shop",
"name": "ACME Store",
"currency": {
"code": "usd"
}
}
],
"categories": [
{
"id": "789abcde-e89b-12d3-a456-426614174000",
"eni": "CAT-001",
"name": "Gift Cards"
}
]
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total": 100
}
}