Inventory API
Manage inventory levels, stock transfers, and counts
16 endpoints
Base URL:
https://api.nexapay.com/v1| Method | Path | Description |
|---|---|---|
| GET | /inventory | List all inventory items |
| GET | /inventory/{product_id} | Get product inventory |
| PUT | /inventory/{product_id} | Update inventory quantity |
| POST | /inventory/{product_id}/adjust | Adjust inventory |
| GET | /inventory/alerts | Get low stock alerts |
| POST | /inventory/alerts/settings | Configure alert settings |
| GET | /inventory/transfers | List stock transfers |
| POST | /inventory/transfers | Create stock transfer |
| GET | /inventory/transfers/{transfer_id} | Get transfer details |
| PUT | /inventory/transfers/{transfer_id} | Update transfer |
| POST | /inventory/transfers/{transfer_id}/complete | Complete transfer |
| POST | /inventory/transfers/{transfer_id}/cancel | Cancel transfer |
| GET | /inventory/counts | List stock counts |
| POST | /inventory/counts | Create stock count |
| PUT | /inventory/counts/{count_id} | Update stock count entry |
| POST | /inventory/counts/{count_id}/finalize | Finalize stock count |
Detailed Examples
POST
/inventory/transfersRequest Body
{
"from_store_id": "store_abc123",
"to_store_id": "store_xyz789",
"items": [
{
"product_id": "prod_coffee_beans",
"quantity": 50,
"unit": "kg"
},
{
"product_id": "prod_milk",
"quantity": 100,
"unit": "liter"
}
],
"scheduled_date": "2024-01-20",
"notes": "Weekly restocking transfer"
}Response
{
"success": true,
"data": {
"id": "transfer_001",
"from_store": "Downtown Location",
"to_store": "Mall Location",
"status": "pending",
"items": [...],
"created_at": "2024-01-15T10:00:00Z",
"estimated_arrival": "2024-01-20"
}
}