Skip to navigation

File Upload

View as Markdown

Upload a file into BIPO and attach it to an existing record. Send the file as a link (AWS, BIPO downloads it, e.g. from an AWS S3 pre-signed URL) or as Base64 content in the request (BASE64). See the examples for each.

FieldTypeRequiredDescription
AttachmentSourceStringYesWhere the file is attached. See the table below.
RequestIDStringYesID of the record the file belongs to, taken from that record’s Export API (see table below).
EmployeeCodeStringNoEmployee the file belongs to. Maximum 60 characters.
Source.TypeStringYesAWS = BIPO downloads the file from a URL. BASE64 = file content is sent in the request.
Source.UrlStringConditionalRequired when Source.Type is AWS. Full http/https link, e.g. an AWS S3 pre-signed URL. The file name is taken from the link.
Source.FileNameStringConditionalRequired when Source.Type is BASE64. Include the file extension, e.g. Sample.pdf.
Source.ContentStringConditionalRequired when Source.Type is BASE64. File content encoded as Base64.
AttachmentSourceAttachment’s destinationRequestID from
EmployeeAttachmentPersonnel > Employee > AttachmentAttachmentID
ContractEmployeeDetailPersonnel > Employee > Contract > DetailAttachmentID
EmployeeCertificatePersonnel > Employee > CertificateAttachmentID
EmployeeFamilyPersonnel > Employee > Family (Vietnam only)AttachmentID
AcknowledgementAttachmentPersonnel > AcknowledgementAttachmentID
IdentityConfirmationDocumentAttachmentPersonnel > My Number Request (Japan only)IdentityConfirmationDocument
JoinRequestAttachmentLife Cycle > Onboarding > AttachmentAttachmentID
JoinRequestCertificateLife Cycle > Onboarding > CertificateAttachmentID
ResignRequestLife Cycle > Offboarding Exit RequestAttachmentRequestID
ContractRenewalLife Cycle > Contract RenewalAttachmentID
ContractRequestLife Cycle > Contract RequestAttachmentID
ExitInterviewRecordLife Cycle > Exit InterviewAttachmentRequestID
PersonalDeclarationLife Cycle > Personal DeclarationAttachmentRequestID
ClockingRequestAttendance > Clocking RequestRequestID
OTAuthRequestAttendance > OT AuthorizationRequestID
ShiftChangeRequestAttendance > Shift ChangeRequestID
LeaveLeave > Leave RecordRequestID
LeaveCFLeave > Leave Carry ForwardRequestID
ClaimRecordClaim > Claim RecordAttachmentID
ClaimRequestClaim > Claim RequestRequestID

Note: The record must already exist. A RequestID that is not found is rejected and nothing is stored.

Note: File size and file type follow the system’s attachment upload settings (maximum 100 MB).

Note: The response returns the new file’s RecordID.

Note: For AWS, the URL must be reachable from the BIPO server and still valid when the API is called.

Request

This endpoint expects a string.

Response

OK
okboolean
dataobject