Skip to main content
SaasVersion: 2023-02-21

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.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:saas/company.read
Auth methods:OAuthPrivate Integration
Token type:Agency Token

Request​

Headers

Versionstringrequired

API Version

Available options2023-02-21

Path Parameters

locationIdstringrequired

Location ID (Sub-account) to allow attach rebilling for

Example:AUKAtFVo0lWezBsBQ3FE

Body

companyIdstringrequired

Company ID owning the location

Example:5DP4iH6HLkQsiKESj6rh
attachedRebillingConfigobject

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.

Example
{
  "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
  }
}

Response

Allow attach rebilling completed successfully

successbooleanrequired

Indicates if the allow attach rebilling operation succeeded

Example:true
locationIdstringrequired

Location ID the rebilling config was attached to

Example:AUKAtFVo0lWezBsBQ3FE
attachedRebillingConfigobjectrequired

Stored rebilling configuration on the location. Markup is the internal percentage value converted from the request multiplier (e.g. 4 -> 300%, 3 -> 200%).