1
List new files
Call
POST /codb-files with a JSON body, at least {}.By default, the response only contains files you have not acknowledged yet.Files are grouped by customer, then by payroll provider and year.Useful filters: enterpriseNumber, payrollProvider, accountPeriod, statementDate, processingDate, statementNumber.Set includePdf to true to also get the PDF version of each file.Required scope: files:read2
Download each file
Each file has a
urls.codb link (and urls.pdf when requested).These are pre-signed URLs: download them with a plain GET, without the API headers.3
Acknowledge each download
Once a file is stored on your side, call
DELETE /codb-files/{fileId} with the file’s id.The file is not deleted. It is marked as downloaded for your API key and the current user, and no longer appears in the next list.Acknowledging the same file twice returns 409.Download a file again
To list files that were already acknowledged, send"redownload": true.
Good to know
- In CODB responses,
statementDateis the generation date of the file andstatementNumberits sequence number. statementNumberis a string. It is usually numeric, but it can combine several sequence numbers (for example"0103-0203"): do not convert it to a number.accountPeriodis an integer, asYYYYMM(for example202609).- The list is not paginated. Acknowledge files as you go to keep responses small.
- Acknowledgements are per API key and per user.

