POST api/Import/CustomImport/ImportAll
Upload a file to the custom importer
Request Information
URI Parameters
None.
Body Parameters
In request Body: File details
ImportDetailName | Description | Type | Additional information |
---|---|---|---|
FileName |
FileName with extension |
string |
Required |
ImportFormat |
Custom Import Name |
string |
Required |
DateCreated | date |
Nullable |
|
ImportStatus | integer |
None. |
|
DateImported | date |
Nullable |
|
Detail | string |
None. |
|
Rows | integer |
Nullable |
|
Progress | integer |
Nullable |
|
DateImportStarted | date |
Nullable |
|
DateImportFinished | date |
Nullable |
|
Disabled | boolean |
None. |
|
ImportFormatVersion | date |
Nullable |
|
IsPartial | boolean |
None. |
|
Guid | 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": "2024-12-23T07:01:38.8323905+00:00", "ImportStatus": 3, "DateImported": "2024-12-23T07:01:38.8323905+00:00", "Detail": "sample string 4", "Rows": 1, "Progress": 1, "DateImportStarted": "2024-12-23T07:01:38.8323905+00:00", "DateImportFinished": "2024-12-23T07:01:38.8323905+00:00", "Disabled": true, "ImportFormatVersion": "2024-12-23T07:01:38.8323905+00:00", "IsPartial": true, "Guid": "8bf6fea5-65d1-47c6-98eb-b5ea14c95e40", "FileData": "QEA=", "DocumentId": "d114c5a9-e032-4647-82f7-616bd453cd6c", "PayrollId": "31a5b27b-3072-4dde-8fef-eb8882740432", "SheetIds": [ "81fc4e4a-25c6-4784-b986-f743a60fa23f", "b8ae6b10-42e6-4cc9-ac5e-165dff67558f" ] }
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>2024-12-23T07:01:38.8323905+00:00</DateCreated> <DateImportFinished>2024-12-23T07:01:38.8323905+00:00</DateImportFinished> <DateImportStarted>2024-12-23T07:01:38.8323905+00:00</DateImportStarted> <DateImported>2024-12-23T07:01:38.8323905+00:00</DateImported> <Detail>sample string 4</Detail> <Disabled>true</Disabled> <DocumentId>d114c5a9-e032-4647-82f7-616bd453cd6c</DocumentId> <FileData>QEA=</FileData> <FileName>sample string 1</FileName> <Guid>8bf6fea5-65d1-47c6-98eb-b5ea14c95e40</Guid> <ImportFormat>sample string 2</ImportFormat> <ImportFormatVersion>2024-12-23T07:01:38.8323905+00:00</ImportFormatVersion> <ImportStatus>3</ImportStatus> <IsPartial>true</IsPartial> <PayrollId>31a5b27b-3072-4dde-8fef-eb8882740432</PayrollId> <Progress>1</Progress> <Rows>1</Rows> <SheetIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:guid>81fc4e4a-25c6-4784-b986-f743a60fa23f</d2p1:guid> <d2p1:guid>b8ae6b10-42e6-4cc9-ac5e-165dff67558f</d2p1:guid> </SheetIds> </ImportDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Status message
ResultWithMessageName | 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>