Subscriptions
Create an add-on instance
Changed onCreate an add-on instance on the given subscription using the given data
post/billing/v1/subscriptions/{subscriptionId}/addons
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
subscriptionIdstring required
Subscription ID
Request body
Example request
{
"creationDate": 12345,
"offeringUuid": "...",
"order": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {},
"currency": "...",
"customAttribute": [
{
"attributeType": "MULTISELECT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "MULTISELECT",
"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": "..."
},
"oneTimeOrder": [
{
"_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": {}
}
],
"orderLine": [
{},
{}
],
"parameter": [
{
"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": "..."
}
},
"status": "...",
"units": 12345,
"uuid": "..."
}Response
Created
Example response
{
"creationDate": 12345,
"offeringUuid": "...",
"order": {
"_embedded": {
"property1": {},
"property2": {}
},
"activated": true,
"company": {
"href": "...",
"id": "..."
},
"contract": {},
"currency": "...",
"customAttribute": [
{
"attributeType": "MULTISELECT",
"name": "...",
"value": "...",
"valueKeys": [
"...",
"..."
]
},
{
"attributeType": "MULTISELECT",
"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": "..."
},
"oneTimeOrder": [
{
"_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": {}
}
],
"orderLine": [
{},
{}
],
"parameter": [
{
"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": "..."
}
},
"status": "...",
"units": 12345,
"uuid": "..."
}Changes
- info
endpoint added
- info