Enrolls a customer in a subscription.
POST
/v2/subscriptions
Enrolls a customer in a subscription.
If you provide a card on file in the request, Square charges the card for the subscription. Otherwise, Square sends an invoice to the customer's email address. The subscription starts immediately, unless the request includes the optional start_date
. Each individual subscription is associated with a particular location.
For more information, see Create a subscription.
Guide
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.
The ID of the subscription plan variation created using the Catalog API.
The ID of the customer subscribing to the subscription plan variation.
The YYYY-MM-DD
-formatted date to start the subscription. If it is unspecified, the subscription starts immediately.
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 expires, the specified canceled_date
sets the date when the subscription stops through the end of the last cycle.
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%.
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.
The ID of the subscriber's card to charge. If it is not specified, the subscriber receives an invoice via email with a link to pay for their subscription.
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.
The day-of-the-month to change the billing date to.
The newly created subscription.
For more information, see Subscription object.