Get Tie-Out Period
GET/api/ledger/tie-out/periods/:period
The tie-out for one month. The order cohort (orders placed in the month) is followed downstream: stages lists Ordered, Invoiced, Shipped, Paid, Posted to the ledger and one stage per accounting connection (synced:{connection_id}), each with an amount in base currency and a document count. pairs compares adjacent stages: state is ties, within_tolerance, timing (only expected, explained differences) or gap (open exceptions), with the difference, counts and a one-line summary. lanes.payouts covers marketplace payouts deposited in the month per channel (gross, refunds, fees, other, net) and lanes.cogs compares inventory movement cost, ledger COGS and each connection. locks says what the month's close state allows: a closing or closed month is read-only; a month whose postings are locked refuses fixes that would post into it. run is the latest completed run; active_run is a run in progress.
accounting:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
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.