v1
latestOpenAPI 3.1.02026-07-265817860.8 KBbilling
Creates a multi-phase subscription schedule for a customer. The first phase starts immediately and subsequent phases automatically transition at their scheduled start times.
Use this endpoint to schedule future plan changes (e.g. switch from a trial plan to a paid plan on a specific date) or to define a sequence of plans that should activate over time.
post/v1/billing.create_schedule
Headers
x-api-versionstring required
Request body
Example request
{
"customer_id": "cus_123",
"phases": [
{
"starts_at": 1735689600000,
"plans": [
{
"plan_id": "trial_plan"
}
]
},
{
"starts_at": 1736899200000,
"plans": [
{
"plan_id": "pro_plan"
}
]
}
]
}Response
OK
Example response
{
"customer_id": "cus_123",
"entity_id": null,
"status": "created",
"schedule_id": "sch_1234",
"phases": [
{
"phase_id": "sphs_1111",
"starts_at": 1735689600000,
"customer_product_ids": [
"cus_prod_1111"
]
},
{
"phase_id": "sphs_2222",
"starts_at": 1736899200000,
"customer_product_ids": [
"cus_prod_2222"
]
}
],
"invoice": null,
"payment_url": null
}