Subscriptions

putSubscriptionsId

PUT
/subscriptions/{id}

Update a Subscription, A Subscription specifies both starting and ending dates and the customer is charged according to the schedule in the associated Plan during the interval between these dates.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this subscription.

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Update Subscription Request

Update Subscription Request

plan?string

The identifier of the Plan that this Subscription is associated with. The Plan determines the frequency and amount of each payment.

statementEntity?string

For a plan that is attached to a billing, this is the paying entity to match to the generated statements of that billing for which the recurring payments will be made.

firstTxn?string

The identification of the first transaction processed through this subscription. This is used internally to process subsequent transactions.

start?integer

The date on which the Subscription should start. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the future.

finish?integer

The date on which the Subscription should finish. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the future.

tax?integer

The amount of the total sum of this Subscription that is made up of tax. This field is specified as an integer in cents.

descriptor?string

The descriptor used in this Subscription. This field is stored as a text string and must be between 1 and 50 characters long. If a value is not set, an attempt is made to set a default value from the merchant information.

txnDescription?string

The description of the Txn that will be created through this Subscription.

order?string

The order of the Txn that will be created through this Subscription.

origin?subscriptionOrigin

The origin of the Txn that will be created through this Subscription.

  • 2 - Customer will be subscribing through eCommerce.
  • 3 - Customer will be subscribing by Mail Order/Telephone.
  • 4 - Originated with Apple Pay.
  • 5 - Originated as a Successful 3D Secure transaction.
  • 6 - Originated as an Attempted 3D Secure transaction.
  • 8 - Originated in a Payframe.

Value in

  • 2
  • 3
  • 4
  • 5
  • 6
  • 8
authentication?string

Authentication token for 3D Secure transactions.

authenticationId?string

Authentication reference ID for 3D Secure transactions.

failures?integer

The current count of consecutive payment failures for this subscription.

maxFailures?integer

The maximum consecutive amount of payment failures to allow for this subscription before inactivating it.

inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X PUT "https://example.com/subscriptions/t1_sbn_680064d2db9dbdc8d3e9a0z" \  -H "Content-Type: application/json" \  -d '{    "plan": "t1_pln_680064c9e9920768c5f7156",    "statementEntity": "paying entity",    "firstTxn": "t1_txn_680064d333e8a4e6cc85903",    "start": 20250416,    "finish": 20250416,    "tax": 0,    "descriptor": "Subscription Descriptor",    "txnDescription": "subscription1",    "order": "t183l8nsmsiq",    "origin": 2,    "authentication": "Authentication token",    "authenticationId": "Authentication reference ID",    "failures": 0,    "maxFailures": 0,    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_sbn_680064d2db9dbdc8d3e9a0z",        "created": "2025-04-16 22:17:54.9157",        "modified": "2025-04-16 22:17:57.0415",        "creator": "t1_log_653ae6ec24a9357ace75ebf",        "modifier": "t1_log_65e23f228adad41b7a2a0a9",        "plan": "t1_pln_680064c9e9920768c5f7156",        "start": 20250416,        "finish": 20250416,        "tax": 0,        "descriptor": "",        "inactive": 0,        "frozen": 0,        "failures": 0,        "maxFailures": 0,        "origin": 2,        "firstTxn": "t1_txn_680064d333e8a4e6cc85903",        "txnDescription": "subscription1",        "order": "t183l8nsmsiq",        "authentication": "",        "authenticationId": "",        "statementEntity": ""      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}