Subscriptions
Retrieve a subscription
Changed onRetrieve the subscription for the given subscription ID
get/billing/v1/subscriptions/{subscriptionId}
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
The unique identifier for the subscription
Response
OK
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
- info
endpoint added
- info