Generate new expense reference
Changed onCreates a reference for the new expense to be imported into the system Returns a pre-signed url that allows you to send the expense file directly to the system's storage.
In order to finish the job you need to use the pre-signed link from response (data.uploadURL) in another PUT command, attaching the file in question.
Note: The response now returns invoiceId instead of fileId to align with the expense creation workflow.
Request
- Base URLhttps://api.altera.co
- URLhttps://api.altera.co/expenses/generate
- AuthAPI key in header Authorization
Request body
Response
OK
Example response
{
"result": "OK",
"data": {
"invoiceId": 1500
}
}Changes
- info
added the non-success response with the status
- info
- breaking
the
request property's minLength was increased from0to3 - breaking
added the pattern
^[a-f0-9]{32}$to the request property - warning
the
request property's maxLength was set to255 - warning
removed the optional property
/from the response with the status - info
added the new optional request property
- info
added the optional property
/to the response with the status
- breaking