bill_update_ad_hoc_charge
Updates an ad hoc charge. Fails if the charge is on a bill that is not a draft.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | UpdateBillAdHocChargeInput! | Yes |
Return Type
Mutation
mutation bill_update_ad_hoc_charge(
$data: UpdateBillAdHocChargeInput!
) {
bill_update_ad_hoc_charge(
data: $data
) {
request_id
complexity
charge {
id
legacy_id
name
description
occurred_at
labor_unit_id
unit_amount
rate
bill_id
}
}
}Variables
{
"data": {
"customer_account_id": "QWNjb3VudDoxMjM0",
"adhoc_charge_id": "Q2hhcmdlOjEyMzQ=",
"name": "July Fulfillment Fees",
"description": "Customer requested expedited handling.",
"occurred_at": "2026-07-09T15:30:00Z",
"labor_unit_id": "Q2hhcmdlOjEyMzQ=",
"unit_amount": 2,
"rate": 19.99
}
}Response
{
"data": {
"bill_update_ad_hoc_charge": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"charge": {id: "QWRIb2NDaGFyZ2U6MTIzNA=="}
}
}
}