Download OpenAPI specification:Download
Comprehensive API specification for Axiolon Labs E-Commerce Engine. All responses wrap payloads in a standardized success/error envelope.
Registers a new customer or administrator account. Defaults to "customer" role.
| email required | string <email> |
| password required | string |
| role | string Default: "customer" |
{- "email": "user@example.com",
- "password": "string",
- "role": "customer"
}{- "success": true,
- "data": {
- "id": "string",
- "email": "string",
- "role": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}Authenticates user credentials and returns access & refresh tokens.
| email required | string <email> |
| password required | string |
{- "email": "user@example.com",
- "password": "string"
}{- "success": true,
- "data": {
- "access_token": "string",
- "refresh_token": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
}Revokes the provided refresh token.
| refresh_token required | string |
{- "refresh_token": "string"
}{- "success": true,
- "data": {
- "message": "Operation completed successfully."
}
}Obtains a new session (access & refresh token) using a valid, active refresh token.
| refresh_token required | string |
{- "refresh_token": "string"
}{- "success": true,
- "data": {
- "access_token": "string",
- "refresh_token": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
}Initiates password reset flow. Returns reset token directly in response for local/testing.
| email required | string <email> |
{- "email": "user@example.com"
}{- "success": true,
- "data": {
- "message": "string",
- "reset_token": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
}Applies the new password using the generated reset token.
| token required | string |
| new_password required | string |
{- "token": "string",
- "new_password": "string"
}{- "success": true,
- "data": {
- "message": "Operation completed successfully."
}
}Retrieves products catalog with optional filters.
| category_id | string |
| price_min | number |
| price_max | number |
| attributes | string Comma-separated query of size:XL,color:blue |
{- "success": true,
- "data": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}Creates a new product with variants.
| name required | string |
| description | string |
| category_id required | string |
required | Array of objects |
{- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}| id required | string |
| name required | string |
| description | string |
| category_id required | string |
required | Array of objects |
{- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}| name required | string |
| slug | string |
| parent_id | string or null |
{- "name": "string",
- "slug": "string",
- "parent_id": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "parent_id": "string"
}
}| id required | string |
| name required | string |
| slug | string |
| parent_id | string or null |
{- "name": "string",
- "slug": "string",
- "parent_id": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "parent_id": "string"
}
}{- "success": true,
- "data": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}| id required | string |
| imageId required | string |
{- "success": true,
- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "category_id": "string",
- "variants": [
- {
- "id": "string",
- "sku": "string",
- "name": "string",
- "price": 0,
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}
]
}
}| id required | string |
| rating required | integer [ 1 .. 5 ] |
| comment required | string |
{- "rating": 1,
- "comment": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "product_id": "string",
- "user_id": "string",
- "rating": 0,
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}| id required | string |
| reviewId required | string |
{- "success": true,
- "data": {
- "id": "string",
- "product_id": "string",
- "user_id": "string",
- "rating": 0,
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}| variant_id required | string |
| quantity required | integer |
| price | number |
{- "variant_id": "string",
- "quantity": 0,
- "price": 0
}{- "success": true,
- "data": {
- "customer_id": "string",
- "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}
}required | Array of objects (OrderItemRequest) | ||||||
Array
| |||||||
{- "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}{- "success": true,
- "data": {
- "id": "string",
- "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}
}{- "success": true,
- "data": {
- "orders": [
- {
- "id": "string",
- "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "count": 0
}
}{- "success": true,
- "data": {
- "id": "string",
- "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}
}required | object |
required | Array of objects (OrderItemRequest) |
{- "guest_info": {
- "name": "string",
- "email": "user@example.com",
- "contact_number": "string"
}, - "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
]
}{- "success": true,
- "data": {
- "order_id": "string",
- "status": "string",
- "total": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "guest_info": {
- "name": "string",
- "email": "string",
- "contact_number": "string"
}
}
}| variant_id | string |
| location_id | string |
| status | string |
{- "success": true,
- "data": {
- "items": [
- {
- "variant_id": "string",
- "location_id": "string",
- "quantity": 0,
- "low_stock_threshold": 0,
- "allow_backorders": true,
- "backorder_limit": 0,
- "is_low_stock": true
}
]
}
}| variant_id required | string |
| location_id | string Default: "default" |
| quantity required | integer >= 0 |
{- "variant_id": "string",
- "location_id": "default",
- "quantity": 0
}{- "success": true,
- "data": {
- "message": "Operation completed successfully."
}
}| variant_id required | string |
| location_id | string |
| quantity | integer |
| low_stock_threshold | integer |
| allow_backorders | boolean |
| backorder_limit | integer |
{- "variant_id": "string",
- "location_id": "string",
- "quantity": 0,
- "low_stock_threshold": 0,
- "allow_backorders": true,
- "backorder_limit": 0
}{- "success": true,
- "data": {
- "message": "Operation completed successfully."
}
}{- "success": true,
- "data": {
- "orders": [
- {
- "id": "string",
- "customer_id": "string",
- "guest_info": {
- "name": "string",
- "email": "string",
- "contact_number": "string"
}, - "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
], - "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "count": 0
}
}{- "success": true,
- "data": {
- "id": "string",
- "customer_id": "string",
- "guest_info": {
- "name": "string",
- "email": "string",
- "contact_number": "string"
}, - "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
], - "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}| id required | string |
| action required | string |
{- "action": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "customer_id": "string",
- "guest_info": {
- "name": "string",
- "email": "string",
- "contact_number": "string"
}, - "items": [
- {
- "variant_id": "string",
- "quantity": 0,
- "price": 0
}
], - "total": 0,
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}| user_id required | string |
| type required | string |
| message required | string |
{- "user_id": "string",
- "type": "string",
- "message": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "user_id": "string",
- "type": "string",
- "message": "string",
- "sent_at": "2019-08-24T14:15:22Z",
- "status": "string"
}
}