★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tarikkamat/kolai/archive/refs/heads/master.zipKolai Plugin
Kolai API entegrasyonu icin WordPress plugin'i.
API Genel
Base URL: https://your-site.com/wp-json/kolai/v1
Tumu JSON request/response kullanir.
Base Response
Tum endpoint'ler asagidaki formatta doner:
{
"status": "success",
"systemTime": "2026-02-04T10:15:30+00:00",
"errorCode": null,
"errorMessage": null,
"woocommerceVersion": "9.1.0",
"wordpressVersion": "6.5.3",
"phpVersion": "8.1.20",
"data": {}
}
status degeri:
success: HTTP status < 400failure: HTTP status >= 400
Error Codes
1xxx - Kolai Plugin Errors
1000Internal error1001Bad request1002Not found1003Service unavailable1004WooCommerce inactive
2xxx - Product Errors
2000Invalid product id2001Product not found2002Product not visible2003Variation parent not found2004Invalid product list
3xxx - Shipping Errors
3000Invalid address3001No shipping options
4xxx - Order Errors
4000Invalid order request4001Invalid shipment option4002Insufficient stock4003Discount exceeds total
Endpoints
Detayli istek/yanit ornekleri ve aciklamalar icin ilgili dokümana gidin:
| Alan | Doküman | Özet |
|---|---|---|
| Ürün | PRODUCT.md | GET /products, GET /products/{id}, GET /products-with-variants/{id} |
| Kargo | SHIPPING.md | POST /shipment-options (alias: POST /shipping-options) |
| Sipariş | ORDER.md | GET /order-types, POST /orders, GET /orders/{orderId}, PATCH /orders/{orderId} |
Yapı
kolai/
├── admin/
│ ├── class-kolai-admin.php
│ ├── class-kolai-settings.php
│ ├── css/
│ │ └── kolai-admin.css
│ ├── js/
│ │ └── kolai-admin.js
│ └── views/
│ └── settings-page.php
├── includes/
│ ├── class-kolai-activator.php
│ ├── class-kolai-api.php
│ ├── class-kolai-core.php
│ ├── class-kolai-deactivator.php
│ ├── class-kolai-exceptions.php
│ ├── class-kolai-constants.php
│ ├── class-kolai-loader.php
│ ├── class-kolai-response.php
│ ├── class-kolai-route-base.php
│ ├── product/
│ │ ├── product-mapper.php
│ │ ├── product-routes.php
│ │ └── product-service.php
│ ├── order/
│ │ ├── order-routes.php
│ │ └── order-service.php
│ └── shipping/
│ ├── shipping-routes.php
│ └── shipping-service.php
└── kolai.php