PUT
/
accounts
/
{account_id}
/
miscellaneous_charges
curl --request PUT \
  --url https://api.togai.com/accounts/{account_id}/miscellaneous_charges \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "name": "charge 1",
      "value": "100"
    },
    {
      "name": "qty & rate charge",
      "rate": 20,
      "quantity": 10
    },
    {
      "name": "json logic charge",
      "value": "{\"var\": \"um.linitem.id\"}"
    }
  ]
}'
{
  "data": [
    {
      "name": "charge 1",
      "value": "100"
    },
    {
      "name": "charge 2",
      "rate": 20,
      "quantity": 10,
      "value": "200"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

account_id
string
required

account_id corresponding to an account

Body

application/json
items
object[]
required

Response

200 - application/json
data
object[]
required