Create document
Upload by API call
Invoice document
Headers
Name
Type
Description
Request Body
Name
Type
Description
HTTP/1.1 201 Created
Content-Type: application/hal+json
{
"resource": "document",
"invoice": "a0f0660d-6c8d-422b-8114-e363b260521e",
"filename": "test.pdf"
}HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"status": 400,
"title": "Bad Request",
"detail": "Error in PDF file content"
}HTTP/1.1 404 Not Found
Content-Type: application/json
{
"status": 404,
"title": "Not Found",
"detail": "No invoice exists with id I_dont_exist."
}Example
Response
Last updated