--- title: "Add-BillingEntry" slug: "scripting-add-billingentry" tags: ["Enterprise Only"] updated: 2025-07-16T16:21:47Z published: 2025-07-16T16:21:47Z canonical: "help.agilityblue.com/scripting-add-billingentry" --- > ## 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. # Add-BillingEntry ## Summary Updates an existing billing entry. ```powershell Add-BillingEntry    -Entry    -BypassCustomFieldValidation ``` Returns a [billing entry](https://apidocs.agilityblue.com/#d3a09e70-73c5-4384-98e0-fc361342ce8e) object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Entry | [Billing Entry](https://apidocs.agilityblue.com/#d3a09e70-73c5-4384-98e0-fc361342ce8e) Object | Yes | | | BypassCustomFieldValdiation | Switch | No, Defaults to `false` | Ignores required field requirement for custom fields when the entry is saved. | ## Examples ### Create a new billing entry ```powershell # 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: ```plaintext Billing entry 89033 created ```