Skip to main content

Create a billing group

POST 
/billing_groups

Create a billing group

Request

Body

required

New billing group object

    name string

    A name for the billing group

Responses

200: Expected billing group response to a valid request

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/billing_groups' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string"
}'

Response samples


{
"data": {
"record_type": "billing_group",
"id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
"name": "My billing group name",
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z",
"deleted_at": null
}
}