### Megrendelések API Source: https://unas.hu/tudastar/api/index Megrendelések lekérdezése, létrehozása és módosítása. ```APIDOC ## Megrendelések API ### Description Ez az API lehetővé teszi a megrendelések lekérdezését, létrehozását és módosítását. ### Method GET, POST, PUT, DELETE ### Endpoint /api/orders ### Parameters #### Path Parameters Nincs #### Query Parameters - **order_id** (integer) - Optional - A megrendelés azonosítója. #### Request Body (POST/PUT) - **customer_id** (integer) - Required - Az ügyfél azonosítója. - **items** (array) - Required - A megrendelés tételei. - **product_id** (integer) - Required - A termék azonosítója. - **quantity** (integer) - Required - A mennyiség. - **status** (string) - Optional - A megrendelés állapota. ### Request Example (POST) ```json { "customer_id": 123, "items": [ { "product_id": 456, "quantity": 2 } ], "status": "pending" } ``` ### Response #### Success Response (200) - **order_id** (integer) - A megrendelés azonosítója. - **customer_id** (integer) - Az ügyfél azonosítója. - **items** (array) - A megrendelés tételei. - **status** (string) - A megrendelés állapota. - **created_at** (string) - Létrehozás dátuma. #### Response Example (GET) ```json { "order_id": 789, "customer_id": 123, "items": [ { "product_id": 456, "quantity": 2 } ], "status": "processing", "created_at": "2023-10-27T10:00:00Z" } ``` ``` -------------------------------- ### Raktárkészlet API Source: https://unas.hu/tudastar/api/index Raktárkészlet lekérdezése és módosítása. ```APIDOC ## Raktárkészlet API ### Description Ez az API lehetővé teszi a termékek raktárkészletének lekérdezését és módosítását. ### Method GET, POST, PUT ### Endpoint /api/stock ### Parameters #### Path Parameters Nincs #### Query Parameters - **product_id** (integer) - Required - A termék azonosítója. #### Request Body (POST/PUT) - **quantity** (integer) - Required - A módosítandó mennyiség. ### Request Example (PUT) ```json { "quantity": 100 } ``` ### Response #### Success Response (200) - **product_id** (integer) - A termék azonosítója. - **stock_quantity** (integer) - A jelenlegi raktárkészlet. #### Response Example (GET) ```json { "product_id": 101, "stock_quantity": 95 } ``` ``` -------------------------------- ### Azonosítás API Source: https://unas.hu/tudastar/api/index Az API azonosítási és hitelesítési műveletei, beleértve a bejelentkezési kéréseket és válaszokat. ```APIDOC ## Azonosítás API ### Description Az API azonosítási és hitelesítési műveletei, beleértve a bejelentkezési kéréseket és válaszokat. ### Method GET/POST ### Endpoint /api/auth ### Parameters #### Path Parameters Nincs #### Query Parameters Nincs #### Request Body - **username** (string) - Required - A felhasználónév. - **password** (string) - Required - A jelszó. ### Request Example ```json { "username": "felhasznalonev", "password": "jelszo" } ``` ### Response #### Success Response (200) - **token** (string) - A sikeres azonosítást követően kapott token. #### Response Example ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." } ``` ``` -------------------------------- ### Termékek API Source: https://unas.hu/tudastar/api/index Termékek lekérdezése, létrehozása és módosítása. ```APIDOC ## Termékek API ### Description Ez az API lehetővé teszi a termékek lekérdezését, létrehozását és módosítását, valamint termékadatbázis-lekérdezéseket. ### Method GET, POST, PUT, DELETE ### Endpoint /api/products ### Parameters #### Path Parameters Nincs #### Query Parameters - **product_id** (integer) - Optional - A termék azonosítója. #### Request Body (POST/PUT) - **name** (string) - Required - A termék neve. - **description** (string) - Optional - A termék leírása. - **price** (number) - Required - A termék ára. ### Request Example (POST) ```json { "name": "Példa termék", "description": "Ez egy teszt termék.", "price": 19.99 } ``` ### Response #### Success Response (200) - **product_id** (integer) - A termék azonosítója. - **name** (string) - A termék neve. - **description** (string) - A termék leírása. - **price** (number) - A termék ára. #### Response Example (GET) ```json { "product_id": 101, "name": "Példa termék", "description": "Ez egy teszt termék.", "price": 19.99 } ``` ``` -------------------------------- ### Ügyfelek API Source: https://unas.hu/tudastar/api/index Ügyfelek lekérdezése, létrehozása, módosítása és ellenőrzése. ```APIDOC ## Ügyfelek API ### Description Ez az API lehetővé teszi az ügyfelek lekérdezését, létrehozását, módosítását és ellenőrzését. ### Method GET, POST, PUT, DELETE ### Endpoint /api/customers ### Parameters #### Path Parameters Nincs #### Query Parameters - **customer_id** (integer) - Optional - Az ügyfél azonosítója. #### Request Body (POST/PUT) - **name** (string) - Required - Az ügyfél neve. - **email** (string) - Required - Az ügyfél e-mail címe. - **phone** (string) - Optional - Az ügyfél telefonszáma. ### Request Example (POST) ```json { "name": "Teszt Ügyfél", "email": "teszt@pelda.com", "phone": "+36123456789" } ``` ### Response #### Success Response (200) - **customer_id** (integer) - Az ügyfél azonosítója. - **name** (string) - Az ügyfél neve. - **email** (string) - Az ügyfél e-mail címe. - **phone** (string) - Az ügyfél telefonszáma. #### Response Example (GET) ```json { "customer_id": 202, "name": "Teszt Ügyfél", "email": "teszt@pelda.com", "phone": "+36123456789" } ``` ``` -------------------------------- ### UNAS Shop API - General Usage Source: https://unas.hu/tudastar/api/index The UNAS Shop API is accessible at https://api.unas.eu/shop/. All functions are accessed via the POST method. The API supports TLS 1.2 and TLS 1.3 protocols. Specific function endpoints are appended to the base URL (e.g., https://api.unas.eu/shop/setProduct). Successful calls return a 200 HTTP status code. General errors return a 400 status code with an node in the XML response. ```APIDOC ## UNAS Shop API ### Description This API allows for the integration of UNAS webshops with external systems. It supports data retrieval, modification, creation, and deletion using HTTP POST requests with XML payloads. ### Method POST ### Endpoint https://api.unas.eu/shop/[function] ### Parameters #### Request Body - **XML Payload**: Required - The request must be formatted as an XML document containing the specific data and function to be executed. ### Request Example ```xml 123 Example Product 99.99 ``` ### Response #### Success Response (200) - **XML Payload**: Returns an XML document confirming the operation or containing requested data. #### Response Example ```xml success Product updated successfully ``` #### Error Response (400) - **XML Payload**: Returns an XML document with a single node detailing the error. #### Error Response Example ```xml INVALID_DATA The provided product data is invalid. ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.