=============== LIBRARY RULES =============== From library maintainers: - Sentos API çağrıları için base URL: https://firma-adi.sentos.com.tr/api - Kimlik doğrulama Basic Auth ile yapılır (Sentos panel > Hesabım) - Tüm isteklerde Content-Type: application/json header'ı kullanılır - Rate limit: GET 2/dk, POST 12/dk - Endpoint detayları ve örnekler için docs/API.md dosyasına bak ### Get Categories Example Response Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Example JSON response for retrieving a list of categories. It shows nested sub-categories. ```json [ { "id": 1, "name": "telefon", "parent_id": 4, "sub_categories": [] }, { "id": 2, "name": "laptop", "parent_id": 4, "sub_categories": [ { "id": 286, "parent_id": 285, "name": "Example Category 2", "sub_categories": [ { "id": 287, "parent_id": 286, "name": "Example Category 3", "sub_categories": [] } ] } ] } ] ``` -------------------------------- ### Example Successful Response (200) Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md This is an example of a successful API response, detailing order information, customer details, and product specifics. It includes pagination information such as page number, size, total elements, and total pages. ```json [ { "page": 2, "size": 25, "total_elements": 51, "total_pages": 3, "data": [ { "id": 63343, "claim_id": "53a0c017-0138-4c8f-8bed-13732c161eff", "source": "Trendyol", "shop_id": 1, "shop": "TrendYol Magaza", "order_id": 1470250, "order_number": "10796642077", "order_date": "2025-12-25 16:20:19", "customer_name": "Alp Yılmaz", "customer_phone": null, "customer_mail": null, "claim_date": "2025-01-03 10:13:50", "total_amount": "807.00", "refund_amount": "807.00", "currency": "TL", "is_bnpl": false, "refund_date": "2025-01-03 10:13:50", "created_date": "2025-01-03 10:19:04", "details": [ { "id": 66330, "detail_id": "1f8053b3-fb90-4bd1-801a-e7775d666cf4", "item_status": "Accepted", "claim_number": "", "platform_type": "", "locale_status": "Talep Oluşturulan", "locale_type": "İade", "customer_reason": "Kusurlu ürün gönderildi", "customer_note": "PAKETİ AÇTIM VE PARÇANIN KIRIK OLDUĞUNU GÖRDÜM BU YÜZDEN İADE EDİYORUM", "admin_reason": "Kusurlu ürün gönderildi", "admin_note": "", "merchant_note": "", "documents": null, "auto_approve": false, "auto_approve_date": "0000-00-00 00:00:00", "products": [ { "id": 64153, "line_item_id": "4967289773", "name": "Elektrikli Ocak", "platform_sku": "3003TU30STR57", "platform_barcode": "8754221102027", "platform_color": "Siyah", "platform_size": "Tek Ebat", "vat_rate": 20, "matched_product": [ { "id": 1188, "category_id": "70", "sku": "3003TU30STR57", "barcode": "8754221102027", "name": "Elektrikli Hotplate Siyah Ocak", "brand": "Fly", "model": {}, "color": "", "quantity": 1 } ] } ] } ], "shipping": [ { "id": 52421, "package_number": "3488178454", "cargo_company": "Aras Kargo", "delivery_code": "", "tracking_number": "7260029147052078", "tracking_url": "" } ] } ] } ] ``` -------------------------------- ### List Warehouses Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of all warehouses. Example response provided. ```json [ { "id": 1, "name": "MERKEZ" }, { "id": 7, "name": "TRENDALIN" } ] ``` -------------------------------- ### Get Product by ID Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a specific product by its unique identifier. ```APIDOC ## GET /products/{id} ### Description Retrieves a specific product by its unique identifier. ### Method GET ### Endpoint /products/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the product. ``` -------------------------------- ### List Sales Channels Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of all sales channels. Example response shows the structure of a sales channel object. ```json [ { "id": 1, "name": "Instagram", "url": "instagram.com", "payment_method": "Havale", "order_prefix": "INS-", "note": "instagram satış kanalı" }, { "id": 2, "name": "POS", "url": "sentos.com.tr", "payment_method": "Nakit", "order_prefix": "POS", "note": "perakende satış kanalı" } ] ``` -------------------------------- ### Get Category by ID Example Response Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Example JSON response for retrieving a single category by its ID. It includes parent ID and sub-category information. ```json { "id": 1, "name": "telefon", "parent_id": 0, "sub_categories": [] } ``` -------------------------------- ### List Temporary Products Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a paginated list of temporary products from the ERP system. Example response provided. ```json { "page": 1, "size": 25, "total_elements": 1, "total_pages": 1, "data": [ { "id": 2, "erp_code": "test2", "erp_name": "Test ürün 11", "erp_stock": 170 } ] } ``` -------------------------------- ### List Matched Products Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Lists SKU and product name information for matched products in the ERP system. Example response provided. ```json { "data": [ { "sku": "1354", "erp_code": "132", "product_name": "Penye pijama takımı %100 pamuk yeşil kurbağa desen" }, { "sku": "1453", "erp_code": "132", "product_name": "Penye pijama takımı %100 pamuk yeşil kurbağa desen" } ] } ``` -------------------------------- ### GET /platforms Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of active platforms. This endpoint is used to fetch all platforms that are currently active in the panel. ```APIDOC ## GET /platforms ### Description Retrieves a list of active platforms. This endpoint is used to fetch all platforms that are currently active in the panel. ### Method GET ### Endpoint /platforms ``` -------------------------------- ### Add Temporary Product Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Adds a product to the temporary product list in the ERP system. Stocks must be up-to-date. Example response provided. ```json { "data": { "id": 11, "erp_code": "test-", "erp_name": "Test ürün 11", "erp_stock": 12 } } ``` -------------------------------- ### GET /sales-channels Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of sales channels. This endpoint returns details for all configured sales channels. ```APIDOC ## GET /sales-channels ### Description Retrieves a list of sales channels. This endpoint returns details for all configured sales channels. ### Method GET ### Endpoint /sales-channels ### Response #### Success Response (200) - **id** (integer) - Description - **name** (string) - Description - **url** (string) - Description - **payment_method** (string) - Description - **order_prefix** (string) - Description - **note** (string) - Description #### Response Example ```json [ { "id": 1, "name": "Instagram", "url": "instagram.com", "payment_method": "Havale", "order_prefix": "INS-", "note": "instagram satış kanalı" }, { "id": 2, "name": "POS", "url": "sentos.com.tr", "payment_method": "Nakit", "order_prefix": "POS", "note": "perakende satış kanalı" } ] ``` ``` -------------------------------- ### Request Body Example Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md This JSON object specifies the status and types for a request. Use this to filter results based on these criteria. ```json { "status": [ 1, 2 ], "types": [ 3 ] } ``` -------------------------------- ### GET /retails Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of retail sales. This endpoint supports sorting by various fields and direction options. ```APIDOC ## GET /retails ### Description Retrieves a list of retail sales. This endpoint supports sorting by various fields and direction options. ### Method GET ### Endpoint /retails ### Parameters #### Query Parameters - **size** (integer) - Optional - The number of items to return per page. - **page** (integer) - Optional - The page number to retrieve. - **sort** (string) - Optional - The field to sort by (e.g., id, code, sale_time, total_amount). - **dir** (string) - Optional - The direction of sorting (asc or desc). ``` -------------------------------- ### Get Warehouse by ID Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a specific warehouse by its unique identifier. ```APIDOC ## GET /warehouses/{id} ### Description Retrieves a specific warehouse by its unique identifier. ### Method GET ### Endpoint /warehouses/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the warehouse. ``` -------------------------------- ### GET /platforms/product/{id} Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves platforms associated with a specific product. This endpoint lists platforms integrated with a given product ID and also returns product variant platform information. ```APIDOC ## GET /platforms/product/{id} ### Description Retrieves platforms associated with a specific product. This endpoint lists platforms integrated with a given product ID and also returns product variant platform information. ### Method GET ### Endpoint /platforms/product/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the product. ``` -------------------------------- ### GET /categories Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of all categories. This endpoint allows fetching category data, including nested sub-categories. ```APIDOC ## GET /categories ### Description Retrieves a list of all categories. This endpoint allows fetching category data, including nested sub-categories. ### Method GET ### Endpoint /categories ### Response #### Success Response (200) - **id** (integer) - Description - **name** (string) - Description - **parent_id** (integer) - Description - **sub_categories** (array) - Description #### Response Example ```json [ { "id": 1, "name": "telefon", "parent_id": 4, "sub_categories": [] }, { "id": 2, "name": "laptop", "parent_id": 4, "sub_categories": [ { "id": 286, "parent_id": 285, "name": "Example Category 2", "sub_categories": [ { "id": 287, "parent_id": 286, "name": "Example Category 3", "sub_categories": [] } ] } ] } ] ``` ``` -------------------------------- ### Update Sales Channel Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Updates an existing sales channel. Only the 'name' field is shown as an example for update, but other fields might be updatable. ```json { "name": "Selçuk Mağaza" } ``` -------------------------------- ### GET /orders Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of orders. This endpoint allows filtering orders by various criteria such as status, dates, and IDs. ```APIDOC ## GET /orders ### Description Retrieves a list of orders. This endpoint allows filtering orders by various criteria such as status, dates, and IDs. ### Method GET ### Endpoint /orders ### Parameters #### Query Parameters - **size** (integer) - Optional - Number of orders per page. - **page** (integer) - Optional - Page number. - **status** (integer) - Optional - Order status code. - **status_ids** (array) - Optional - Array of order status codes. - **start_date** (datetime or date) - Optional - Start date for filtering. - **end_date** (datetime or date) - Optional - End date for filtering. - **ship_due_start_date** (datetime or date) - Optional - Shipping due start date. - **ship_due_end_date** (datetime or date) - Optional - Shipping due end date. - **created_start_date** (datetime or date) - Optional - Creation start date. - **created_end_date** (datetime or date) - Optional - Creation end date. - **updated_start_date** (datetime or date) - Optional - Update start date. - **updated_end_date** (datetime or date) - Optional - Update end date. - **order_id** (string) - Optional - Order ID. - **order_code** (string) - Optional - Order code. - **orderby_field** (string) - Optional - Field to order by. - **orderby_direction** (string) - Optional - Direction of ordering (ASC/DESC). - **erp_transfer** (string) - Optional - ERP transfer status. - **erp_check_changed** (string) - Optional - ERP check changed status. - **is_updated** (boolean) - Optional - Filter by updated status. - **has_invoice** (string) - Optional - Filter by invoice status. ### Sipariş Durumu Tanımları API, aşağıdaki durum kodları ve açıklamaları ile sipariş durumlarını(status) tanımlar: * 1: Onay Bekliyor * 2: Onaylandı * 3: Tedarik Sürecinde * 4: Hazırlanıyor * 5: Kargoya Verildi * 6: İptal Edildi * 99: Teslim Edildi ``` -------------------------------- ### GET /orders/{id} Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a specific order by its ID. This endpoint allows fetching details of a single order. ```APIDOC ## GET /orders/{id} ### Description Retrieves a specific order by its ID. This endpoint allows fetching details of a single order. ### Method GET ### Endpoint /orders/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the order to retrieve. ### Sipariş Durumu Tanımları API, aşağıdaki durum kodları ve açıklamaları ile sipariş durumlarını tanımlar: * Durum Kodu 1: Onay Bekliyor * Durum Kodu 2: Onaylandı * Durum Kodu 3: Tedarik Sürecinde * Durum Kodu 4: Hazırlanıyor * Durum Kodu 5: Kargoya Verildi * Durum Kodu 6: İptal Edildi * Durum Kodu 99: Teslim Edildi ``` -------------------------------- ### GET /categories/{id} Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a specific category by its ID. This endpoint allows fetching details of a single category. ```APIDOC ## GET /categories/{id} ### Description Retrieves a specific category by its ID. This endpoint allows fetching details of a single category. ### Method GET ### Endpoint /categories/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the category to retrieve. ### Response #### Success Response (200) - **id** (integer) - Description - **name** (string) - Description - **parent_id** (integer) - Description - **sub_categories** (array) - Description #### Response Example ```json { "id": 1, "name": "telefon", "parent_id": 0, "sub_categories": [] } ``` ``` -------------------------------- ### GET /retails/{id} Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves details for a specific retail sale. This endpoint allows fetching a single sale record by its ID. ```APIDOC ## GET /retails/{id} ### Description Retrieves details for a specific retail sale. This endpoint allows fetching a single sale record by its ID. ### Method GET ### Endpoint /retails/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the retail sale. ``` -------------------------------- ### GET /claims Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of claims. This endpoint allows filtering and sorting of claim requests based on various statuses and types. ```APIDOC ## GET /claims ### Description Retrieves a list of claims. This endpoint allows filtering and sorting of claim requests based on various statuses and types. ### Method GET ### Endpoint /claims ### Parameters #### Query Parameters - **claim_status** (integer) - Optional - Filters claims by status (1: Talep Oluşturulan, 2: Aksiyon Bekleyen, 3: Onaylanan, 4: Reddedilen, 5: İptal Edilen, 6: İhtilaf, 7: Servis/Analiz). - **claim_type** (integer) - Optional - Filters claims by type (1: İade, 2: Değişim, 3: Fatura Eksik, 4: Garanti Belgesi Eksik, 5: Parça/Ürün Eksik, 6: Teslim Edilemeyen Gönderi, 7: Hasarlı/Kusurlu Ürün Gönderildi, 8: Yanlış Ürün Gönderildi, 9: Fazla Ürün Gönderildi, 10: İptal). - **platform** (string) - Optional - Filters claims by platform (TY, HB, N11, CS, PZRM, BYMN, IDFX, BYNR, LCW, İDEA, TSFT, HIPO, IKAS, SPFY, TICI). - **orderby** (string) - Optional - Specifies the field to order by (id, created_date, claim_date, refund_date). ``` -------------------------------- ### Get Claims by ID Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of claims based on the provided ID. This endpoint allows fetching specific claim details. ```APIDOC ## GET /claims/{id} ### Description Retrieves a list of claims based on the provided ID. This endpoint allows fetching specific claim details. ### Method GET ### Endpoint /claims/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the claim to retrieve. ### Response #### Success Response (200) - **id** (integer) - The unique identifier for the claim. - **claim_id** (string) - The unique identifier for the claim. - **source** (string) - The source of the claim (e.g., Trendyol). - **shop_id** (integer) - The ID of the shop associated with the claim. - **shop** (string) - The name of the shop. - **order_id** (integer) - The ID of the order associated with the claim. - **order_number** (string) - The order number. - **order_date** (string) - The date the order was placed. - **customer_name** (string) - The name of the customer. - **customer_phone** (string) - The phone number of the customer. - **customer_mail** (string) - The email address of the customer. - **claim_date** (string) - The date the claim was made. - **total_amount** (string) - The total amount of the claim. - **refund_amount** (string) - The refunded amount. - **currency** (string) - The currency of the amounts. - **is_bnpl** (boolean) - Indicates if Buy Now Pay Later was used. - **refund_date** (string) - The date the refund was processed. - **created_date** (string) - The date the claim record was created. - **details** (array) - An array of claim detail objects. - **shipping** (array) - An array of shipping information objects. ### Response Example (200) ```json { "id": 63343, "claim_id": "53a0c017-0138-4c8f-8bed-13732c161eff", "source": "Trendyol", "shop_id": 1, "shop": "TrendYol Magaza", "order_id": 1470250, "order_number": "10796642077", "order_date": "2025-12-25 16:20:19", "customer_name": "Alp Yılmaz", "customer_phone": null, "customer_mail": null, "claim_date": "2025-01-03 10:13:50", "total_amount": "807.00", "refund_amount": "807.00", "currency": "TL", "is_bnpl": false, "refund_date": "2025-01-03 10:13:50", "created_date": "2025-01-03 10:19:04", "details": [ { "id": 66330, "detail_id": "1f8053b3-fb90-4bd1-801a-e7775d666cf4", "item_status": "Accepted", "claim_number": "", "platform_type": "", "locale_status": "Talep Oluşturulan", "locale_type": "İade", "customer_reason": "Kusurlu ürün gönderildi", "customer_note": "PAKETİ AÇTIM VE PARÇANIN KIRIK OLDUĞUNU GÖRDÜM BU YÜZDEN İADE EDİYORUM", "admin_reason": "Kusurlu ürün gönderildi", "admin_note": "", "merchant_note": "", "documents": [ { "ImageUrl": "https://cdn.dsmcdn.com/claim/2025/12/25/6fa87f3b-9dc9-4b5c-b05d-a1ebd00c8632.jpeg", "ReportedBy": "Customer" } ], "auto_approve": false, "auto_approve_date": "0000-00-00 00:00:00", "products": [ { "id": 64153, "line_item_id": "4967289773", "name": "Elektrikli Ocak", "platform_sku": "3003TU30STR57", "platform_barcode": "8754221102027", "platform_color": "Siyah", "platform_size": "Tek Ebat", "vat_rate": 20, "matched_product": [ { "id": 1188, "category_id": "70", "sku": "3003TU30STR57", "barcode": "8754221102027", "name": "Elektrikli Hotplate Siyah Ocak", "brand": "Fly", "model": {}, "color": "", "quantity": 1 } ] } ] } ], "shipping": [ { "id": 52421, "package_number": "3488178454", "cargo_company": "Aras Kargo", "delivery_code": "", "tracking_number": "7260029147052078", "tracking_url": "" } ] } ``` ``` -------------------------------- ### Create Product Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a new product in the system. ```APIDOC ## POST /products ### Description Creates a new product in the system. ### Method POST ### Endpoint /products ### Request Body - `application/json` ``` -------------------------------- ### List Orders with Context7 Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/QUICKSTART.md This command shows how to use Context7 to interact with the Sentos API, specifically to list orders. This assumes the repository has been added to Context7. ```bash use context7 sentos-api ile sipariş listeleme endpoint'ini göster ``` -------------------------------- ### Add Library via OpenAPI URL Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/README.md Use this URL to directly add the Sentos API documentation to Context7. Ensure the URL points to the correct JSON specification file. ```text https://api.sentos.com.tr/apidir/docs/sentos.json ``` -------------------------------- ### List Matched ERP Products Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Lists matched ERP products, providing their SKU and name. ```APIDOC ## GET /erp/matches ### Description Lists matched ERP products, providing their SKU and name. ### Method GET ### Endpoint /erp/matches ### Parameters #### Query Parameters - **erp_code** (string) - Optional - Filter by ERP code. ### Response #### Success Response (200) - **data** (array) - An array of matched product objects, each containing: - **sku** (string) - The product SKU. - **erp_code** (string) - The ERP code. - **product_name** (string) - The name of the product. ``` -------------------------------- ### List All Products Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of all products with optional filtering and pagination. ```APIDOC ## GET /products ### Description Retrieves a list of all products with optional filtering and pagination. ### Method GET ### Endpoint /products ### Parameters #### Query Parameters - **size** (integer) - Optional - The number of items to return per page. - **page** (integer) - Optional - The page number to retrieve. - **sku** (string) - Optional - Filter by product SKU. - **barcode** (string) - Optional - Filter by product barcode. - **orderby_id** (string) - Optional - Specifies the order of results by product ID. ``` -------------------------------- ### Create Sales Channel Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a new sales channel. The request body must include details like name, URL, payment method, order prefix, and a note. ```json { "name": "erp", "url": "erp", "payment_method": "online", "order_prefix": "erp", "note": "erp satış kanalı" } ``` -------------------------------- ### List Temporary Products Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of temporary products. ```APIDOC ## GET /erp/temp-products ### Description Retrieves a list of temporary products. ### Method GET ### Endpoint /erp/temp-products ### Response #### Success Response (200) - **page** (integer) - The current page number. - **size** (integer) - The number of items per page. - **total_elements** (integer) - The total number of elements. - **total_pages** (integer) - The total number of pages. - **data** (array) - An array of temporary product objects, each containing: - **id** (integer) - The temporary product ID. - **erp_code** (string) - The ERP code for the product. - **erp_name** (string) - The ERP name for the product. - **erp_stock** (integer) - The ERP stock quantity. ``` -------------------------------- ### Add Temporary Product Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Adds a product to the temporary product list. Stock levels must be up-to-date. ```APIDOC ## POST /erp/temp-products ### Description Adds a product to the temporary product list. Stock levels must be up-to-date. ### Method POST ### Endpoint /erp/temp-products ### Request Body - `application/json` ### Response #### Success Response (200) - **data** (object) - The created temporary product object, containing: - **id** (integer) - The temporary product ID. - **erp_code** (string) - The ERP code for the product. - **erp_name** (string) - The ERP name for the product. - **erp_stock** (integer) - The ERP stock quantity. ``` -------------------------------- ### Create Invoice from File Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates an invoice from a local file for a given order ID. ```APIDOC ## POST /orders/invoice-file/{id} ### Description Creates an invoice from a local file for a given order ID. ### Method POST ### Endpoint /orders/invoice-file/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the order to which the invoice will be attached. ### Request Body `application/json` ``` -------------------------------- ### Add ERP Settings Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Use this endpoint to add ERP settings. The request body should be in JSON format. ```json { "erp_platform": "netsis", "erp_version": "13.5" } ``` -------------------------------- ### Update ERP Order Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Updates an ERP order. The order ID must be provided in the URL. Example request body provided. ```json { "erp_transfer": "yes", "erp_number": "1432131", "erp_check_changed": "yes" } ``` -------------------------------- ### POST /erp/erp-settings Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Adds ERP settings. This endpoint allows configuration of ERP platform and version. ```APIDOC ## POST /erp/erp-settings ### Description Adds ERP settings. This endpoint allows configuration of ERP platform and version. ### Method POST ### Endpoint /erp/erp-settings ### Request Body `application/json` ### Request Example ```json { "erp_platform": "netsis", "erp_version": "13.5" } ``` ### Response #### Success Response (200) - **data** (object) - Contains the ERP settings that were added. - **erp_platform** (string) - The ERP platform configured. - **erp_version** (string) - The version of the ERP platform. ### Response Example ```json { "data": { "erp_platform": "netsis", "erp_version": "13.5" } } ``` ``` -------------------------------- ### Authenticate and List Categories with cURL Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/QUICKSTART.md Use this cURL command to authenticate with the Sentos API using Basic Auth and retrieve a list of categories. Ensure you replace 'API_KULLANICI' and 'API_SIFRE' with your actual credentials. ```bash curl -u "API_KULLANICI:API_SIFRE" \ -H "Content-Type: application/json" \ "https://firma-adi.sentos.com.tr/api/categories" ``` -------------------------------- ### Upload Product Image Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Uploads an image for a specific product. ```APIDOC ## POST /products/{id}/upload-image ### Description Uploads an image for a specific product. ### Method POST ### Endpoint /products/{id}/upload-image ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the product. ### Request Body - `application/json` ``` -------------------------------- ### Create PDF Invoice (Base64) Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a PDF invoice using Base64 encoding. Requires invoice type, number, and the Base64 encoded PDF data. ```APIDOC ## POST /orders/invoice-binary/{id} ### Description Creates a PDF invoice using Base64 encoding. Requires invoice type, number, and the Base64 encoded PDF data. ### Method POST ### Endpoint /orders/invoice-binary/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the order to which the invoice will be attached. #### Request Body - **invoice_type** (string) - Required - Must be 'EARSIV' or 'EFATURA'. - **invoice_number** (string) - Required - The invoice number. - **invoice_date** (string) - Optional - Format: Y-m-d H:i:s. - **base64** (string) - Required - The Base64 encoded PDF file content. **Note:** Only PDF files are supported. ``` -------------------------------- ### Delete Temporary Product Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Deletes a temporary product from the ERP system. The ERP code must be provided in the request body. Example response provided. ```json { "message": "Record is delete." } ``` -------------------------------- ### Get Claim by ID Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a specific claim's details using its unique ID. This endpoint is used to fetch comprehensive information about a return request. ```json { "id": 63343, "claim_id": "53a0c017-0138-4c8f-8bed-13732c161eff", "source": "Trendyol", "shop_id": 1, "shop": "TrendYol Magaza", "order_id": 1470250, "order_number": "10796642077", "order_date": "2025-12-25 16:20:19", "customer_name": "Alp Yılmaz", "customer_phone": null, "customer_mail": null, "claim_date": "2025-01-03 10:13:50", "total_amount": "807.00", "refund_amount": "807.00", "currency": "TL", "is_bnpl": false, "refund_date": "2025-01-03 10:13:50", "created_date": "2025-01-03 10:19:04", "details": [ { "id": 66330, "detail_id": "1f8053b3-fb90-4bd1-801a-e7775d666cf4", "item_status": "Accepted", "claim_number": "", "platform_type": "", "locale_status": "Talep Oluşturulan", "locale_type": "İade", "customer_reason": "Kusurlu ürün gönderildi", "customer_note": "PAKETİ AÇTIM VE PARÇANIN KIRIK OLDUĞUNU GÖRDÜM BU YÜZDEN İADE EDİYORUM", "admin_reason": "Kusurlu ürün gönderildi", "admin_note": "", "merchant_note": "", "documents": [ { "ImageUrl": "https://cdn.dsmcdn.com/claim/2025/12/25/6fa87f3b-9dc9-4b5c-b05d-a1ebd00c8632.jpeg", "ReportedBy": "Customer" } ], "auto_approve": false, "auto_approve_date": "0000-00-00 00:00:00", "products": [ { "id": 64153, "line_item_id": "4967289773", "name": "Elektrikli Ocak", "platform_sku": "3003TU30STR57", "platform_barcode": "8754221102027", "platform_color": "Siyah", "platform_size": "Tek Ebat", "vat_rate": 20, "matched_product": [ { "id": 1188, "category_id": "70", "sku": "3003TU30STR57", "barcode": "8754221102027", "name": "Elektrikli Hotplate Siyah Ocak", "brand": "Fly", "model": {}, "color": "", "quantity": 1 } ] } ] } ], "shipping": [ { "id": 52421, "package_number": "3488178454", "cargo_company": "Aras Kargo", "delivery_code": "", "tracking_number": "7260029147052078", "tracking_url": "" } ] } ``` -------------------------------- ### POST /orders Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a new order. This endpoint allows submitting new order information to the system. ```APIDOC ## POST /orders ### Description Creates a new order. This endpoint allows submitting new order information to the system. ### Method POST ### Endpoint /orders ### Request Body `application/json` ``` -------------------------------- ### PUT /platforms/product/{id} Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Updates product integrations with platforms. This endpoint allows for the modification of the integration status for a product's associated platforms. ```APIDOC ## PUT /platforms/product/{id} ### Description Updates product integrations with platforms. This endpoint allows for the modification of the integration status for a product's associated platforms. ### Method PUT ### Endpoint /platforms/product/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the product. ### Request Body - `application/json` ``` -------------------------------- ### Add Order with cURL Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/QUICKSTART.md This cURL command demonstrates how to add a new order to the Sentos API using a POST request. It includes sample order lines and customer information. Refer to API.md for the full request body schema. ```bash curl -u "API_KULLANICI:API_SIFRE" \ -X POST \ -H "Content-Type: application/json" \ "https://firma-adi.sentos.com.tr/api/orders" \ -d '{ "lines": [ { "sku": "bc-075", "quantity": 1, "price": 89.9 } ], "customer": { "name": "Ahmet Yılmaz", "email": "ahmet@ornek.com", "phone": "05551234567" } }' ``` -------------------------------- ### POST /sales-channels Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a new sales channel. This endpoint allows for the creation of a new sales channel with specified details. ```APIDOC ## POST /sales-channels ### Description Creates a new sales channel. This endpoint allows for the creation of a new sales channel with specified details. ### Method POST ### Endpoint /sales-channels ### Request Body - `application/json` - **name** (string) - Required - The name of the sales channel. - **url** (string) - Required - The URL of the sales channel. - **payment_method** (string) - Required - The payment method for the sales channel. - **order_prefix** (string) - Required - The order prefix for the sales channel. - **note** (string) - Optional - A note for the sales channel. ### Request Example ```json { "name": "erp", "url": "erp", "payment_method": "online", "order_prefix": "erp", "note": "erp satış kanalı" } ``` ### Response #### Success Response (200) - **errors** (array) - Description - **saleschannel** (object) - Description #### Response Example ```json { "errors": [], "saleschannel": { "id": 3, "name": "erp", "url": "erp", "payment_method": "online", "order_prefix": "ERP", "note": "erp satış kanalı" } } ``` ``` -------------------------------- ### List Categories Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/QUICKSTART.md This endpoint allows you to list all available categories. It requires Basic Authentication. ```APIDOC ## GET /categories ### Description Retrieves a list of all categories available in the system. ### Method GET ### Endpoint /categories ### Parameters #### Query Parameters None #### Request Body None ### Request Example ```bash curl -u "API_KULLANICI:API_SIFRE" \ -H "Content-Type: application/json" \ "https://firma-adi.sentos.com.tr/api/categories" ``` ### Response #### Success Response (200) - **id** (integer) - The unique identifier for the category. - **name** (string) - The name of the category. - **parent_id** (integer) - The ID of the parent category, if any. - **sub_categories** (array) - A list of sub-categories. #### Response Example ```json [ { "id": 1, "name": "telefon", "parent_id": 4, "sub_categories": [] } ] ``` ``` -------------------------------- ### Update Documentation Script Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/README.md Run this Python script to update the documentation when the Swagger UI specification changes. This script extracts updated documentation from the source specification. ```bash python scripts/extract_docs.py ``` -------------------------------- ### Add Order Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/QUICKSTART.md This endpoint allows you to add a new order to the system. It requires Basic Authentication and a JSON request body specifying order details. ```APIDOC ## POST /orders ### Description Adds a new order to the system with specified lines and customer information. ### Method POST ### Endpoint /orders ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **lines** (array) - Required - An array of order line items. - **sku** (string) - Required - The Stock Keeping Unit for the item. - **quantity** (integer) - Required - The quantity of the item. - **price** (float) - Required - The price of the item. - **customer** (object) - Required - Customer information. - **name** (string) - Required - The name of the customer. - **email** (string) - Required - The email address of the customer. - **phone** (string) - Required - The phone number of the customer. ### Request Example ```bash curl -u "API_KULLANICI:API_SIFRE" \ -X POST \ -H "Content-Type: application/json" \ "https://firma-adi.sentos.com.tr/api/orders" \ -d { "lines": [ { "sku": "bc-075", "quantity": 1, "price": 89.9 } ], "customer": { "name": "Ahmet Yılmaz", "email": "ahmet@ornek.com", "phone": "05551234567" } } ``` ### Response #### Success Response (200) (Response details not provided in source, refer to API.md for schema) #### Response Example (Example response not provided in source) ``` -------------------------------- ### PUT /erp/products/price-stock Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Updates product prices and stock levels using the ERP code. ```APIDOC ## PUT /erp/products/price-stock ### Description Updates product prices and stock levels using the ERP code. ### Method PUT ### Endpoint /erp/products/price-stock ### Request Body `application/json` ``` -------------------------------- ### Create Invoice Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates an invoice for a given order ID. ```APIDOC ## POST /orders/invoice/{id} ### Description Creates an invoice for a given order ID. ### Method POST ### Endpoint /orders/invoice/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the order for which to create an invoice. ### Request Body `application/json` ``` -------------------------------- ### List Warehouses Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Retrieves a list of all warehouses. ```APIDOC ## GET /warehouses ### Description Retrieves a list of all warehouses. ### Method GET ### Endpoint /warehouses ### Response #### Success Response (200) - **id** (integer) - Description of the warehouse ID. - **name** (string) - Description of the warehouse name. ``` -------------------------------- ### POST /categories Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Creates a new category. This endpoint allows adding new categories to the system. ```APIDOC ## POST /categories ### Description Creates a new category. This endpoint allows adding new categories to the system. ### Method POST ### Endpoint /categories ### Request Body `application/json` ``` -------------------------------- ### Update Product Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Updates an existing product's information. The product ID is mandatory, while other fields are optional. ```APIDOC ## PUT /products/{id} ### Description Updates an existing product's information. The product ID is mandatory, while other fields are optional. ### Method PUT ### Endpoint /products/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the product to update. ### Request Body - `application/json` ``` -------------------------------- ### Upload Invoice Source: https://github.com/atillakesicioglu/sentos-api-docs/blob/main/docs/API.md Uploads an invoice for a given order ID. ```APIDOC ## POST /orders/upload-invoice/{id} ### Description Uploads an invoice for a given order ID. ### Method POST ### Endpoint /orders/upload-invoice/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the order for which to upload the invoice. ### Request Body `application/json` ```