Skip to content
Status

Move the next charge

Moves the date on which a recurring contract’s next charge will be created. Nothing else about the agreement changes: amount, frequency and number of payments stay as they are, so no replacement contract is created. Each later charge is dated one frequency interval on from the charge before it, so moving the next charge shifts the whole series that follows; the shift is applied charge by charge as each one is created, not at edit time. There is no dedicated endpoint: it is a contract update whose body carries only next_charge. It differs from Amend a contract’s terms (same endpoint, but a change to amount, frequency or occurrences, which is a terms change) and from Reschedule the next payment (next_payment, which moves the next collection attempt for money already due, not the creation of the next charge).

  • The contract is recurring (fixed or variable amount) and in progress: not completed, failed, cancelled, cancelling or suspended. A suspended contract is resumed instead (Resume a contract); a cancelled or cancelling one needs a resume; a completed or failed one is not editable.
  • In Merchant View the contract must currently show a next charge date and the Merchant View option recurring_edit must be on.
Input Required Meaning and constraints
next_charge yes New date for the next charge, as an ISO 8601 timestamp (yyyy-MM-ddTHH:mm:ss, optionally with milliseconds and Z), not in the past; or the literal now (lower case), which Shuttle replaces with the current server time. An empty value is ignored (see Rules). A timestamp without an offset is read on the server clock.

Nothing else should be in the body: amount, frequency, occurrences or charges make the call a Amend a contract’s terms or Amend a scheduled contract’s instalments; status makes it a Suspend a contract or Resume a contract; next_payment makes it a Reschedule the next payment.

Rule What you see
The body must carry a contract object VALIDATION_ERROR: “API body error: missing contract object”
next_charge (other than now) must not be earlier than the server clock when the request is received; checked before the contract is loaded VALIDATION_ERROR: “next_charge must be in the future”
The contract must exist and be visible to the session NOT_FOUND
A one-off contract (ONEOFF with no scheduled date) cannot be updated VALIDATION_ERROR: “cannot update non-recurring contracts”
A scheduled single payment (a one-off with a scheduled_date) has no next charge to move: it is one charge with a due date, changed through scheduled_date (Amend a contract’s terms). A next_charge sent for one is not forwarded 200 OK, nothing moves
A cancelled or cancelling contract cannot take a next_charge without resume; with it the call is a Resume a contract VALIDATION_ERROR: “resume required”
On a suspended contract next_charge is a resume, not a reschedule: the call goes to Shuttle’s resume and the contract becomes ACTIVE, under Resume a contract rules (resume performed)
A completed or failed contract is not editable INVALID: “contract (status PAYMENTCOMPLETE is not editable)” (or FAILED)
The occurrence cap is not checked at edit time: if charge_count already equals occurrences the date is stored, and the next-charge job then clears it without creating a charge (the resume path does check this, see Resume a contract) 200 OK; no charge is ever created for the date
An empty or missing next_charge sends nothing to Shuttle and the contract is returned unchanged; the next charge date cannot be cleared by this call 200 OK, nothing changes
Moving next_charge alone is never a terms change, so no replacement contract is created (none)
Merchant View offers Edit Next Charge only while the contract shows a next charge date and is in progress (ACTIVE, PENDING, SUSPENDED, UNRESOLVED, FAILING); suspending clears the date, so in practice the link is hidden on suspended contracts control hidden
Merchant View disables Save until the date has been changed control disabled
  • The contract keeps its amount, frequency, occurrences and status; no replacement contract is created. The response carries the same contract with next_charge set to the new date (now becomes the time the request was received), and future_charges is derived from that date immediately.
  • A CONTRACT.UPDATE webhook is raised.
  • The next charge is created on the new date (earlier where the payment method needs advance notice), and every later charge follows one frequency interval after the one before it, so the whole series that follows moves with it.
  • The new charge is collected when it falls due; a failed collection follows the contract’s retry schedule.
  • On a suspended contract the same call resumes it instead: the contract becomes ACTIVE under Resume a contract rules.
  • Roles: Admin and Support.
  • Permission keys (for clients managing permissions directly): payment_contract (or agreement, or *) on the client or the contract’s division, for the contract’s account (all entry points; checked at the API, against the permissions the platform holds for the session).
  • Admin app: permission payment_contract on the screen (an unpermitted user is sent back to the contract screen); option recurring_edit shows the Edit Next Charge link.

Was this page helpful?