Creates a new subscription binding a customer or a thing to a service-level.
The type field defines the kind of subscription (THING_SERVICE_LEVEL, CUSTOMER_SERVICE_LEVEL, THING_SERVICE, CUSTOMER_SERVICE) and determines whether serviceLevelId or serviceId must be provided, together with thingId or customerId.
Required permissions: READ_SUBSCRIPTION, WRITE_SUBSCRIPTION.
The name of the tenant (e.g. acme).
The details of the subscription being created.
The customer identifier.
The thing identifier.
The timestamp this subscription has been activated.
The timestamp indicating how long the subscription is valid.
The identifier of the subscribed service-level in case of type equal to THING_SERVICE_LEVEL or CUSTOMER_SERVICE_LEVEL.
The identifier of the subscribed service in case of type equal to THING_SERVICE, or CUSTOMER_SERVICE.
The flag indicating whether the free period has already been used.
The subscription type (THING_SERVICE_LEVEL, CUSTOMER_SERVICE_LEVEL, THING_SERVICE, CUSTOMER_SERVICE).
The identifier of the Stripe subscription associated with this Subscription for automatic payment.
Successfully created.
Request data not valid.
The error response.
User not authenticated.
The error response.
User not authorized.
The error response.
API call rate limit exceeded.
The error response.
Internal server error.
The error response.