5. Add Attachment

2026-5-11

Call the add attachment api to which you need to pass the orderCheckId, checkShortName, attachmentShortName, contentType, fileName and optionally you can pass the fileCaption. This will generate an url to which you can upload your attachment. You can call it multiple time to add more files.

Written by: Tarun

Overview

Generates a presigned S3 URL for uploading a file/attachment associated with a specific check on a person’s order. The returned uploadUrl can then be used to upload the file directly to cloud storage (e.g., S3) without requiring additional authentication.

Request Details

Method: PUT
Endpoint: {{baseURL}}/person/check
Authentication: Bearer {{token}}.


Request Body

The request body must be sent as raw JSON (application/json):

ParameterTypeDescription
orderCheckIdstringThe unique identifier of the order check.
checkShortNamestringThe short name/identifier of the check type.
attachmentShortNamestringThe short name identifying the type of attachment (e.g., panCard).
fileNamestringThe name of the file to be uploaded (e.g., millowlogo.png).
contentTypestringThe MIME type of the file being uploaded (e.g., image/png).
fileCaptionstringThe additional information about the file. (optional)

Example Body:

{
  "orderCheckId": "{{checkId}}",
  "checkShortName": "{{checkShortName}}",
  "attachmentShortName": "panCard",
  "fileName": "millowlogo.png",
  "contentType": "image/png"
}

Response

Success — 200 OK

Returns a presigned URL that can be used to upload the file directly.

{
  "uploadUrl": "https://..."
}
FieldTypeDescription
uploadUrlstringA presigned URL for uploading the file to cloud storage. Valid for a limited time.