--- title: "Get-BillingType" slug: "scripting-get-billingtype" tags: ["Enterprise Only"] updated: 2025-07-16T16:33:37Z published: 2025-07-16T16:33:37Z canonical: "help.agilityblue.com/scripting-get-billingtype" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.agilityblue.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-BillingType ## Summary Retrieves an existing billing type. ```powershell Get-BillingType    -Id ``` Returns a [billing type](https://apidocs.agilityblue.com/#3844386f-3e3c-485f-965e-4e1687cfc841) object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Id | Int32 | Yes | The billing type id. | ## Examples ### Get an existing billing type This example retrieves a specific billing type and outputs it as CSV text. ```powershell # Retrieve a specific billing type by id $data = Get-BillingType -Id 187 Write-Output "Retrieved billing type $($data.BillingTypeId)" # Convert the billing type to output as JSON $jsonOutput = $data | ConvertTo-Json -Depth 10 # For debug purposes, convert the data to output as JSON so we can see all the fields Write-Output "" Write-Output "JSON Results:" $jsonOutput = $data | ConvertTo-Json -Depth 10 # Output the data Write-Output $jsonOutput ``` Results of executing the script: ```json {  "BillingTypeId": 187,  "BillingCode": "Data Hosting - Relativity",  "Description": "Relativity Data Hosting (GB)",  "Category": null,  "DateIsRequired": false,  "NarrativeIsRequired": false,  "StandardUnitPrice": 50.00,  "UnitName": "GB",  "NumberOfEntries": 16,  "Deleted": false,  "CreatedByFullName": "Max Miller",  "CreatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "CreatedOn": "2016-06-18T16:25:42.824967-05:00",  "CreatedBy": null,  "LastUpdatedByFullName": "Max Miller",  "LastUpdatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "LastUpdatedOn": "2016-06-18T16:25:42.824967-05:00",  "LastUpdatedBy": null,  "IsVisible": true } ```