Updates a expense
Changed onHandles the updating of a expense by id
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The Expense Hashed ID
Query parameters
Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Response
Returns the expense object
Example response
{
"id": "Opnel5aKBz",
"user_id": "Opnel5aKBz",
"assigned_user_id": "Opnel5aKBz",
"project_id": "Opnel5aKBz",
"client_id": "Opnel5aKBz",
"invoice_id": "Opnel5aKBz",
"invoice_currency_id": "1",
"currency_id": "2",
"invoice_category_id": "Opnel5aKBz",
"recurring_expense_id": "Opnel5aKBz",
"tax_amount": 10,
"tax_name1": "GST",
"tax_name2": "VAT",
"tax_name3": "IVA",
"tax_rate1": 10,
"tax_rate2": 10,
"tax_rate3": 10,
"amount": 10,
"foreign_amount": 10,
"exchange_rate": 0.8,
"date": "2022-12-01",
"payment_date": "2022-12-01",
"should_be_invoiced": true,
"is_deleted": true,
"invoice_documents": true,
"updated_at": 1434342123,
"archived_at": 1434342123,
"calculate_tax_by_amount": true,
"category_id": "Opnel5aKBz",
"number": "EXP-0001",
"purchase_order_id": "Opnel5aKBz",
"tax_amount1": 10,
"tax_amount2": 5,
"tax_amount3": 2.5,
"transaction_id": "txn_1234567890",
"uses_inclusive_taxes": true,
"vendor_id": "Opnel5aKBz"
}Changes
- info
the response optional property
became read-only for the status
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info