A subscription is created for an organization under a service. The subscription will contain one (1) product and, optionally addons. The subscription terms will be based on the product.
API Details
OrganizationServiceSubscriptions
Operation
Swagger Description
Method
API
Create a subscription
Creates subscription for organization custom service
200[ { "resellerId": "9230183c-6aeb-412f-9c7b-5a94d3cf82dc", "organizationId": "b8bc8c08-1062-40c3-8317-39f09dce6ab8", "serviceId": "8806367b-001a-4632-afb4-27a7fad7660c", "productId": "b5861376-08af-48c5-acbf-ef935b0d9c74", "name": "Google Workspace (pay as you go)", "description": "Add and delete users at any time. You will be billed at the end of the month for the actual number of accounts in service during the month.", "itemCode": "payg", "subscriptionPeriod": 1, "billingInterval": 1, "minimumQuantity": 1.00000000, "maximumQuantity": null, "trialPeriod": 0, "enforceTrial": false, "cost": "5.00", "price": "10.00", "currencyCode": "EUR", "customProperties": [ { "type": "textbox", "id": "entitlementId", "name": "Entitlement Id", "visible": false } ] } ]
400{ "Name": [ "The Name field is required." ], "ProductId": [ "The ProductId field is required." ] } [ { "errorCode": 13, "errorName": "NotFound", "errorMessage": "The organization do not have this service. Please add the service to the organization before creating a subscription." } ]
API Field Definitions
Field
Description
name*
The friendly name of the subscription.
productId*
A unique identifier of an existing product under the service. Can be retrieved using /organizations/{organizationId}/services/{serviceId}/products
poNumber
A Purchase Order (PO) number. This field is optional.
isTrial
Determines if the subscription should be hidden from billing report.
hideFromBilling
Determines if the subscription should be hidden from the billing report.
quantity
An integer that defines the number of licenses for the subscription.
customPropertiesData
Custom Properties Custom properties can be set when the subscription is created or updated if they have been defined
addons
Addons are required for the product. Can be retrieved using /api/resellers/{resellerId}/services/{serviceId}/products/{productId}/addons