Get-BillingType
  • 1 Minute to read
  • Dark
    Light
  • PDF

Get-BillingType

  • Dark
    Light
  • PDF

Article summary

Summary

Retrieves an existing billing type.

Get-BillingType
    -Id

Returns a billing type object.

Parameters

ParameterTypeRequired?Notes
IdInt32YesThe billing type id.

Examples

Get an existing billing type

This example retrieves a specific billing type and outputs it as CSV text.

# 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:

{
  "BillingTypeId": 187,
  "BillingCode": "Data Hosting - Relativity\r\n",
  "Description": "Relativity Data Hosting (GB)",
  "Category": null,
  "DateIsRequired": false,
  "NarrativeIsRequired": false,
  "StandardUnitPrice": 50.00,
  "UnitName": "GB",
  "NumberOfEntries": 16,
  "Deleted": false,
  "CreatedByFullName": "Service Account",
  "CreatedById": "410e109b-6ff5-4442-9670-cd5e3cd82a7f",
  "CreatedOn": "2016-06-18T16:25:42.824967-05:00",
  "CreatedBy": null,
  "LastUpdatedByFullName": "Service Account",
  "LastUpdatedById": "410e109b-6ff5-4442-9670-cd5e3cd82a7f",
  "LastUpdatedOn": "2016-06-18T16:25:42.824967-05:00",
  "LastUpdatedBy": null,
  "IsVisible": true
}