Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 904 Bytes

swap-plan-request.md

File metadata and controls

31 lines (22 loc) · 904 Bytes

Swap Plan Request

Defines input parameters in a call to the SwapPlan endpoint.

Structure

SwapPlanRequest

Fields

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

Example (as JSON)

{
  "new_plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7",
  "phases": [
    {
      "order_template_id": "uhhnjH9osVv3shUADwaC0b3hNxQZY",
      "ordinal": 0
    }
  ]
}