Schedule a price update on a subscription
POST/api/v3/package/:package_id/_action/schedulePriceChange
Scheduling a price update automatically changes the subscription price on the date specified.
The example to the right shows how to schedule a price update on a subscription by explicitly setting the price.
Valid values for pricemodel
fla
- Flat Pricing (example: $X dollars every billing cycle)uni
- Unit Pricing (example: $X per unit every billing cycle)vol
- Volume Pricing (example: $X dollars every billing cycle, with different price levels depending on volume)tie
- Tiered Pricing (example: $X dollars every billing cycle for the first 10 units, then $Y dollars per month for the next 10 units, etc.)
Scheduling a price update automatically changes the subscription price on the date specified.
The example to the right shows how to schedule a price update on a subscription by using a percentage to increase the price.
Automatically increase your subscription price at regular intervals by scheduling a recurring price update.
The example to the right shows how to schedule a recurring price update on a subscription.
The recurring price update will only take effect after all your one-time schedules have been run.
Valid paycycles
dly
- Daily1wk
- Weeklymon
- Monthlyqtr
- Quarterlyyrl
- Yearly
Request
- application/json
Body
schedule_lines
object
0
object
this_change_details
object
pricemodel
object
1
object
this_change_details
object
pricemodel
object
tiers
object
0
object
2
object
this_change_details
object
repeating_change_details
object
Responses
- 200
- 400
- 401
Action completed successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": true
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}