Subscription
Replaces the Subscription resource.
Replaces the Subscription resource.
put/subscriptions/{id}
Path parameters
idstring required
Resource identifier
Request body
Example request
{
"id": "quickbooks-726",
"integration": "quickbooks",
"srcId": "GH2JK-67283H-YW82KHX-2883KK-KS78S",
"status": true,
"balance": 500045,
"totalRevenue": 387687,
"productPrice": 4999,
"currencyCode": "EUR",
"currentPeriodStart": "1655792028",
"currentPeriodEnd": "1653977628",
"nextPeriodStart": "1653977628",
"cancelAtEndOfPeriod": true,
"signupId": "user123",
"signupRevenue": "250",
"couponCode": "PROMOCODE",
"customerId": "123",
"productId": "321",
"creditCardId": "4250",
"created": "2013-11-18T02:17:40.080Z",
"modified": "2013-11-18T02:17:40.080Z",
"customerFirstName": "Jane",
"customerLastName": "Doe",
"startDate": "2013-11-18T02:17:40.080Z",
"endDate": "2015-11-18T02:17:40.080Z",
"planName": "Basic Plan",
"activated": "Jan 23 2023",
"remainingIntervals": 12,
"monthlyRevenue": 500000,
"netMonthlyRevenue": 300000,
"contractStartDate": "2013-11-18T02:17:40.080Z",
"expiredTimestamp": "2013-11-18T02:17:40.080Z",
"planInterval": "Monthly",
"numOfIntervals": 12
}Response
Subscription resource updated
Example response
{
"id": "quickbooks-726",
"integration": "quickbooks",
"srcId": "GH2JK-67283H-YW82KHX-2883KK-KS78S",
"status": true,
"balance": 500045,
"totalRevenue": 387687,
"productPrice": 4999,
"currencyCode": "EUR",
"currentPeriodStart": "1655792028",
"currentPeriodEnd": "1653977628",
"nextPeriodStart": "1653977628",
"cancelAtEndOfPeriod": true,
"signupId": "user123",
"signupRevenue": "250",
"couponCode": "PROMOCODE",
"customerId": "123",
"productId": "321",
"creditCardId": "4250",
"created": "2013-11-18T02:17:40.080Z",
"modified": "2013-11-18T02:17:40.080Z",
"customerFirstName": "Jane",
"customerLastName": "Doe",
"startDate": "2013-11-18T02:17:40.080Z",
"endDate": "2015-11-18T02:17:40.080Z",
"planName": "Basic Plan",
"activated": "Jan 23 2023",
"remainingIntervals": 12,
"monthlyRevenue": 500000,
"netMonthlyRevenue": 300000,
"contractStartDate": "2013-11-18T02:17:40.080Z",
"expiredTimestamp": "2013-11-18T02:17:40.080Z",
"planInterval": "Monthly",
"numOfIntervals": 12
}