--- title: "Set-BillingEntry" slug: "scripting-set-billingentry" tags: ["Enterprise Only"] updated: 2025-07-16T16:22:09Z published: 2025-07-16T16:22:09Z canonical: "help.agilityblue.com/scripting-set-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. # Set-BillingEntry ## Summary Creates a new billing entry. ```powershell Set-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 ### Updates an existing billing entry ```powershell # Retrieve an existing billing entry using the Get-BillingEntry cmdlet $billingEntry = Get-BillingEntry -Id 89017 # Change some properties $billingEntry.Quantity = 2500 $billingEntry.Notes = "Scripted Updated" # Update the billing entry using the Set-BillinEntry cmdlet $updatedBillingEntry = Set-BillingEntry $billingEntry -BypassCustomFieldValidation # Output a message to the execution log Write-Output "Updated billing entry $($updatedBillingEntry.BillingEntryId)" ``` Results of executing the script: ```plaintext Updated billing entry 89017 ```