Set Inventory Reconciliation Baseline
PUT/api/ledger/reconciliation/inventory/baseline
Draw the reconciliation baseline: measure divergence from baseline_date forward and freeze the history before it out of the view. View-only and reversible — no reconciled figure, opening balance, or start date is changed. Returns the refreshed context.
Authentication: Requires Bearer token.
Body: connection_id (required), baseline_date (required, date), note (optional, max 500 chars).
Response fields: baseline_date (null when no baseline is set), baseline_note, inventory_start_date (where the series opens from without a baseline), provider_lock_date (null when the provider reports no lock), opening_locked (true when the correction date falls on/before the provider lock — corrections then must be made on the SKU side, not posted to the provider).
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.