Create a subscription

Create a user's subscription.You must notify us of new subscriptions. This is essential in granting streaming access for any given user, and in royalty and usage reporting back to the licensors.Subscriptions last for a maximum of a month, and must be renewed by the client if the user remains subscribed to the service for a longer duration. The OAuth 1.0 signature base string includes the parameters from the request entity-body when the body is single-part and application/x-www-form-urlencoded. Reference: hereOAuth User token

Form Data
string
required

The unique identifier of the user. For information on creating users click here.

string
required

The current subscription type. Please contact your Client Success Manager for more details on how to supply the correct planCode.

string
required

The status of the subscription must be set as active.

string
required

ISO 4217 currency code, relating to the currency in which the subscriber is paying.

int32
required

The amount in cents charged to the subscriber for the current subscription. If a voucher has been used then recurringFee should be 0.

string

The postcode of the subscriber if applicable.

string
required

ISO 2-character country code where the subscriber is located.

string
required

ISO 8601 UTC date-time format. The date and time when the user first activated any type of subscription. ActivatedAt must be now or earlier.

string
required

ISO 8601 UTC date-time format. The date and time when the current subscription started.CurrentPeriodStartDate must be no more than 1 day from now, and the same as or later than activatedAt.

string

ISO 8601 UTC date-time format. This is the date and time of when a trial period ends. If planCode is equal to trial-unlimited-streaming, then this value must be populated. Otherwise this parameter must not be supplied. TrialEndsAt must be later than currentPeriodStartDate and no more than 100 days from currentPeriodStartDate.

string
required

ISO 8601 UTC date-time format. The date and time when the subscription is due to expire. ExpiryDate must be no more than 1 month from currentPeriodStartDate. If the subscription is a trial, expiryDate must also be the same as or later than trialEndsAt. In the exceptional case that trialEndsAt is more than 1 month from currentPeriodStartDate, expiryDate must be equal to trialEndsAt.

Headers
string
required

Set to: "application/x-www-form-urlencoded"

Language
LoadingLoading…