Create a stock adjustment
Records a manual stock adjustment for an inventory item. The quantity change can be positive (adding stock) or negative (removing stock). The item's current quantity is updated atomically.
Records a manual stock adjustment for an inventory item. The quantity change can be positive (adding stock) or negative (removing stock). The item's current quantity is updated atomically.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/inventory/adjustments" \ -H "Content-Type: application/json" \ -d '{ "inventoryItemId": "string", "quantityChange": 0, "reason": "string" }'{ "data": { "id": "string", "inventoryItemId": "string", "organizationId": "string", "quantityBefore": "string", "quantityChange": "string", "quantityAfter": "string", "source": "manual", "reason": "string", "notes": "string", "adjustedBy": "string", "createdAt": "string", "property1": null, "property2": null }}Create a purchase order POST
Creates a new purchase order with line items for the specified supplier. Automatically generates a sequential PO number and calculates totals.
Create a supplier POST
Creates a new supplier record for the organization, including contact details, payment terms, and delivery preferences.