Set a business's package and overage
package_id sells the business one of the partner’s packages, and the owner then pays for it through the partner’s Stripe account; a business with no owner and no open owner invitation is a 409. null bills it outside LobbyStack. overage sets what minutes and chats past the package’s allowance cost and the monthly cap on them. Values the business already has change nothing.
Authorizations
An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create, phone_numbers:purchase, partner:read, partner.businesses:write, partner.demos:write, partner.packages:write, partner.branding:write, partner.templates:write, partner.team:write, partner.billing:read, partner.billing:write. Only platform keys can hold businesses:create and users:create, and only a key a partner made in its console can hold the partner scopes, which the Partner endpoints use. Only a partner's owners grant partner.billing:read and partner.billing:write.
Path Parameters
The business id.
Body
The package to sell the business, or null to bill it outside LobbyStack. A business whose package subscription is live is a 409: cancel it in Stripe first.
The business's overage on its package. Applied after package_id. A business billed outside LobbyStack has none, so sending it is a 409.
Response
OK