Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Subscriptions

  • Create subscription

  • Bulk swap plan

  • Search subscriptions

  • Retrieve subscription

  • Update subscription

  • Delete subscription action

  • Change billing anchor date

  • Cancel subscription

  • List subscription events

  • Pause subscription

  • Resume subscription

  • Swap plan

  • Webhooks

  • subscription.created

  • subscription.updated

<- Subscriptions API

Subscriptions API

All versions ->

Swap planBeta

POST

 /v2/subscriptions/{subscription_id}/swap-plan

Schedules a SWAP_PLAN action to swap a subscription plan variation in an existing subscription.

For more information, see Swap Subscription Plan Variations.

Permissions:ORDERS_WRITE, PAYMENTS_WRITE, SUBSCRIPTIONS_WRITE, CUSTOMERS_READ, INVOICES_WRITE, ITEMS_READ

Guide

Swap Subscription Plan Variations

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

subscription_id

string

Required

The ID of the subscription to swap the subscription plan for.

Link to section

Request body

Link to section

new_plan_variation_id

string

The ID of the new subscription plan variation.

This field is required.

Link to section

phases

A list of PhaseInputs, to pass phase-specific information used in the swap.

Link to section

Response fields

Link to section

errors

Errors encountered during the request.

Link to section

subscription

The subscription with the updated subscription plan.

Link to section

actions

A list of a SWAP_PLAN action created by the request.

Link to section

Examples

All versions ->

POST /v2/subscriptions/{subscription_id}/swap-plan
curl https://connect.squareup.com/v2/subscriptions/9ba40961-995a-4a3d-8c53-048c40cafc13/swap-plan \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "new_plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7", "phases": [ { "ordinal": 0, "order_template_id": "uhhnjH9osVv3shUADwaC0b3hNxQZY" } ] }'

Response JSON

{ "subscription": { "id": "9ba40961-995a-4a3d-8c53-048c40cafc13", "location_id": "S8GWD5R9QB376", "plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7", "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G", "status": "ACTIVE", "price_override_money": { "amount": 2000, "currency": "USD" }, "version": 3, "created_at": "2023-06-20T21:53:10Z", "timezone": "America/Los_Angeles", "source": { "name": "My Application" }, "phases": [ { "uid": "98d6f53b-40e1-4714-8827-032fd923be25", "ordinal": 0, "order_template_id": "E6oBY5WfQ2eN4pkYZwq4ka6n7KeZY", "plan_phase_uid": "C66BKH3ASTDYGJJCEZXQQSS7" } ] }, "actions": [ { "id": "f0a1dfdc-675b-3a14-a640-99f7ac1cee83", "type": "SWAP_PLAN", "effective_date": "2023-11-17", "new_plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7", "phases": [ { "ordinal": 0, "order_template_id": "uhhnjH9osVv3shUADwaC0b3hNxQZY" } ] } ] }

Error descriptions

400 Bad request

{ "errors": [ { "code": "CUSTOMER_NOT_FOUND", "category": "INVALID_REQUEST_ERROR" } ] }