Skip to main content

Update Spend Ladder

PUT 

/api/pricing-tier-ladders/:ladder

Replace a spend ladder's settings and steps (send the full step list). Proposed moves to a tier that is no longer a step are withdrawn (status superseded, note "Ladder steps changed"). Returns 409 (code: "evaluation_running") while the ladder is being evaluated.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Request body (all fields required unless noted):

  • name (string, max 255) — unique across ladders
  • spend_window — trailing_12_months or calendar_ytd
  • spend_basis — shipped_or_invoiced or confirmed
  • apply_mode — propose (moves wait for approval) or automatic (moves are applied as soon as they are found)
  • downgrade_policy — never, period_end or immediate (immediate is rejected on a calendar_ytd ladder)
  • customer_scope — all (every customer on a ladder tier) or portal (only customers with portal access)
  • show_on_portal (boolean) — show buyers their progress to the next step on the portal home page
  • is_enabled (boolean) — disabled ladders are not evaluated
  • steps (array, 2–20 items) — the full list of steps; it replaces any existing steps
  • steps.*.product_pricing_tier_id (integer) — an existing pricing tier; each tier once per ladder and not on another ladder
  • steps.*.min_spend (number, 0–9999999999) — minimum qualifying spend in base currency; distinct per step; the lowest step must be 0
  • steps.*.portal_label (string, max 255, optional) — buyer-facing name for the step

Request​

Responses​

OK

Response Headers
    Content-Type