Adds a file to the specified submission.
Path Parameters
- Type: stringFormat: uuididrequired
The unique identifier of the submission.
Body·
Uploads a file to be attached to a submission.
- Type: stringfilerequired
Base64-encoded content of the file to be uploaded. Only the Base64-encoded string, without any prefix (e.g., 'data:image/jpeg;base64,'), should be assigned. The file must be a PDF, JPEG, TIFF, PNG or BMP, and no larger than 15 MB (15,728,640 bytes) once decoded.
- Type: stringfile
Name max length:64requiredDesired name for the file uploaded
- Type: string | nulldocument
Description Description of the file uploaded
- Type: string | nulldocument
Subtype Sub type of the file uploaded.
- Type: string | nulldocument
Type Type of the file uploaded
- Type: string | nullentity
Reference Id The client provided reference id for the individual, company or trust that this relates to
- Type: string | nullrequirement
Reference Id The reference id of the requirement
Responses
- 401
Unauthorized
- 403
Forbidden
Request Example for post/v1/accounts/submissions/{id}/files
curl https://stage-api.openmarkets.com.au/v1/accounts/submissions/123e4567-e89b-12d3-a456-426614174000/files \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"file": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlL1BhZ2U+PgplbmRvYmoK",
"fileName": "drivers-licence.pdf",
"requirementReferenceId": "a6f0c1d2-5b3e-4a77-9c21-0e8b6f4d1a90",
"entityReferenceId": "CRM-4821",
"documentType": "IdentityDocument",
"documentSubtype": "DriversLicence",
"documentDescription": "Victorian drivers licence, front and back"
}'
{
"fileName": "drivers-licence.pdf",
"succeeded": true
}
