Allow Attach Rebilling
POST/saas/allow-attach-rebilling/:locationId
Marks a SaaS sub-account as awaiting rebilling attach and optionally stores the rebilling configuration that should be applied when the rebilling config is created. Sets payment_pending on the sub-account. Only allowed when the sub-account is in setup_pending state.
Request
API Version
2023-02-21Location ID (Sub-account) to allow attach rebilling for
- application/json
- Body
- Example (auto)
Bodyrequired
Company ID owning the location
Map of rebilling product code to its config. When provided, this gets stored on the sub-account so it can be applied when the rebilling config is created. Omit to only mark the sub-account as awaiting rebilling attach without any pre-configured products. Possible product keys: contentAI, workflow_premium_actions, workflow_ai, conversationAI, whatsApp, reviewsAI, EmailVerification, funnelAI, domainPurchase, Phone, Email, agentStudio, askai, aiStudio.
{
"companyId": "5DP4iH6HLkQsiKESj6rh",
"attachedRebillingConfig": {
"EmailVerification": {
"enabled": true,
"markup": 4,
"price": 0.0025
},
"Phone": {
"enabled": true,
"markup": 3
},
"agentStudio": {
"enabled": true,
"markup": 8,
"price": 0.25
},
"contentAI": {
"enabled": true,
"markup": 5,
"price": 0.09
},
"domainPurchase": {
"enabled": true,
"markup": 3
}
}
}
Allow attach rebilling completed successfully
- application/json
- Schema
- Example (auto)
Schema
Indicates if the allow attach rebilling operation succeeded
Location ID the rebilling config was attached to
Stored rebilling configuration on the location. Markup is the internal percentage value converted from the request multiplier (e.g. 4 -> 300%, 3 -> 200%).
{
"success": true,
"locationId": "AUKAtFVo0lWezBsBQ3FE",
"attachedRebillingConfig": {
"EmailVerification": {
"enabled": true,
"markup": 300,
"price": 0.0025
},
"Phone": {
"enabled": true,
"markup": 200
}
}
}