Skip to navigation

Overview

View as Markdown

Response Structure of Import and Delete API:

The API returns a structured response indicating the processing result of each record submitted in the request payload. Records are categorized into validRecords and invalidRecords based on validation and processing outcomes.

{
"data": {
"key": "<string>",
"validRecords": [
{
"key": "<string>",
"message": "<string>"
}
],
"invalidRecords": [
{
"key": "<string>",
"errorMessage": "<string>"
}
]
},
"errorCode": "<string|null>",
"errors": [
"<string>"
],
"messages": [
"<string>"
]
}

Field Descriptions:

data (object)

Contains the processing results grouped by record status.

FieldTypeDescription
keystringDefines the composite key fields used to uniquely identify each record in the request data. Example: “EmployeeCode;DateStart”
validRecordsarrayList of records that were successfully validated and processed.
validRecords.keystring**Composite key value derived from the request.
Example: “000002;2025-01-01;BIPO”
validRecords.messagestringResult message
Example: “Added”, “Updated”, “Deleted”
invalidRecordsarrayList of records that failed validation or processing.
invalidRecords.keystring**Composite key value derived from the request.
Example: “000002;;BIPO”
invalidRecords.messagestringDescription of the validation or processing error.
Example: “Mandatory Date Start must not be empty.”
errorCodestringSystem-level error code
errorsarraySummary messages describing the overall import result.
Example: “1 record(s) imported. 1 failed record(s)“.
messagesarraySuccessful message
Example: “10 record(s) imported.”

**Key Mapping Rule:

The key value in both validRecords and invalidRecords is derived from the fields specified in data.key, using the corresponding values from each record in the request data.

  • Fields are concatenated using a semicolon (;)

  • If a key field value is missing, it will be represented as empty

RequestKey return in Response
”EmployeeCode”: “000002”,
“DateStart”: “2025-01-01T00:00:00”,
“CompanyCode”: “BIPO"
"000002;2025-01-01;BIPO”