GagliaHQ ERP
Main WarehouseMAIN-STORAGE-DEFAULTPreviewFixture data
Integration

API Contracts

ERP API endpoints, write headers, and live-stock safety gates

Contract Gates

live-stock trust stays disabled until the gate is complete

Live stock trust
disabled until an enabled cutover cohort has proof, rollback, and approver
Write safety
all mutation routes require Request-Id, Idempotency-Key, Actor-Id, Actor-Type, and Source-System
Publisher
worker-run-once drains local outbox rows; external publish stays configurable
Runtime
systemd promotion requires final ERP_DATABASE_URL outside source control

Write Headers

all ERP writes are traceable and retry-safe

Request-Idrequest correlation id returned in contract errors
required
Idempotency-Keyretry key for every write and workflow transition
required
Actor-Idhuman or service actor id stored on workflow rows
required
Actor-Typemust be user, service, or worker
required
Source-Systemallowed source such as commerce, erp, workbench, inventory-worker, or vendor-feed
required
ResourceMethodPathPurposeStatus
InventoryGET/api/v1/inventory/availabilityread available, reserved, held, and owned inventoryimplemented
ReservationsPOST/api/v1/inventory/reservationscreate idempotent order reservationsimplemented
ReservationsPOST/api/v1/inventory/reservations/{id}/releaserelease active reserved stockimplemented
ReservationsPOST/api/v1/inventory/reservations/{id}/consumeconsume reserved stock after shipment proofimplemented
Work itemsGET/api/v1/inventory/work-itemslist purchasing, receiving, warehouse, vendor, scan, and report workimplemented
Work itemsPOST/api/v1/inventory/work-itemscreate an operational workflow itemimplemented
Work itemsPOST/api/v1/inventory/work-items/{id}/transitionmove a workflow item between draft, open, in progress, blocked, completed, or cancelledimplemented
OperationsGET/api/v1/inventory/operations/{module}list concrete workflow records for receiving, purchasing, putaway, picking, transfers, counts, adjustments, returns, vendors, RFQs, invoices, forecasts, landed cost, and kitsimplemented
OperationsPOST/api/v1/inventory/operations/{module}create a module workflow record and linked operational work itemimplemented
OperationsPOST/api/v1/inventory/operations/{module}/{record_id}/transitiontransition module records through open, approved, ordered, receiving, in progress, posted, closed, blocked, or cancelled statesimplemented
OperationsPOST/api/v1/inventory/operations/{module}/{record_id}/post-stockpost receiving, putaway, transfer, pick, pack, ship, count, adjustment, and return stock movements to balances and ledgerguarded
PurchasingPOST/api/v1/inventory/operations/purchase-recommendations/generategenerate reorder recommendations from stockable product settings where available stock is below reorder point or safety stockimplemented
PurchasingPOST/api/v1/inventory/operations/purchase-recommendations/{record_id}/create-rfqcreate an ERP-owned RFQ workflow record from a recommendation without touching Commerceimplemented
PurchasingPOST/api/v1/inventory/operations/purchase-recommendations/{record_id}/create-purchase-ordercreate an ERP-owned purchase order workflow record from a recommendation without touching Commerceimplemented
ReceivingPOST/api/v1/inventory/operations/purchase-orders/{record_id}/create-receiving-sessioncreate a receiving session from an ERP-owned purchase order recordimplemented
ReceivingPOST/api/v1/inventory/operations/receiving-sessions/{record_id}/generate-putawaycreate putaway work from a receiving sessionimplemented
FulfillmentPOST/api/v1/inventory/operations/pick-tasks/generate-from-reservationscreate ERP pick tasks from active ERP reservation rowsimplemented
FulfillmentPOST/api/v1/inventory/operations/pick-tasks/{record_id}/generate-pack-sessioncreate a pack session from an ERP pick taskimplemented
FulfillmentPOST/api/v1/inventory/operations/pack-sessions/{record_id}/generate-ship-confirmationcreate a ship confirmation from an ERP pack sessionimplemented
AdvancedPOST/api/v1/inventory/operations/vendor-scorecards/generatecreate vendor scorecard records from ERP vendor snapshotsimplemented
AdvancedPOST/api/v1/inventory/operations/forecasts/generatecreate standalone demand forecast records from ERP balances and stock rulesimplemented
AdvancedPOST/api/v1/inventory/operations/kit-assemblies/{record_id}/post-assemblyconsume component stock and create finished kit stock through ERP ledger movementsguarded
BarcodePOST/api/v1/inventory/barcode-scanscapture scanner events and mark them captured, matched, or rejected from expected scan contextimplemented
AnalyticsPOST/api/v1/inventory/analytics/snapshotspersist workflow/report snapshots from live ERP summary metrics or caller-supplied analytics rowsimplemented
CutoverPOST/api/v1/inventory/cutover-cohorts/{key}/transitiongate live-stock trust behind stock proof, restore proof, rollback, and approvalguarded
ReportsGET/api/v1/inventory/reports/summarysummarize work backlog, outbox status, reservations, and cutover stateimplemented