Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Body

application/json

Delegates a subscription to a different customer, who becomes responsible for managing it. The original customer remains the paying customer for this subscription, unless payment was already delegated to the target customer, in which case the target customer becomes the paying customer as well. This is useful for B2B scenarios where a different entity should manage the subscription while the original customer continues handling payment.

targetCustomerId
string
required

The unique identifier of the customer who will manage this subscription going forward. This customer must already exist in your Stigg account. The paying customer for the subscription does not change as a result of this request.

Maximum string length: 255

Response

The updated subscription object.

Response object

data
Subscription · object
required

Customer subscription to a plan