POST api/Import/CustomImport/Upload
Upload a file to the custom importer
Request Information
URI Parameters
None.
Body Parameters
In request Body: File details
ImportDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| FileName |
FileName with extension |
string |
Required |
| ImportFormat |
Custom Import Name |
string |
Required |
| DateCreated | date |
Nullable |
|
| ImportStatus |
Pending = 0, Validated = 1, Imported = 2, Error = 3, Importing = 4 |
integer |
None. |
| DateImported | date |
Nullable |
|
| Detail | string |
None. |
|
| Rows |
How many rows are in the import. |
integer |
Nullable |
| Progress |
The progress of the import. |
integer |
Nullable |
| DateImportStarted | date |
Nullable |
|
| DateImportFinished | date |
Nullable |
|
| Disabled |
Indicates whether the import has been disabled (Timeout, etc.) |
boolean |
None. |
| ImportFormatVersion | date |
Nullable |
|
| IsPartial |
Indicates whether the import is a partial import. |
boolean |
None. |
| Guid |
Unique GUID of the Import |
globally unique identifier |
Nullable |
| FileData |
Byte Array of file data - used in import |
Collection of byte |
None. |
| DocumentId | globally unique identifier |
None. |
|
| PayrollId | globally unique identifier |
Nullable |
|
| SheetIds | Collection of globally unique identifier |
Nullable |
Request Formats
application/json, text/json
Sample:
{
"FileName": "sample string 1",
"ImportFormat": "sample string 2",
"DateCreated": "2026-09-26T03:38:25.8929889+01:00",
"ImportStatus": 3,
"DateImported": "2026-09-26T03:38:25.8929889+01:00",
"Detail": "sample string 4",
"Rows": 1,
"Progress": 1,
"DateImportStarted": "2026-09-26T03:38:25.8929889+01:00",
"DateImportFinished": "2026-09-26T03:38:25.8929889+01:00",
"Disabled": true,
"ImportFormatVersion": "2026-09-26T03:38:25.8929889+01:00",
"IsPartial": true,
"Guid": "61768e4e-2431-498a-94ce-1f257e4389c8",
"FileData": "QEA=",
"DocumentId": "b48bc996-c56d-495a-bd3e-7c023b6f0ce1",
"PayrollId": "8731a7ab-e7cb-4313-b722-34bc87a80508",
"SheetIds": [
"fcef5b96-2437-4659-a29b-c42e88ef0d5f",
"31b9408d-2686-400c-a853-246e9a9e61fd"
]
}
application/xml, text/xml
Sample:
<ImportDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models">
<DateCreated>2026-09-26T03:38:25.8929889+01:00</DateCreated>
<DateImportFinished>2026-09-26T03:38:25.8929889+01:00</DateImportFinished>
<DateImportStarted>2026-09-26T03:38:25.8929889+01:00</DateImportStarted>
<DateImported>2026-09-26T03:38:25.8929889+01:00</DateImported>
<Detail>sample string 4</Detail>
<Disabled>true</Disabled>
<DocumentId>b48bc996-c56d-495a-bd3e-7c023b6f0ce1</DocumentId>
<FileData>QEA=</FileData>
<FileName>sample string 1</FileName>
<Guid>61768e4e-2431-498a-94ce-1f257e4389c8</Guid>
<ImportFormat>sample string 2</ImportFormat>
<ImportFormatVersion>2026-09-26T03:38:25.8929889+01:00</ImportFormatVersion>
<ImportStatus>3</ImportStatus>
<IsPartial>true</IsPartial>
<PayrollId>8731a7ab-e7cb-4313-b722-34bc87a80508</PayrollId>
<Progress>1</Progress>
<Rows>1</Rows>
<SheetIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:guid>fcef5b96-2437-4659-a29b-c42e88ef0d5f</d2p1:guid>
<d2p1:guid>31b9408d-2686-400c-a853-246e9a9e61fd</d2p1:guid>
</SheetIds>
</ImportDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Status message
ResultWithMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| result |
'OK', 'Error' |
string |
None. |
| message |
Returns if result is Error |
string |
None. |
| returnValue | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": "OK"
}
{
"result": "Error",
"message": "Unable to save: the..."
}
application/xml, text/xml
Sample:
<ResultWithMessage>
<result>OK</result>
</ResultWithMessage>
<ResultWithMessage>
<result>Error</result>
<message>Unable to save: the...</message>
</ResultWithMessage>