id: API_DOCUMENTATION title: API DOCUMENTATION
API Documentation
Overviewโ
๐ STACC API Documentation (v1.0)
Base URL: http://localhost:8081/stacc
๐น 1. GET /client-account ๐ Description: Retrieves the collection of client accounts.
๐งพ Parameters:
- createdFrom (string, query) โ Format: php:Y-m-d H:i:s
- createdTo (string, query) โ Format: php:Y-m-d H:i:s
- page (integer, query)
๐ค Response 200: Client account collection response Example Schema:
{
"client": "string",
"gender": "string",
"birthday": "2025-07-28T15:15:40.899Z",
"created": "2025-07-28T15:15:40.899Z",
"preferences": [
"string"
]
}
๐น 2. GET /product ๐ Description: Retrieves the collection of products.
๐งพ Parameters:
- page (integer, query)
๐ค Response 200: Product collection response Example Schema:
{
"code": "string",
"type": "string",
"language": "string",
"name": "string",
"price": 0,
"discountPrice": 0,
"isDiscountedProduct": true,
"description": "string",
"stockCount": 0,
"imageUrl": "string",
"createdAt": "2025-07-28T15:16:06.279Z",
"updatedAt": "2025-07-28T15:16:06.279Z",
"categories": [
{
"category": {
"code": "string",
"level": "string",
"name": "string",
"webStore": "string"
},
"parent": {
"code": "string",
"level": "string",
"name": "string",
"webStore": "string"
},
"root": {
"code": "string",
"level": "string",
"name": "string",
"webStore": "string"
}
}
],
"authors": [
{
"name": "string",
"code": "string"
}
],
"publisher": {
"name": "string",
"code": "string"
},
"webStores": [
"string"
],
"physicalBook": "string"
}
๐น 3. GET /sales-history ๐ Description: Retrieves the collection of sales/orders history.
๐งพ Parameters:
- createdFrom (string, query) โ Format: php:Y-m-d H:i:s
- createdTo (string, query) โ Format: php:Y-m-d H:i:s
- page (integer, query)
๐ค Response 200: Sales history collection response Example Schema:
{
"order": "string",
"client": "string",
"clientType": "string",
"createdAt": "2025-07-28T15:16:34.914Z",
"createdNav": "2025-07-28T15:16:34.914Z",
"sourceType": "string",
"products": [
"string"
],
"city": "string",
"session": "string",
"deliveryMethod": "string",
"shop": "string"
}
๐น 4. GET /session ๐ Description: Retrieves the collection of session actions.
๐งพ Parameters:
- page (integer, query)
๐ค Response 200: Session actions collection response Example Schema:
{
"session": "string",
"webStore": "string",
"product": "string",
"client": "string",
"actionType": "string",
"createdAt": "2025-07-28T15:16:52.056Z"
}
๐น 5. GET /shop ๐ Description: Retrieves the collection of shops.
๐งพ Parameters:
- page (integer, query)
๐ค Response 200: Shop collection response Example Schema:
{
"code": "string",
"name": "string",
"city": "string"
}
โ Schemas Used:
- Category
- ClientAccount
- Product
- SalesHistory
- SessionAction
- Shop
STACC API - Schemas Documentation
This document defines the data schemas used across STACC API endpoints.
Schema: Categoryโ
code: stringlevel: stringname: stringwebStore: string
Schema: ClientAccountโ
client: stringgender: stringbirthday: string (date-time)created: string (date-time)preferences: array of string
Schema: Productโ
code: stringtype: stringlanguage: string (nullable)name: stringprice: numberdiscountPrice: numberisDiscountedProduct: booleandescription: string (nullable)stockCount: integerimageUrl: string (nullable)createdAt: string (date-time)updatedAt: string (date-time)categories: array of objectsauthors: array of objectsname: stringcode: string
publisher: object (nullable)name: stringcode: string
webStores: array of stringphysicalBook: string (nullable)- Physical book code. Will be filled for e-books that have physical format.
Schema: SalesHistoryโ
order: string- Order code
client: string- Client code
clientType: string- Values: PYSIKLIENT, ETTEVOTE
createdAt: string (date-time)- Date and time when the order was received from the ERP.
createdNav: string (date-time)- Date and time of the order creation (may appear later after ERP handling)
sourceType: string- Values: ONLINE or OFFLINE
products: arraycity: stringsession: string (nullable)deliveryMethod: stringshop: string (nullable)
Schema: SessionActionโ
session: stringwebStore: stringproduct: stringclient: string- Client code
actionType: string- Values: VIEW, ADD_TO_WISHLIST, ADD_TO_BASKET
createdAt: string (date-time)
Schema: Shopโ
code: stringname: stringcity: string
๐ Note: This documentation is auto-generated from Swagger running at: http://localhost:8081/stacc/swagger/api-docs