Create a Subscription Schedule
POST/v1/subscription-schedules
Creates a schedule. Send customerId and phases to define it with phases: it starts as not_started and ONVO creates its subscription when the first phase starts. Send only fromSubscription to create it from an existing subscription: it starts as active, with endBehavior set to release and one phase covering that subscription's current period.
Request
Responses
- 201
- 400
- 401
- 404
- 409
Schedule created.
Bad Request - a subscription_schedules.* code that explains which rule was not met, or a list of validation messages when the body does not have the expected format.
Unauthorized
Not Found - subscription_schedules.customer_not_found or subscription_schedules.subscription_not_found.
Conflict - a request with the same Idempotency-Key is already in progress.