PUT /api/accrued-expenses/:id
Updates an existing manual expense. Only expenses withtipo_origen: MANUAL can be updated. XML-imported expenses cannot be modified.
Authentication
This endpoint requires authentication. Include your access token in the request cookies.Path Parameters
string
required
Unique identifier of the expense to update
Request Body
All fields are optional. Only include fields you want to update.string
Updated description or concept of the expense
number
Updated subtotal amount before taxes
number
Updated IVA (VAT) amount
boolean
Payment status of the expense
string
Payment date in ISO 8601 format. Set to
null to clear the payment datestring
Updated category. Set to
null to clear the categoryResponse
string
required
Success message
Expense
required
The updated expense object
Example Request
Example Response
Error Responses
error
Authentication required or token expired
error
Invalid request body or attempting to update an XML expense
error
User does not have permission to update this expense
error
Expense not found
error
Server error occurred