API Reference

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_KEY

Base URL

https://api.saletrax.com

API Endpoints

MethodEndpointDescription
GET/api/v1/ordersRetrieve all orders
POST/api/v1/ordersCreate 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/inventoryGet inventory items
POST/api/v1/inventoryAdd inventory item
GET/api/v1/customersGet 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
    }
  }
}