Square: Subscriptions schemas
32 Square schemas with complete fields and constraints.
← Subscriptions operations · All schemas
Bulk Swap Plan — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a call to the [BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint. |
location_id | string | Required within parent | The ID of the location to associate with the swapped subscriptions. Minimum length: 1 |
new_plan_variation_id | string | Required within parent | The ID of the new subscription plan variation. This field is required. Minimum length: 1 |
old_plan_variation_id | string | Required within parent | The ID of the plan variation whose subscriptions should be swapped. Active subscriptions using this plan variation will be subscribed to the new plan variation on their next billing day. Minimum length: 1 |
Bulk Swap Plan — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response of the [BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint. |
affected_subscriptions | JSON | Optional | |
affected_subscriptions (anyOf 1) | integer | Alternative | The number of affected subscriptions. |
affected_subscriptions (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
Cancel Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [CancelSubscription](api-endpoint:Subscriptions-CancelSubscription) endpoint. |
actions | array | Optional | A list of a single `CANCEL` action scheduled for the subscription. |
actions[] | Model | Each item | Expand Swap Plan — response body — actions item |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The specified subscription scheduled for cancellation according to the action created by the request. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription, Swap Plan — response body — actions item
Change Billing Anchor Date — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint. |
effective_date | JSON | Optional | |
effective_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the scheduled `BILLING_ANCHOR_CHANGE` action takes place on the subscription. When this date is unspecified or falls within the current billing cycle, the billing anchor date is changed immediately. |
effective_date (anyOf 2) | null | Alternative | |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | integer | Alternative | The anchor day for the billing cycle. Maximum: 31 Minimum: 1 |
monthly_billing_anchor_date (anyOf 2) | null | Alternative |
Change Billing Anchor Date — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a request to the [ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint. |
actions | array | Optional | A list of a single billing anchor date change for the subscription. |
actions[] | Model | Each item | Expand Swap Plan — response body — actions item |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The specified subscription for updating billing anchor date. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription, Swap Plan — response body — actions item
Create Subscription — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint. |
canceled_date | string | Optional | The `YYYY-MM-DD`-formatted date when the newly created subscription is scheduled for cancellation. This date overrides the cancellation date set in the plan variation configuration. If the cancellation date is earlier than the end date of a subscription cycle, the subscription stops at the canceled date and the subscriber is sent a prorated invoice at the beginning of the canceled cycle. When the subscription plan of the newly created subscription has a fixed number of cycles and the `canceled_date` occurs before the subscription plan completes, the specified `canceled_date` sets the date when the subscription stops through the end of the last cycle. |
card_id | string | Optional | The ID of the [subscriber's](entity:Customer) [card](entity:Card) to charge. If it is not specified, the subscriber receives an invoice via email with a link to pay for their subscription. |
customer_id | string | Required within parent | The ID of the [customer](entity:Customer) subscribing to the subscription plan variation. Minimum length: 1 |
idempotency_key | string | Optional | A unique string that identifies this `CreateSubscription` request. If you do not provide a unique string (or provide an empty string as the value), the endpoint treats each request as independent. For more information, see [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). |
location_id | string | Required within parent | The ID of the location the subscription is associated with. Minimum length: 1 |
monthly_billing_anchor_date | integer | Optional | The day-of-the-month to change the billing date to. Maximum: 31 Minimum: 1 |
phases | array | Optional | array of phases for this subscription |
phases[] | Model | Each item | Expand Create Subscription — request body — body phases item |
plan_variation_id | string | Optional | The ID of the [subscription plan variation](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations#plan-variations) created using the Catalog API. |
price_override_money | Model | Optional | Expand Create Payment — request body — body tip money A custom price which overrides the cost of a subscription plan variation with `STATIC` pricing. This field does not affect itemized subscriptions with `RELATIVE` pricing. Instead, you should edit the Subscription's [order template](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#phases-and-order-templates). |
source | Model | Optional | Expand Create Subscription — request body — body source The origination details of the subscription. |
start_date | string | Optional | The `YYYY-MM-DD`-formatted date to start the subscription. If it is unspecified, the subscription starts immediately. |
tax_percentage | string | Optional | The tax to add when billing the subscription. The percentage is expressed in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. For example, a value of 7.5 corresponds to 7.5%. Maximum length: 10 |
timezone | string | Optional | The timezone that is used in date calculations for the subscription. If unset, defaults to the location timezone. If a timezone is not configured for the location, defaults to "America/New_York". Format: the IANA Timezone Database identifier for the location timezone. For a list of time zones, see [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). |
Referenced models: Create Payment — request body — body tip money, Create Subscription — request body — body source, Create Subscription — request body — body phases item
Create Subscription — request body — body phases item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a phase, which can override subscription phases as defined by plan_id |
order_template_id | JSON | Optional | |
order_template_id (anyOf 1) | string | Alternative | id of order to be used in billing |
order_template_id (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | index of phase in total subscription plan Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
ordinal (anyOf 2) | null | Alternative | |
plan_phase_uid | JSON | Optional | |
plan_phase_uid (anyOf 1) | string | Alternative | the uid from the plan's phase in catalog |
plan_phase_uid (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | id of subscription phase |
uid (anyOf 2) | null | Alternative |
Create Subscription — request body — body source
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The origination details of the subscription. |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name used to identify the place (physical or digital) that a subscription originates. If unset, the name defaults to the name of the application that created the subscription. Maximum length: 255 |
name (anyOf 2) | null | Alternative |
Create Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint. |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The newly created subscription. For more information, see [Subscription object](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#subscription-object). |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription
Delete Subscription Action — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response of the [DeleteSubscriptionAction](api-endpoint:Subscriptions-DeleteSubscriptionAction) endpoint. |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The subscription that has the specified action deleted. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription
List Subscription Events — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [ListSubscriptionEvents](api-endpoint:Subscriptions-ListSubscriptionEvents). |
cursor | string | Optional | When the total number of resulting subscription events exceeds the limit of a paged response, the response includes a cursor for you to use in a subsequent request to fetch the next set of events. If the cursor is unset, the response contains the last page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription_events | array | Optional | The retrieved subscription events. |
subscription_events[] | Model | Each item | Expand List Subscription Events — response body — subscription events item |
Referenced models: Get Shift — response body — errors item, List Subscription Events — response body — subscription events item
List Subscription Events — response body — subscription events item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes changes to a subscription and the subscription status. |
effective_date | string | Required within parent | The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) when the subscription event occurred. |
id | string | Required within parent | The ID of the subscription event. |
info | JSON | Optional | |
info (anyOf 1) | Model | Alternative | Expand List Subscription Events — response body — subscription events item info Provides information about the subscription event Additional information about the subscription event. |
info (anyOf 2) | null | Alternative | |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | integer | Alternative | The day-of-the-month the billing anchor date was changed to, if applicable. Read only: true |
monthly_billing_anchor_date (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
phases | JSON | Optional | |
phases (anyOf 1) | array | Alternative | A list of Phases, to pass phase-specific information used in the swap. |
phases (anyOf 1)[] | Model | Each item | Expand Swap Plan — response body — subscription phases item |
phases (anyOf 2) | null | Alternative | |
plan_variation_id | string | Required within parent | The ID of the subscription plan variation associated with the subscription. |
subscription_event_type | string | Required within parent | Supported types of an event occurred to a subscription. Type of the subscription event. See [SubscriptionEventSubscriptionEventType](#type-subscriptioneventsubscriptioneventtype) for possible values Known values: START_SUBSCRIPTION, PLAN_CHANGE, STOP_SUBSCRIPTION, DEACTIVATE_SUBSCRIPTION, RESUME_SUBSCRIPTION, PAUSE_SUBSCRIPTION, BILLING_ANCHOR_DATE_CHANGED |
Referenced models: Swap Plan — response body — subscription phases item, List Subscription Events — response body — subscription events item info Provides information about the subscription event
List Subscription Events — response body — subscription events item info Provides information about the subscription event
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Provides information about the subscription event. |
code | JSON | Optional | |
code (anyOf 1) | string | Alternative | Supported info codes of a subscription event. An info code indicating the subscription event that occurred. See [InfoCode](#type-infocode) for possible values Known values: LOCATION_NOT_ACTIVE, LOCATION_CANNOT_ACCEPT_PAYMENT, CUSTOMER_DELETED, CUSTOMER_NO_EMAIL, CUSTOMER_NO_NAME, USER_PROVIDED |
code (anyOf 2) | null | Alternative | |
detail | JSON | Optional | |
detail (anyOf 1) | string | Alternative | A human-readable explanation for the event. |
detail (anyOf 2) | null | Alternative |
Pause Subscription — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [PauseSubscription](api-endpoint:Subscriptions-PauseSubscription) endpoint. |
pause_cycle_duration | JSON | Optional | |
pause_cycle_duration (anyOf 1) | JSON | Alternative | |
pause_cycle_duration (anyOf 1) (anyOf 1) | integer | Alternative | The number of billing cycles the subscription will be paused before it is reactivated. When this is set, a `RESUME` action is also scheduled to take place on the subscription at the end of the specified pause cycle duration. In this case, neither `resume_effective_date` nor `resume_change_timing` may be specified. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
pause_cycle_duration (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
pause_cycle_duration (anyOf 2) | null | Alternative | |
pause_effective_date | JSON | Optional | |
pause_effective_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the scheduled `PAUSE` action takes place on the subscription. When this date is unspecified or falls within the current billing cycle, the subscription is paused on the starting date of the next billing cycle. |
pause_effective_date (anyOf 2) | null | Alternative | |
pause_reason | JSON | Optional | |
pause_reason (anyOf 1) | string | Alternative | The user-provided reason to pause the subscription. Maximum length: 255 |
pause_reason (anyOf 2) | null | Alternative | |
resume_change_timing | JSON | Optional | |
resume_change_timing (anyOf 1) | string | Alternative | Supported timings when a pending change, as an action, takes place to a subscription. The timing whether the subscription is reactivated immediately or at the end of the billing cycle, relative to `resume_effective_date`. See [ChangeTiming](#type-changetiming) for possible values One of: IMMEDIATE, END_OF_BILLING_CYCLE |
resume_change_timing (anyOf 2) | null | Alternative | |
resume_effective_date | JSON | Optional | |
resume_effective_date (anyOf 1) | string | Alternative | The date when the subscription is reactivated by a scheduled `RESUME` action. This date must be at least one billing cycle ahead of `pause_effective_date`. |
resume_effective_date (anyOf 2) | null | Alternative |
Pause Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [PauseSubscription](api-endpoint:Subscriptions-PauseSubscription) endpoint. |
actions | array | Optional | The list of a `PAUSE` action and a possible `RESUME` action created by the request. |
actions[] | Model | Each item | Expand Swap Plan — response body — actions item |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The subscription to be paused by the scheduled `PAUSE` action. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription, Swap Plan — response body — actions item
Resume Subscription — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [ResumeSubscription](api-endpoint:Subscriptions-ResumeSubscription) endpoint. |
resume_change_timing | JSON | Optional | |
resume_change_timing (anyOf 1) | string | Alternative | Supported timings when a pending change, as an action, takes place to a subscription. The timing to resume a subscription, relative to the specified `resume_effective_date` attribute value. See [ChangeTiming](#type-changetiming) for possible values One of: IMMEDIATE, END_OF_BILLING_CYCLE |
resume_change_timing (anyOf 2) | null | Alternative | |
resume_effective_date | JSON | Optional | |
resume_effective_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the subscription reactivated. |
resume_effective_date (anyOf 2) | null | Alternative |
Resume Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [ResumeSubscription](api-endpoint:Subscriptions-ResumeSubscription) endpoint. |
actions | array | Optional | A list of `RESUME` actions created by the request and scheduled for the subscription. |
actions[] | Model | Each item | Expand Swap Plan — response body — actions item |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The resumed subscription. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription, Swap Plan — response body — actions item
Retrieve Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [RetrieveSubscription](api-endpoint:Subscriptions-RetrieveSubscription) endpoint. |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The subscription retrieved. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription
Search Subscriptions — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) endpoint. |
cursor | string | Optional | When the total number of resulting subscriptions exceeds the limit of a paged response, specify the cursor returned from a preceding response here to fetch the next set of results. If the cursor is unset, the response contains the last page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
include | array | Optional | An option to include related information in the response. The supported values are: - `actions`: to include scheduled actions on the targeted subscriptions. |
include[] | string | Each item | |
limit | integer | Optional | The upper limit on the number of subscriptions to return in a paged response. Minimum: 1 |
query | Model | Optional | Expand Search Subscriptions — request body — body query A subscription query consisting of specified filtering conditions. If this `query` field is unspecified, the `SearchSubscriptions` call will return all subscriptions. |
Referenced models: Search Subscriptions — request body — body query
Search Subscriptions — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a query, consisting of specified query expressions, used to search for subscriptions. |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Subscriptions — request body — body query filter customer ids, location ids, source names A list of query expressions. |
filter (anyOf 2) | null | Alternative |
Referenced models: Search Subscriptions — request body — body query filter customer ids, location ids, source names
Search Subscriptions — request body — body query filter customer ids, location ids, source names
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a set of query expressions (filters) to narrow the scope of targeted subscriptions returned by the [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) endpoint. |
customer_ids | JSON | Optional | |
customer_ids (anyOf 1) | array | Alternative | A filter to select subscriptions based on the subscribing customer IDs. |
customer_ids (anyOf 1)[] | string | Each item | |
customer_ids (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | A filter to select subscriptions based on the location. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
source_names | JSON | Optional | |
source_names (anyOf 1) | array | Alternative | A filter to select subscriptions based on the source application. |
source_names (anyOf 1)[] | string | Each item | |
source_names (anyOf 2) | null | Alternative |
Search Subscriptions — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) endpoint. |
cursor | string | Optional | When the total number of resulting subscription exceeds the limit of a paged response, the response includes a cursor for you to use in a subsequent request to fetch the next set of results. If the cursor is unset, the response contains the last page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscriptions | array | Optional | The subscriptions matching the specified query expressions. |
subscriptions[] | Model | Each item | Expand Swap Plan — response body — subscription |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription
Swap Plan — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a call to the [SwapPlan](api-endpoint:Subscriptions-SwapPlan) endpoint. |
new_plan_variation_id | JSON | Optional | |
new_plan_variation_id (anyOf 1) | string | Alternative | The ID of the new subscription plan variation. This field is required. |
new_plan_variation_id (anyOf 2) | null | Alternative | |
phases | JSON | Optional | |
phases (anyOf 1) | array | Alternative | A list of PhaseInputs, to pass phase-specific information used in the swap. |
phases (anyOf 1)[] | Model | Each item | Expand Swap Plan — request body — body phases array item |
phases (anyOf 2) | null | Alternative |
Referenced models: Swap Plan — request body — body phases array item
Swap Plan — request body — body phases array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the arguments used to construct a new phase. |
order_template_id | JSON | Optional | |
order_template_id (anyOf 1) | string | Alternative | id of order to be used in billing |
order_template_id (anyOf 2) | null | Alternative | |
ordinal | JSON | Required within parent | |
ordinal (anyOf 1) | integer | Alternative | index of phase in total subscription plan Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
ordinal (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Swap Plan — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response of the [SwapPlan](api-endpoint:Subscriptions-SwapPlan) endpoint. |
actions | array | Optional | A list of a `SWAP_PLAN` action created by the request. |
actions[] | Model | Each item | Expand Swap Plan — response body — actions item |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The subscription with the updated subscription plan. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription, Swap Plan — response body — actions item
Swap Plan — response body — actions item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action as a pending change to a subscription. |
effective_date | JSON | Optional | |
effective_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the action occurs on the subscription. |
effective_date (anyOf 2) | null | Alternative | |
id | string | Optional | The ID of an action scoped to a subscription. |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | JSON | Alternative | |
monthly_billing_anchor_date (anyOf 1) (anyOf 1) | integer | Alternative | The new billing anchor day value, for a `CHANGE_BILLING_ANCHOR_DATE` action. |
monthly_billing_anchor_date (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
monthly_billing_anchor_date (anyOf 2) | null | Alternative | |
new_plan_variation_id | JSON | Optional | |
new_plan_variation_id (anyOf 1) | string | Alternative | The target subscription plan variation that a subscription switches to, for a `SWAP_PLAN` action. |
new_plan_variation_id (anyOf 2) | null | Alternative | |
phases | JSON | Optional | |
phases (anyOf 1) | array | Alternative | A list of Phases, to pass phase-specific information used in the swap. |
phases (anyOf 1)[] | Model | Each item | Expand Swap Plan — response body — subscription phases item |
phases (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Supported types of an action as a pending change to a subscription. The type of the action. See [SubscriptionActionType](#type-subscriptionactiontype) for possible values Known values: CANCEL, PAUSE, RESUME, SWAP_PLAN, CHANGE_BILLING_ANCHOR_DATE, COMPLETE |
type (anyOf 2) | null | Alternative |
Referenced models: Swap Plan — response body — subscription phases item
Swap Plan — response body — subscription
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a subscription purchased by a customer. For more information, see [Manage Subscriptions](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions). |
actions | JSON | Optional | |
actions (anyOf 1) | array | Alternative | The list of scheduled actions on this subscription. It is set only in the response from [RetrieveSubscription](api-endpoint:Subscriptions-RetrieveSubscription) with the query parameter of `include=actions` or from [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) with the input parameter of `include:["actions"]`. |
actions (anyOf 1)[] | Model | Each item | Expand Swap Plan — response body — actions item |
actions (anyOf 2) | null | Alternative | |
canceled_date | JSON | Optional | |
canceled_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) to cancel the subscription, when the subscription status changes to `CANCELED` and the subscription billing stops. If this field is not set, the subscription ends according its subscription plan. This field cannot be updated, other than being cleared. |
canceled_date (anyOf 2) | null | Alternative | |
card_id | JSON | Optional | |
card_id (anyOf 1) | string | Alternative | The ID of the [subscriber's](entity:Customer) [card](entity:Card) used to charge for the subscription. |
card_id (anyOf 2) | null | Alternative | |
charged_through_date | string | Optional | The `YYYY-MM-DD`-formatted date up to when the subscriber is invoiced for the subscription. After the invoice is sent for a given billing period, this date will be the last day of the billing period. For example, suppose for the month of May a subscriber gets an invoice (or charged the card) on May 1. For the monthly billing scenario, this date is then set to May 31. Read only: true |
completed_date | JSON | Optional | |
completed_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the subscription enters a terminal state. |
completed_date (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the subscription was created, in RFC 3339 format. Read only: true |
customer_id | string | Optional | The ID of the subscribing [customer](entity:Customer) profile. Read only: true |
id | string | Optional | The Square-assigned ID of the subscription. Maximum length: 255 Read only: true |
invoice_ids | array | Optional | The IDs of the [invoices](entity:Invoice) created for the subscription, listed in order when the invoices were created (newest invoices appear first). Read only: true |
invoice_ids[] | string | Each item | |
location_id | string | Optional | The ID of the location associated with the subscription. Read only: true |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | integer | Alternative | The day of the month on which the subscription will issue invoices and publish orders. Read only: true |
monthly_billing_anchor_date (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
phases | array | Optional | array of phases for this subscription Read only: true |
phases[] | Model | Each item | Expand Swap Plan — response body — subscription phases item |
plan_variation_id | string | Optional | The ID of the subscribed-to [subscription plan variation](entity:CatalogSubscriptionPlanVariation). Read only: true |
price_override_money | JSON | Optional | |
price_override_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money A custom price which overrides the cost of a subscription plan variation with `STATIC` pricing. This field does not affect itemized subscriptions with `RELATIVE` pricing. Instead, you should edit the Subscription's [order template](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#phases-and-order-templates). |
price_override_money (anyOf 2) | null | Alternative | |
source | JSON | Optional | |
source (anyOf 1) | Model | Alternative | Expand Create Subscription — request body — body source The origination details of the subscription. |
source (anyOf 2) | null | Alternative | |
start_date | string | Optional | The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) to start the subscription. Read only: true |
status | string | Optional | Supported subscription statuses. The current status of the subscription. See [SubscriptionStatus](#type-subscriptionstatus) for possible values Known values: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED Read only: true |
tax_percentage | JSON | Optional | |
tax_percentage (anyOf 1) | string | Alternative | The tax amount applied when billing the subscription. The percentage is expressed in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. For example, a value of `7.5` corresponds to 7.5%. |
tax_percentage (anyOf 2) | null | Alternative | |
timezone | string | Optional | Timezone that will be used in date calculations for the subscription. Defaults to the timezone of the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone (for example, `America/Los_Angeles`). Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting. Format: int64 |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Pay Order — response body — order total money, Swap Plan — response body — subscription phases item, Swap Plan — response body — actions item, Create Subscription — request body — body source
Swap Plan — response body — subscription phases item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a phase, which can override subscription phases as defined by plan_id |
order_template_id | JSON | Optional | |
order_template_id (anyOf 1) | string | Alternative | id of order to be used in billing |
order_template_id (anyOf 2) | null | Alternative | |
ordinal | JSON | Optional | |
ordinal (anyOf 1) | JSON | Alternative | |
ordinal (anyOf 1) (anyOf 1) | integer | Alternative | index of phase in total subscription plan Format: int64 |
ordinal (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ordinal (anyOf 2) | null | Alternative | |
plan_phase_uid | JSON | Optional | |
plan_phase_uid (anyOf 1) | string | Alternative | the uid from the plan's phase in catalog |
plan_phase_uid (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | id of subscription phase |
uid (anyOf 2) | null | Alternative |
Update Subscription — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines input parameters in a request to the [UpdateSubscription](api-endpoint:Subscriptions-UpdateSubscription) endpoint. |
subscription | JSON | Optional | |
subscription (anyOf 1) | Model | Alternative | Expand UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED The subscription object containing the current version, and fields to update. Unset fields will be left at their current server values, and JSON `null` values will be treated as a request to clear the relevant data. |
subscription (anyOf 2) | null | Alternative |
Referenced models: UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED
Update Subscription — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines output parameters in a response from the [UpdateSubscription](api-endpoint:Subscriptions-UpdateSubscription) endpoint. |
errors | array | Optional | Errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
subscription | Model | Optional | Expand Swap Plan — response body — subscription The updated subscription. |
Referenced models: Get Shift — response body — errors item, Swap Plan — response body — subscription
UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a subscription purchased by a customer. For more information, see [Manage Subscriptions](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions). |
actions | JSON | Optional | |
actions (anyOf 1) | array | Alternative | The list of scheduled actions on this subscription. It is set only in the response from [RetrieveSubscription](api-endpoint:Subscriptions-RetrieveSubscription) with the query parameter of `include=actions` or from [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) with the input parameter of `include:["actions"]`. |
actions (anyOf 1)[] | Model | Each item | Expand UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED actions array item |
actions (anyOf 2) | null | Alternative | |
canceled_date | JSON | Optional | |
canceled_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) to cancel the subscription, when the subscription status changes to `CANCELED` and the subscription billing stops. If this field is not set, the subscription ends according its subscription plan. This field cannot be updated, other than being cleared. |
canceled_date (anyOf 2) | null | Alternative | |
card_id | JSON | Optional | |
card_id (anyOf 1) | string | Alternative | The ID of the [subscriber's](entity:Customer) [card](entity:Card) used to charge for the subscription. |
card_id (anyOf 2) | null | Alternative | |
charged_through_date | string | Optional | The `YYYY-MM-DD`-formatted date up to when the subscriber is invoiced for the subscription. After the invoice is sent for a given billing period, this date will be the last day of the billing period. For example, suppose for the month of May a subscriber gets an invoice (or charged the card) on May 1. For the monthly billing scenario, this date is then set to May 31. Read only: true |
completed_date | JSON | Optional | |
completed_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the subscription enters a terminal state. |
completed_date (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the subscription was created, in RFC 3339 format. Read only: true |
customer_id | string | Optional | The ID of the subscribing [customer](entity:Customer) profile. Read only: true |
id | string | Optional | The Square-assigned ID of the subscription. Maximum length: 255 Read only: true |
invoice_ids | array | Optional | The IDs of the [invoices](entity:Invoice) created for the subscription, listed in order when the invoices were created (newest invoices appear first). Read only: true |
invoice_ids[] | string | Each item | |
location_id | string | Optional | The ID of the location associated with the subscription. Read only: true |
monthly_billing_anchor_date | integer | Optional | The day of the month on which the subscription will issue invoices and publish orders. Read only: true |
phases | array | Optional | array of phases for this subscription Read only: true |
phases[] | Model | Each item | Expand Create Subscription — request body — body phases item |
plan_variation_id | string | Optional | The ID of the subscribed-to [subscription plan variation](entity:CatalogSubscriptionPlanVariation). Read only: true |
price_override_money | JSON | Optional | |
price_override_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money A custom price which overrides the cost of a subscription plan variation with `STATIC` pricing. This field does not affect itemized subscriptions with `RELATIVE` pricing. Instead, you should edit the Subscription's [order template](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#phases-and-order-templates). |
price_override_money (anyOf 2) | null | Alternative | |
source | JSON | Optional | |
source (anyOf 1) | Model | Alternative | Expand Create Subscription — request body — body source The origination details of the subscription. |
source (anyOf 2) | null | Alternative | |
start_date | string | Optional | The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) to start the subscription. Read only: true |
status | string | Optional | Supported subscription statuses. The current status of the subscription. See [SubscriptionStatus](#type-subscriptionstatus) for possible values One of: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED Read only: true |
tax_percentage | JSON | Optional | |
tax_percentage (anyOf 1) | string | Alternative | The tax amount applied when billing the subscription. The percentage is expressed in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. For example, a value of `7.5` corresponds to 7.5%. |
tax_percentage (anyOf 2) | null | Alternative | |
timezone | string | Optional | Timezone that will be used in date calculations for the subscription. Defaults to the timezone of the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone (for example, `America/Los_Angeles`). Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Referenced models: Create Payment — request body — body tip money, Create Subscription — request body — body source, Create Subscription — request body — body phases item, UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED actions array item
UpdateSubscription — request body — body / subscription / status: PENDING, ACTIVE, CANCELED, DEACTIVATED, PAUSED, COMPLETED actions array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action as a pending change to a subscription. |
effective_date | JSON | Optional | |
effective_date (anyOf 1) | string | Alternative | The `YYYY-MM-DD`-formatted date when the action occurs on the subscription. |
effective_date (anyOf 2) | null | Alternative | |
id | string | Optional | The ID of an action scoped to a subscription. |
monthly_billing_anchor_date | JSON | Optional | |
monthly_billing_anchor_date (anyOf 1) | integer | Alternative | The new billing anchor day value, for a `CHANGE_BILLING_ANCHOR_DATE` action. |
monthly_billing_anchor_date (anyOf 2) | null | Alternative | |
new_plan_variation_id | JSON | Optional | |
new_plan_variation_id (anyOf 1) | string | Alternative | The target subscription plan variation that a subscription switches to, for a `SWAP_PLAN` action. |
new_plan_variation_id (anyOf 2) | null | Alternative | |
phases | JSON | Optional | |
phases (anyOf 1) | array | Alternative | A list of Phases, to pass phase-specific information used in the swap. |
phases (anyOf 1)[] | Model | Each item | Expand Create Subscription — request body — body phases item |
phases (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Supported types of an action as a pending change to a subscription. The type of the action. See [SubscriptionActionType](#type-subscriptionactiontype) for possible values One of: CANCEL, PAUSE, RESUME, SWAP_PLAN, CHANGE_BILLING_ANCHOR_DATE, COMPLETE |
type (anyOf 2) | null | Alternative |
Referenced models: Create Subscription — request body — body phases item