Get rebilling config for the authenticated sub-account
GET/marketplace/app/:appId/rebilling-config
Get rebilling config for an app subscription and usage plans for the authenticated sub-account. The location is derived from the OAuth token.
Request
Version stringrequired
API Version
Available options
v4appId stringrequired
ID of the app to get rebilling config
Successfully retrieved rebilling config for the app
- application/json
- Schema
- Example (auto)
Schema
plansobjectrequired
The rebilling plans configuration
{
"plans": {
"subscription": [
{
"resellingAmount": 0,
"baseAmount": 999,
"planId": "5ae000000000000000000000",
"features": [
"feature1",
"feature2"
],
"paymentType": "month",
"name": "Monthly Plan - 999",
"paymentTime": "month"
}
],
"usage": [
{
"productType": "workflow_action",
"productName": "Send Group iMessage",
"usageUnit": "action / message",
"meterId": "680b97022b4a34420f5f9b93",
"meterName": "Send Group iMessage",
"fixedPricePerUnit": 0.01001,
"priceType": "fixed",
"minPricePerUnit": "0.01001",
"maxPricePerUnit": "0.01001",
"executionLimitPerCycle": 1000
}
]
}
}