## Add Manual Balance Entry `client.V1.Contracts.AddManualBalanceEntry(ctx, body) error` **post** `/v1/contracts/addManualBalanceLedgerEntry` Add a manual balance entry ### Parameters - **body:** `V1ContractAddManualBalanceEntryParams` - **ID:** `param.Field[string]` ID of the balance (commit or credit) to update. - **Amount:** `param.Field[float64]` Amount to add to the segment. A negative number will draw down from the balance. - **CustomerID:** `param.Field[string]` ID of the customer whose balance is to be updated. - **Reason:** `param.Field[string]` Reason for the manual adjustment. This will be displayed in the ledger. - **SegmentID:** `param.Field[string]` ID of the segment to update. - **ContractID:** `param.Field[string]` ID of the contract to update. Leave blank to update a customer level balance. - **Timestamp:** `param.Field[Time]` RFC 3339 timestamp indicating when the manual adjustment takes place. If not provided, it will default to the start of the segment. ### Example ```go package main import ( "context" "github.com/Metronome-Industries/metronome-go" "github.com/Metronome-Industries/metronome-go/option" ) func main() { client := metronome.NewClient( option.WithBearerToken("My Bearer Token"), ) err := client.V1.Contracts.AddManualBalanceEntry(context.TODO(), metronome.V1ContractAddManualBalanceEntryParams{ ID: metronome.F("6162d87b-e5db-4a33-b7f2-76ce6ead4e85"), Amount: metronome.F(-1000.000000), CustomerID: metronome.F("13117714-3f05-48e5-a6e9-a66093f13b4d"), Reason: metronome.F("Reason for entry"), SegmentID: metronome.F("66368e29-3f97-4d15-a6e9-120897f0070a"), ContractID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"), }) if err != nil { panic(err.Error()) } } ```