Skip to main content

Upload Stock Take Attachment

POST 

/api/stock-takes/:stockTake/documents

Attaches a file to the stock take. Send as multipart/form-data.

Required scope: inventory:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Accepted file types: pdf, jpg, jpeg, png, gif, webp, heic, doc, docx, xls, xlsx, csv, txt, html, htm, eml, msg, zip. Maximum size: 20 MB.

The file type is decided by the filename extension, not by sniffing the file's contents — so a text or CSV export whose contents happen to look like another format is still accepted. Files whose contents are an executable or script (PE/ELF/Mach-O binaries, shell/PHP/Perl/Python scripts, JARs, MSIs) are rejected whatever they are named, with That file contains a program or script and cannot be attached.

The optional description is what makes an attachment useful months later — record what the file is and where it came from.

Authentication: Requires Bearer token.

Requires scope: inventory:write

Requires permission: inventory.count

Request

Responses

OK

Response Headers
    Content-Type