Skip to main content

Create a billing group

POST 
/billing_groups

Request

Body

    name string

    A name for the billing group

Responses

200: Expected billing group response to a valid request

Response Headers

    500: Unexpected error

    Response Headers

      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
      }
      ]
      }