API Reference
Base URL
Section titled “Base URL”All API requests should be made to:
https://api.prediko.io/api/v1Available Endpoints
Section titled “Available Endpoints”Orders
Section titled “Orders”| Endpoint | Description |
|---|---|
GET /orders | List all orders |
GET /orders/{id} | Get a specific order |
POST /orders | Create or update orders |
PATCH /orders/status | Update order status |
DELETE /orders/{id} | Delete an order |
| Endpoint | Description |
|---|---|
POST /skus | List all SKUs |
Suppliers
Section titled “Suppliers”| Endpoint | Description |
|---|---|
GET /suppliers | List all suppliers |
Warehouses
Section titled “Warehouses”| Endpoint | Description |
|---|---|
GET /warehouses | List all warehouses |
Common Patterns
Section titled “Common Patterns”Pagination
Section titled “Pagination”List endpoints that support pagination return paginated results:
{ "data": [...], "pagination": { "total": 250, "limit": 100, "offset": 0, "has_more": true }}Simple List Responses
Section titled “Simple List Responses”Some endpoints return a simpler format:
{ "data": [...], "total": 50}Query Parameters for Paginated Endpoints
Section titled “Query Parameters for Paginated Endpoints”| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page |
offset | integer | Number of results to skip |
Authentication
Section titled “Authentication”All endpoints require authentication via API key:
Authorization: Bearer pk_live_YOUR_API_KEYSee Authentication for details.