Skip to main content

Update an Expense

To update an Expense you have to build a JSON payload as described here.

You must send the HTTP header:

  • Content-Type: application/json.
  • Accept: application/json.
  • X-SistemaTS-PinCode with your pinCode
  • X-SistemaTS-Username with your Username
  • X-SistemaTS-Password with your Password

The endpoint is PUT /sistema-ts/expenses/{ExpenseId}.

If everything is fine you will get the information regarding the request sent to SistemaTS.

{
"uuid": <Expense UUID>,
"outcome": <Operation outcome>,
"messages": [
{
"code": <Operation code>,
"description": <Operation description>,
"type": <Operation type>
}
],
"protocol": <Protocol number>
}

here are the references to the SistemaTS documentation