Create a subscription
Changed onCreate a subscription for the given user and company using the provided data
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
User's company ID
User ID
Query parameters
Send notification of the subscription's creation. Default value is true.
Request body
Example request
{
"assignedUsers": 12345,
"bundleApplicationId": 12345,
"company": {
"href": "...",
"id": "..."
},
"creationDate": 12345,
"edition": {
"href": "...",
"id": "..."
},
"endDate": 12345,
"externalAccountId": "...",
"id": "...",
"internalId": "...",
"maxUsers": 12345,
"order": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {
"minimumServiceLength": 24,
"endOfContractDate": 123451232,
"gracePeriodEndDate": null,
"cancellationPeriodLimit": null,
"endOfContractGracePeriod": null,
"terminationFee": {
"type": "PERCENTAGE",
"description": "Fee",
"percentage": 100,
"price": null,
"estimatedCost": 324.56
},
"renewal": null
},
"currency": "...",
"customAttributes": [
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
}
],
"discount": {
"href": "...",
"id": "..."
},
"discountId": 12345,
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"nextBillingDate": 12345,
"nextOrder": {
"href": "...",
"id": "..."
},
"oneTimeOrders": [
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
},
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
}
],
"orderLines": [
{},
{}
],
"parameters": [
{
"name": "...",
"value": "..."
},
{
"name": "...",
"value": "..."
}
],
"paymentPlan": {
"allowCustomUsage": true,
"contract": {},
"cost": [
{},
{}
],
"discount": {},
"frequency": "...",
"href": "...",
"id": 12345,
"isPrimaryPrice": true,
"keepBillDateOnUsageChange": true,
"primaryPrice": true,
"separatePrepaid": true,
"tld": "...",
"uuid": "..."
},
"paymentPlanId": 12345,
"previousOrder": {
"href": "...",
"id": "..."
},
"referenceCode": "...",
"salesSupportUser": {
"href": "...",
"id": "..."
},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {
"href": "...",
"id": "..."
}
},
"product": {
"href": "...",
"id": "..."
},
"redirectUrl": "...",
"status": "...",
"upcomingOrder": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {},
"currency": "...",
"customAttributes": [
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
}
],
"discount": {
"href": "...",
"id": "..."
},
"discountId": 12345,
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"nextBillingDate": 12345,
"nextOrder": {
"href": "...",
"id": "..."
},
"oneTimeOrders": [
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
},
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
}
],
"orderLines": [
{},
{}
],
"parameters": [
{
"name": "...",
"value": "..."
},
{
"name": "...",
"value": "..."
}
],
"paymentPlan": {
"allowCustomUsage": true,
"contract": {},
"cost": [
{},
{}
],
"discount": {},
"frequency": "...",
"href": "...",
"id": 12345,
"isPrimaryPrice": true,
"keepBillDateOnUsageChange": true,
"primaryPrice": true,
"separatePrepaid": true,
"tld": "...",
"uuid": "..."
},
"paymentPlanId": 12345,
"previousOrder": {
"href": "...",
"id": "..."
},
"referenceCode": "...",
"salesSupportUser": {
"href": "...",
"id": "..."
},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {
"href": "...",
"id": "..."
}
},
"user": {
"href": "...",
"id": "..."
}
}Response
Created
Example response
{
"assignedUsers": 12345,
"bundleApplicationId": 12345,
"company": {
"href": "...",
"id": "..."
},
"creationDate": 12345,
"edition": {
"href": "...",
"id": "..."
},
"endDate": 12345,
"externalAccountId": "...",
"id": "...",
"internalId": "...",
"maxUsers": 12345,
"order": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {
"minimumServiceLength": 24,
"endOfContractDate": 123451232,
"gracePeriodEndDate": null,
"cancellationPeriodLimit": null,
"endOfContractGracePeriod": null,
"terminationFee": {
"type": "PERCENTAGE",
"description": "Fee",
"percentage": 100,
"price": null,
"estimatedCost": 324.56
},
"renewal": null
},
"currency": "...",
"customAttributes": [
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
}
],
"discount": {
"href": "...",
"id": "..."
},
"discountId": 12345,
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"nextBillingDate": 12345,
"nextOrder": {
"href": "...",
"id": "..."
},
"oneTimeOrders": [
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
},
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
}
],
"orderLines": [
{},
{}
],
"parameters": [
{
"name": "...",
"value": "..."
},
{
"name": "...",
"value": "..."
}
],
"paymentPlan": {
"allowCustomUsage": true,
"contract": {},
"cost": [
{},
{}
],
"discount": {},
"frequency": "...",
"href": "...",
"id": 12345,
"isPrimaryPrice": true,
"keepBillDateOnUsageChange": true,
"primaryPrice": true,
"separatePrepaid": true,
"tld": "...",
"uuid": "..."
},
"paymentPlanId": 12345,
"previousOrder": {
"href": "...",
"id": "..."
},
"referenceCode": "...",
"salesSupportUser": {
"href": "...",
"id": "..."
},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {
"href": "...",
"id": "..."
}
},
"product": {
"href": "...",
"id": "..."
},
"redirectUrl": "...",
"status": "...",
"upcomingOrder": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {},
"currency": "...",
"customAttributes": [
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "TEXT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
}
],
"discount": {
"href": "...",
"id": "..."
},
"discountId": 12345,
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"nextBillingDate": 12345,
"nextOrder": {
"href": "...",
"id": "..."
},
"oneTimeOrders": [
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
},
{
"_embedded": {
"property1": {},
"property2": {}
},
"company": {},
"currency": "...",
"endDate": 12345,
"endOfDiscountDate": 12345,
"frequency": "...",
"id": 12345,
"links": [
{},
{}
],
"nextBillingDate": 12345,
"paymentPlan": {},
"referenceCode": "...",
"salesSupportUser": {},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {}
}
],
"orderLines": [
{},
{}
],
"parameters": [
{
"name": "...",
"value": "..."
},
{
"name": "...",
"value": "..."
}
],
"paymentPlan": {
"allowCustomUsage": true,
"contract": {},
"cost": [
{},
{}
],
"discount": {},
"frequency": "...",
"href": "...",
"id": 12345,
"isPrimaryPrice": true,
"keepBillDateOnUsageChange": true,
"primaryPrice": true,
"separatePrepaid": true,
"tld": "...",
"uuid": "..."
},
"paymentPlanId": 12345,
"previousOrder": {
"href": "...",
"id": "..."
},
"referenceCode": "...",
"salesSupportUser": {
"href": "...",
"id": "..."
},
"startDate": 12345,
"status": "...",
"totalPrice": 12345,
"type": "...",
"user": {
"href": "...",
"id": "..."
}
},
"user": {
"href": "...",
"id": "..."
}
}Changes
- breaking
the request's body type changed from no type to
object(media type: application/xml) - breaking
the request's body type changed from no type to
object(media type: application/json) - breaking
the response's body became nullable (media type: application/xml)
- breaking
the response's body became nullable (media type: application/json)
- breaking
the response's body type changed from no type to
objectfor status (media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/xml) - info
added the new optional request property
(media type: application/json) - info
the request's body became nullable (media type: application/xml)
- info
the request's body became nullable (media type: application/json)
- info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: application/xml) - info
added the optional property
to the response with the status (media type: application/json)
- breaking