Templates and Contracts
One template typically backs many contracts. Reusing a template is what keeps a subscription plan consistent across all the customers on it.
Contract Lifecycle
1
Active
Created and running. Orchestra charges the saved token on each due date and increments the occurrence count after each successful payment.
2
Paused
Temporarily stopped. No payments are attempted. The contract keeps its history and can be resumed.
3
Cancelled
Permanently stopped. A cancelled contract cannot be resumed; create a new contract instead.
4
Completed
Reached its end date or its maximum number of payments. No further action needed.
Ending a Contract
A contract can be open-ended, or you can bound it in either of two ways, or both:endDatestops payments after a calendar date.maxOccurrencesstops payments after a set number of successful charges.
Endpoints
List Contracts
Page through your contracts, filtered by template or status.
Create Contract
Start a recurring arrangement from a template.
Retrieve Contract
Get the full detail of one contract, including its schedule and charge data.
Update Contract
Change the name, end date, maximum occurrences or metadata.
Pause Contract
Stop payments temporarily, keeping the contract intact.
Resume Contract
Restart a paused contract.
Cancel Contract
Stop a contract permanently.
Scheduled Payments Guide
Worked examples, timezone handling and lifecycle detail.