import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.BillingGroup.list(page={"number":1,"size":20})
{- "data": [
- {
- "created_at": "2019-10-15T10:07:15.527Z",
- "deleted_at": null,
- "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "name": "My billing group name",
- "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "billing_group",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Expected billing group response to a valid request
{- "name": "string"
}
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "deleted_at": null,
- "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "name": "My billing group name",
- "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "billing_group",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Expected billing group response to a valid request
object (BillingGroup) | |||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.BillingGroup.retrieve('id') res.delete()
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "deleted_at": null,
- "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "name": "My billing group name",
- "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "billing_group",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Expected billing group response to a valid request
object (BillingGroup) | |||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.BillingGroup.retrieve("id")
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "deleted_at": null,
- "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "name": "My billing group name",
- "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "billing_group",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Expected billing group response to a valid request
object (BillingGroup) | |||||||||||||||
|
{- "name": "string"
}
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "deleted_at": null,
- "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
- "name": "My billing group name",
- "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "billing_group",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}