---
title: "Add or update miscellaneous charges in upcoming Invoice for a account"
method: PUT
path: "/accounts/{account_id}/miscellaneous_charges"
tags: ["Invoices"]
---

# Add or update miscellaneous charges in upcoming Invoice for a account

`PUT /accounts/{account_id}/miscellaneous_charges`

Add or update miscellaneous charges in upcoming Invoice for a account

## Path parameters

- `account_id` string, required

## Request body

- ManageMiscellaneousChargesRequest — Payload to update custom line items
  - `items` object[], required
    - `name` string, required — Name of the miscellaneous charge
    - `rate` number — Rate of the charge
    - `quantity` number — Quantity of the charge
    - `value` string — Value of the charge Possible values: 1. Fixed number [Example: 10] 2. Json Logic [Example: {"*": [{"var": "um.lineitem.id"}, 0.1]}] You can use all line item ids as variables in the json logic
    - `considerForRevenue` boolean — Specifies whether to consider this miscellaneous charge for revenue or not

## Response `200`

Response for Miscellaneous Charges Request

- MiscellaneousChargesResponse — Miscellaneous charges response
  - `data` object[], required
    - `name` string, required — Name of the miscellaneous charge
    - `rate` number — Rate of the charge
    - `quantity` number — Quantity of the charge
    - `value` string — Value of the charge Possible values: 1. Fixed number [Example: 10] 2. Json Logic [Example: {"*": [{"var": "um.lineitem.id"}, 0.1]}] You can use all line item ids as variables in the json logic
    - `considerForRevenue` boolean — Specifies whether to consider this miscellaneous charge for revenue or not

## Other responses

- `400` — Error response
- `401` — Error response
- `403` — Error response
- `404` — Error response
- `429` — Error response
- `default` — Error response

---

[API](https://skmtc.net/togaihq/apis/togai-apis.md) · [All operations](https://skmtc.net/togaihq/apis/togai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/togaihq/togai-apis/revisions/442f5d8f4aa0/schema)
