Add-BillingEntry
  • 1 Minute to read
  • Dark
    Light
  • PDF

Add-BillingEntry

  • Dark
    Light
  • PDF

Article summary

Summary

Updates an existing billing entry.

Add-BillingEntry
    -Entry
    -BypassCustomFieldValidation

Returns a billing entry object.

Parameters

ParameterTypeRequired?Notes
EntryBilling Entry ObjectYes
BypassCustomFieldValdiationSwitchNo, Defaults to falseIgnores required field requirement for custom fields when the entry is saved.

Examples

Create a new billing entry

# Create a billing entry object
$billingEntry = @{
    BillingTypeId = 98
    Narrative = "Scripted Billing Entry."
    Quantity = 0.50
    UnitPrice = 100.00
    Date = "2023-10-24T15:00:00-05:00"
}

# Pass the billing entry object to the Add-BillingEntry command to create the entry. This example bypasses custom field validation by including the switch parameter
$createdBillingEntry = Add-BillingEntry -Entry $billingEntry -BypassCustomFieldValidation

# Use Write-Output to log the execution results
Write-Output "Billing entry $($createdBillingEntry.BillingEntryId) created"

Results of executing the script:

Billing entry 89033 created