Create a billing group
Billing Groups
Create Billing Group
Creates a new billing group for consolidated B2B billing. Groups multiple subscriptions under one customer for a single monthly invoice. All subscriptions in the group are billed on the same day each month.
POST
Create a billing group
Overview
Create a billing group to consolidate multiple subscriptions into a single monthly invoice. This is ideal for B2B customers with multiple devices who prefer simplified billing.Billing groups are typically used for business customers. Individual customers usually have separate billing per subscription.
Request Fields
| Field | Required | Description |
|---|---|---|
customerId | Yes | Business customer ID |
groupName | Yes | Display name for the group |
rentalIds | Yes | Array of subscription IDs to include |
billingDay | Yes | Day of month for billing (1-28) |
Example Request
What Happens
When you create a billing group:- Group created with specified subscriptions
- Subscriptions linked to the billing group
- Future payments consolidated to billing day
- Monthly total calculated automatically
Billing Day Selection
Choose a billing day that works for the customer:| Day | Typical Use |
|---|---|
| 1 | Start of month billing |
| 15 | Mid-month billing |
| 25-28 | End of month (use 28 for all-month compatibility) |
Example: Create Group for New Business Customer
Error Handling
| Error Code | Cause | Solution |
|---|---|---|
CUSTOMER_NOT_FOUND | Invalid customer ID | Verify customer exists |
SUBSCRIPTION_NOT_FOUND | Invalid subscription ID | Verify subscription IDs |
SUBSCRIPTION_DIFFERENT_CUSTOMER | Subscription belongs to different customer | Only group same-customer subscriptions |
INVALID_BILLING_DAY | Day must be 1-28 | Use valid billing day |
Related Endpoints
- List Billing Groups - View all groups
- Update Billing Group - Add/remove subscriptions
- Get Customer - Verify business customer
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Body
application/json