Invoices
Add or update miscellaneous charges in Invoice
Add or update miscellaneous charges in Invoice
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
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
invoice_id
string
requiredBody
application/json
items
object[]
requiredResponse
200 - application/json
data
object[]
requiredcurl --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"
}
]
}