Subscription Actions and Events

Applies to: Subscriptions APISubscriptions API

Learn how to track Square subscriptions with actions and events.

Link to section

Overview

You can manage and follow the lifecycle of subscriptions on the Square Developer platform by tracking subscription actions and events. ActionsActions are scheduled future changes to subscriptions. EventsEvents represent past subscription changes.

Link to section

Actions

To see future actions scheduled for subscriptions, call RetrieveSubscriptionRetrieveSubscription or SearchSubscriptionsSearchSubscriptions. Set the include query parameter to actions, which includes the actions associated with the subscription in the response.

Retrieve subscription

Copy

The following is an example response:

Copy
Expand

The possible action types associated with subscriptions are:

After an action occurs, it becomes an eventevent.

Link to section

Cancel an action

If you want to cancel an action before it occurs (for example, if a PAUSE action is scheduled but no longer necessary), call DeleteSubscriptionActionDeleteSubscriptionAction with the subscription_id and action_id to cancel the action.

Delete subscription action

Copy
Link to section

Events

Events represent past subscription changes. Call ListSubscriptionEventsListSubscriptionEvents to retrieve events for a specific subscription. The event types are:

  • START_SUBSCRIPTION - The subscription was created.
  • STOP_SUBSCRIPTION - The subscription was canceled.
  • PAUSE_SUBSCRIPTION - The subscription was paused.
  • PLAN_CHANGE - The SubscriptionPlanVariation was swapped with another (see Swap Subscription Plan VariationsSwap Subscription Plan Variations).
  • RESUME_SUBSCRIPTION - The subscription was resumed after being paused.
  • DEACTIVATE_SUBSCRIPTION - The subscription was deactivated.deactivated.
  • BILLING_ANCHOR_DATE_CHANGED - The subscription's billing_anchor_date was changed.

List subscription events

Copy

The following is an example response:

Copy
Expand