Start Pay Schedule

Activates the pay schedule for an order. The order must already have pay schedule data configured (via the Update or Create Order endpoint) but not yet started.

If a startOn date is provided, the schedule is deferred to that date — no payment is processed immediately. An invoice is sent to the customer via their configured notification preferences (email/SMS).

If no startOn date is provided and payOnStart is true, the first payment is processed immediately using the stored billing token (or a provided session). A billing token must be attached to the order pay schedule or a pay session must be specified in the start request body.

If no startOn date is provided and payOnStart is false, the schedule is activated today with the first payment due one period from now. An invoice is sent to the customer.

For autopay schedules, a tokenized billing method must be stored before activation. A session can be provided to tokenize a new payment method as part of this request.

Behavior Matrix

The behavior of this endpoint depends on three parameters: autopay (set on the pay schedule), startOn, and payOnStart. Below is a reference for all combinations. The startOn example uses +7 days from today for illustration; any future date works.

autopaystartOnpayOnStartImmediate Payment?start_datecurrent_due_date
true+7dtrueNostartOnstartOn
true+7dfalseNostartOnstartOn + 1 period
truenulltrueYestodaytoday + 1 period
truenullfalseNotodaytoday + 1 period
false+7dtrueNostartOnstartOn
false+7dfalseNostartOnstartOn + 1 period
falsenulltrueYestodaytoday + 1 period
falsenullfalseNotodaytoday + 1 period

Key notes:

  • When startOn is provided, no payment is processed regardless of other parameters. An invoice is sent instead.
  • When payOnStart is true and startOn is set, the first payment is due on the startOn date (not processed immediately).
  • When payOnStart is true and startOn is null, the first payment is processed immediately.
  • "1 period" refers to the pay schedule's configured frequency (e.g., 1 month for monthly).
Path Params
string
required

The merchant ID

string
required

The string identifier for the order

Body Params
boolean

Whether a payment is due on start. If true and no startOn date is provided, then a payment for the paySchedule.recurringAmount will be processed immediately. If true and a startOn date is provided, then a payment will be due on the startOn date. If false, then payment will be delayed until one period after the start date.

session
object | null

Session to tokenize for autopay billing. If provided, the session payment method will be saved for recurring charges.

Headers
string
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json