Ledger balances
Update balance monitor
Update the details of a balance monitor with the Go SDK.
PUT
Update balance monitor
Use
client.BalanceMonitor.Update to update a balance monitor.
Call the method
client.BalanceMonitor.Update
| Field | Type | Description |
|---|---|---|
monitorID | string | Monitor ID to update. |
BalanceID | string | Balance to monitor. |
Condition | MonitorCondition | Threshold rule with Field, Operator, Value, and Precision. |
Condition.Field | string | Balance field to watch (for example credit_balance, debit_balance, balance). |
Condition.Operator | MonitorConditionOperators | Comparison operator: >, <, =, !=, >=, <=. |
Condition.Value | int64 | Threshold amount. |
Condition.Precision | int64 | Currency precision (for example 100 for cents). |
CallBackURL | string | Webhook URL when the condition is met. |
Description | string | Optional description for the monitor. |
Confirm the update
On success, Core returns the updated monitor. Fetch the monitor with get balance monitor to verify the new condition and webhook URL.
Related docs
Balance monitoring
Conditions and webhook behavior.
Update balance monitor
HTTP request and response schema.