Uploading must be enabled for the accounting firm by Codaclean, and your API key needs the
files:write scope. Otherwise, the call returns 403.Contact Codaclean to enable it.1
Get upload credentials
Call
POST /coda-files/upload for CODA files, or POST /codb-files/upload for CODB files.The response contains temporary AWS credentials (accessKeyId, secretAccessKey, sessionToken), a bucketName, a prefix and an expirationUtc date.2
Upload the files
With an AWS S3 client configured with these credentials, upload each file to
bucketName, with a key that starts with prefix/.The credentials only allow uploading (PutObject) under that prefix.3
Renew the credentials
The credentials stop working at
expirationUtc. Call the endpoint again to get new ones.
