Skip to content

Instantly share code, notes, and snippets.

@vple
Created July 9, 2018 17:43
Show Gist options
  • Save vple/54f7179b3eac47ea81688f254f91e123 to your computer and use it in GitHub Desktop.
Save vple/54f7179b3eac47ea81688f254f91e123 to your computer and use it in GitHub Desktop.
{
"orderDate": "2018-06-26",
"previewAccountInfo": {
"billCycleDay": 0,
"currency": "USD",
"customFields": {
"YextBusinessID__c": "0"
},
"soldToContact": {
"city": "new york",
"country": "US",
"postalCode": "10010",
"state": "NY"
}
},
"previewOptions": {
"previewThruType": "TermEnd",
"previewTypes": [
"ChargeMetrics",
"BillingDocs",
"OrderMetrics"
]
},
"subscriptions": [
{
"orderActions": [
{
"createSubscription": {
"subscribeToRatePlans": [
{
"chargeOverrides": [
{
"pricing": {
"recurringPerUnit": {
"quantity": 1
}
},
"productRatePlanChargeId": "2c92c0f96421d20201642393183a0ab5"
}
],
"productRatePlanId": "2c92c0f86421c3a90164239260f94fb0"
}
],
"terms": {
"autoRenew": true,
"initialTerm": {
"period": 1,
"periodType": "Month",
"startDate": "2018-06-26",
"termType": "TERMED"
},
"renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
"renewalTerms": [
{
"period": 1,
"periodType": "Month"
}
]
}
},
"triggerDates": [
{
"name": "ContractEffective",
"triggerDate": "2018-06-26"
}
],
"type": "CreateSubscription"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment