Skip to main content

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.

Required scope: accounting:write

Grant 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 after earliest_allowed_from
  • deferred_balance_nominal_code_id (integer) — required when enabled is true; must be an existing current-asset account
  • remove_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​

OK

Response Headers
    Content-Type