PUT
/
invoices
/
{invoice_id}
/
miscellaneous_charges
curl --request PUT \
  --url https://api.togai.com/invoices/{invoice_id}/miscellaneous_charges \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "name": "charge 1",
      "value": "100"
    },
    {
      "name": "charge 2",
      "value": "200"
    },
    {
      "name": "json logic charge",
      "value": "{\"var\": \"um.linitem.id\"}"
    }
  ]
}'
{
  "data": [
    {
      "name": "charge 1",
      "value": "100"
    },
    {
      "name": "charge 2",
      "value": "200"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

invoice_id
string
required

Body

application/json
items
object[]
required

Response

200 - application/json
data
object[]
required