Saletrax API Reference
Complete reference for all available API endpoints and methods.
Authentication
All API requests require authentication using your API key. Include it in the Authorization header:
Authorization: Bearer YOUR_API_KEYBase URL
https://api.saletrax.comAPI Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/orders | Retrieve all orders |
| POST | /api/v1/orders | Create a new order |
| GET | /api/v1/orders/{id} | Get a specific order |
| PUT | /api/v1/orders/{id} | Update an order |
| DELETE | /api/v1/orders/{id} | Delete an order |
| GET | /api/v1/inventory | Get inventory items |
| POST | /api/v1/inventory | Add inventory item |
| GET | /api/v1/customers | Get customer list |
Example Response
{
"success": true,
"data": {
"orders": [
{
"id": "ord_123",
"customer_id": "cust_456",
"status": "pending",
"total": 150.00,
"created_at": "2025-01-01T10:00:00Z",
"items": [
{
"product_id": "prod_789",
"quantity": 2,
"price": 75.00
}
]
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 1
}
}
}