Skip to main content
PATCH
/
v1
/
billing-groups
/
{billingGroupId}
Update a billing group
curl --request PATCH \
  --url https://api-eu.flexportal.io/v1/billing-groups/{billingGroupId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-ID: <tenant-id>' \
  --data '
{
  "groupName": "<string>",
  "billingDay": 14,
  "rentalIds": [
    "<string>"
  ],
  "notes": "<string>",
  "status": "active"
}
'
{
  "success": true,
  "message": "<string>",
  "billingGroup": {
    "billingGroupId": "<string>",
    "tenantId": "<string>",
    "customerId": "<string>",
    "groupName": "<string>",
    "billingDay": 14,
    "totalMonthlyAmount": 1,
    "currency": "<string>",
    "status": "active",
    "createdBy": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "rentalIds": [],
    "activeRentalCount": 0,
    "notes": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Path Parameters

billingGroupId
string
required

The billing group ID

Body

application/json
groupName
string
Minimum string length: 1
billingDay
integer
Required range: 1 <= x <= 28
rentalIds
string[]
notes
string
status
enum<string>
Available options:
active,
inactive

Response

Billing group updated

success
enum<boolean>
required
Available options:
true,
false
message
string
required
billingGroup
object
required