Skip to main content
Version: 2021-04-15

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

Version stringrequired

API Version

Available options2021-04-15
locationId stringrequired

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

application/json

Bodyrequired

    companyIdstringrequired

    Company ID owning the location

    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.

application/json

Allow attach rebilling completed successfully

Schema
    successbooleanrequired

    Indicates if the allow attach rebilling operation succeeded

    locationIdstringrequired

    Location ID the rebilling config was attached to

    attachedRebillingConfigobjectrequired

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