Skip to main content

Create billing plan

POST 
/wireless/billing_plans

Creates a new billing plan. The billing plan name must be unique.

Request

Body

required

Create billing plan

    data_allocation_per_sim integer

    How much data can each SIM card consume

    default boolean

    Is the billing plan the default billing plan

    name string

    The name of the billing plan

    regions string[]

    The regions for which this billing plan applies

    type string

    The type of billing plan

Responses

200: Successful response

401: Authentication error

403: Authorization error

Request samples


curl -L 'https://api.telnyx.com/wireless/billing_plans' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"data_allocation_per_sim": 0,
"default": true,
"name": "string",
"regions": [
"string"
],
"type": "string"
}'

Response samples


{
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"data_allocation_per_sim": 0,
"default": true,
"inserted_at": "string",
"name": "string",
"regions": [
"string"
],
"type": "string",
"updated_at": "string"
}
}