Defines input parameters in a call to the SwapPlan endpoint.
SwapPlanRequest
Name | Type | Tags | Description | Getter | Setter |
---|---|---|---|---|---|
newPlanVariationId |
?string |
Optional | The ID of the new subscription plan variation. This field is required. |
getNewPlanVariationId(): ?string | setNewPlanVariationId(?string newPlanVariationId): void |
phases |
?(PhaseInput[]) |
Optional | A list of PhaseInputs, to pass phase-specific information used in the swap. | getPhases(): ?array | setPhases(?array phases): void |
{
"new_plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7",
"phases": [
{
"order_template_id": "uhhnjH9osVv3shUADwaC0b3hNxQZY",
"ordinal": 0
}
]
}