Subscription Tokens

putSubscriptionTokensId

PUT
/subscriptionTokens/{id}

Update a Subscription Token, which represents an association between a Subscription and a means of payment (Token) for that Subscription.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this resource or The Subscription Token ID.

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 Token Request

Update Subscription Token Request

token?string

The identifier of the Token resource that this Subscription Token is associated with. This resource identifies the means of payment for the Subscription identified in the 'subscription' field of this resource.

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/subscriptionTokens/t1_stn_680064d2e16ab367d7dffz0" \  -H "Content-Type: application/json" \  -d '{    "token": "ae1abb3aaa18e4c374ca83fa75a7fff6",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_stn_680064d2e16ab367d7dffz0",        "created": "2025-04-16 22:17:54.9444",        "modified": "2025-04-16 22:17:54.9444",        "creator": "t1_log_653ae6ec24a9357ace75ebf",        "modifier": "t1_log_653ae6ec24a9357ace75ebf",        "subscription": "t1_sbn_680064d2db9dbdc8d3e9a2b",        "token": "95d4205826ef9e5e45891182220136ee",        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}