API Endpoints
WorkTraq exposes a set of RESTful endpoints. Base URL (example): https://api.worktraq.com/v1/
1. Products
- GET
/products
- Retrieves all products with pagination.
- POST
/products
- Creates a new product record. Requires JSON body with fields like
name
,sku
,price
, etc.
- Creates a new product record. Requires JSON body with fields like
- GET
/products/{id}
- Fetch a specific product by ID.
2. Inventory
- GET
/inventory
- Lists all inventory records, including stock quantity per warehouse.
- POST
/inventory/adjust
- Adjust stock levels. Requires fields:
productId
,warehouseId
,adjustment
.
- Adjust stock levels. Requires fields:
3. Orders
- POST
/orders
- Creates a new sales order from a list of product IDs/quantities.
- GET
/orders/{id}
- Retrieves details of a specific order, including invoice status, shipping info.
...and so on for quotes, invoices, employees, etc.