Ask credit note for an Expense

To ask credit note for 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 POST /sistema-ts/expenses/{ExpenseId}/credit-note.

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

Copy
Copied
{
  "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