Update Deferred Transactions Settings
PUT/api/amazon/unified/deferred-adjustments/settings/:integrationInstance
Switch the month-end deferred adjustment on or off, or change its start month or account. Months that leave the window are voided (their journals withdrawn) in open periods; months in the window are rebuilt by a background job whose id is returned as rebuild_job_id. Locked months are never changed.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body:
enabled(required, boolean)from(optional, YYYY-MM-01) — the start month; must be the first of a month, on or afterearliest_allowed_fromdeferred_balance_nominal_code_id(integer) — required whenenabledis true; must be an existing current-asset accountremove_open_months(optional, boolean) — only when switching off: void the adjustments already posted in open months
Switching on (or saving while on) is refused with 422 while the account's Amazon settlements can't post its releases: ledger generation is off, the order-sale settlement mappings are pending, or none of the account's latest 3 closed settlements with imported lines can post (lines with no mapped account and no fallback account, a settlement-level hold). Each reason is an enabled error, and blockers lists them as {code, message, link, financial_event_group_ids} — code is ledger_generation_off, settlement_revenue_mapping_pending or settlements_not_booking; link is the app page that fixes it. An account with no closed settlement yet is not blocked; switching off never is.
Requires the integrations.update permission.
Authentication: Requires Bearer token (accounting scope).
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.