Sending an Expense
To send 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-PinCodewith your pinCodeX-SistemaTS-Usernamewith your UsernameX-SistemaTS-Passwordwith your Password
The endpoint is POST /sistema-ts/expenses.
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