Create subscription
Changed onNote: This endpoint is being deprecated. // Create a new subscription on behalf of a user who is a member of a marketplace company linked to the current reseller company
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"targetCompanyId": "698555fc-bc65-4163-9fee-16308edec41b",
"targetUserId": "2c061df6-4313-45e0-8709-a0ca19b0aaa3",
"parentSubscriptionId": "386626c0-53e2-4515-8450-4a720bb5d029",
"paymentPlanId": "30ccf1e7-1937-40cb-8e73-851a226fd4ea",
"orderLines": [
{
"unit": "USER",
"quantity": "1"
}
]
}Response
Success
Example response
{
"id": "386626c0-53e2-4515-8450-4a720bb5d029",
"createdOn": 1529083173000,
"activeOrder": {
"id": "1553",
"paymentPlanId": "30ccf1e7-1937-40cb-8e73-851a226fd4ea",
"orderLines": [
{
"unit": "USER",
"quantity": "1"
}
],
"status": "PENDING MANUAL RECOVERY",
"frequency": "One Time",
"totalFee": "USD350.00",
"editionName": "Edition",
"createdOn": 1529083173000
},
"company": {
"id": "698555fc-bc65-4163-9fee-16308edec41b",
"name": "Company A"
},
"user": {
"id": "2c061df6-4313-45e0-8709-a0ca19b0aaa3",
"firstName": "Michael",
"lastName": "Jordan"
},
"applicationName": "AUTO_DISCOUNTS_APP",
"pendingEvent": "SUBSCRIPTION_CHANGE",
"status": "ACTIVE",
"referenceCode": "bundle09"
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking