Create document
Upload by API call
Invoice document
POST https://api.notify.cm/v2/documents/{invoice_id}
Authentication: API keys
With the Document API you can upload your document data to Notify and connect it to the right invoice data. Just send the PDF data in Base64 format together with the right file information.
Update your file
Each time you send a new file to Notify for a specific invoice, the document will be updated. There's no specific update function.
Headers
Name
Type
Description
Authorization
string
Your test or live API key
Request Body
Name
Type
Description
Invoice
string
The unique Notify invoice id
Filename
string
The complete original file name. Max 250 characters
Mediatype
string
Should be application/pdf
Content
string
The PDF file content in Base64 format
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
Was this helpful?