POST api/genericimport/save
Save import detail - header, batches and mapping configurations as well
Request Information
URI Parameters
None.
Body Parameters
Mapping Configuration detail
GenericImportHeader| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| MappingConfigId | integer |
None. |
|
| MappingName | string |
None. |
|
| ImportType | GenericImportType |
None. |
|
| StoreIds | string |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedByUser | string |
None. |
|
| GenericImportBatches | Collection of GenericImportBatch |
Relation. This field may not always be loaded or used for updates. |
|
| MappingConfiguration | GenericImportMappingConfiguration |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"mappingConfigId": 2,
"mappingName": "sample string 3",
"importType": 0,
"storeIds": "sample string 4",
"createdDate": "2026-04-03T06:25:00.2676866",
"createdByUser": "sample string 6",
"genericImportBatches": [
{
"$id": "2",
"id": 1,
"fileName": "sample string 2",
"sheetName": "sample string 3",
"fileContentDataUrl": "sample string 4",
"genericImportHeaderId": 5,
"validationStatus": 0,
"processStatus": 0,
"errors": "sample string 6",
"summary": "sample string 7",
"createdDate": "2026-04-03T06:25:00.2676866",
"createdByUser": "sample string 9",
"lastUpdated": "2026-04-03T06:25:00.2676866",
"lastUpdatedByUser": "sample string 10",
"importType": 0,
"mappingName": "sample string 11"
},
{
"$ref": "2"
}
],
"mappingConfiguration": {
"$id": "3",
"id": 1,
"mappingName": "sample string 2",
"importType": 0,
"excludeAPNWithSpecificLength": "sample string 3",
"excludeBarcodeIfStartsWith": "sample string 4",
"ignoreQuotes": true,
"costDecimals": 1,
"priceDecimals": 1,
"headerRowIndex": 5,
"fieldDelimiter": 0,
"addNewRecordIfNoMatch": true,
"genericImportMappingDetails": [
{
"$id": "4",
"id": 1,
"mappingConfigId": 2,
"fileFieldName": "sample string 3",
"applicationFieldName": "sample string 4",
"overrideValue": "sample string 5",
"isKeyColumn": true,
"ignoreWhileUpdating": true,
"removeSpecificCharacters": "sample string 6",
"valueMappings": "sample string 7",
"relationMappings": "sample string 8",
"isEnum": true,
"otherApplicationFieldNames": "sample string 9",
"otherApplicationIgnoreRelationMapping": true,
"gstFieldToAdd": "sample string 11",
"tableName": "sample string 12",
"dateTimeFormat": "sample string 13",
"calculateValueMapping": "sample string 14",
"prefixValue": "sample string 15",
"suffixValue": "sample string 16"
},
{
"$ref": "4"
}
]
}
}
application/xml, text/xml
Sample:
<GenericImportHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager">
<CreatedByUser>sample string 6</CreatedByUser>
<CreatedDate>2026-04-03T06:25:00.2676866+00:00</CreatedDate>
<GenericImportBatches xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.GenericImport">
<d2p1:GenericImportBatch>
<d2p1:CreatedByUser>sample string 9</d2p1:CreatedByUser>
<d2p1:CreatedDate>2026-04-03T06:25:00.2676866+00:00</d2p1:CreatedDate>
<d2p1:Errors>sample string 6</d2p1:Errors>
<d2p1:FileContentDataUrl>sample string 4</d2p1:FileContentDataUrl>
<d2p1:FileName>sample string 2</d2p1:FileName>
<d2p1:GenericImportHeaderId>5</d2p1:GenericImportHeaderId>
<d2p1:Id>1</d2p1:Id>
<d2p1:ImportType>Campaign</d2p1:ImportType>
<d2p1:LastUpdated>2026-04-03T06:25:00.2676866+00:00</d2p1:LastUpdated>
<d2p1:LastUpdatedByUser>sample string 10</d2p1:LastUpdatedByUser>
<d2p1:MappingName>sample string 11</d2p1:MappingName>
<d2p1:ProcessStatus>Failed</d2p1:ProcessStatus>
<d2p1:SheetName>sample string 3</d2p1:SheetName>
<d2p1:Summary>sample string 7</d2p1:Summary>
<d2p1:ValidationStatus>Failed</d2p1:ValidationStatus>
</d2p1:GenericImportBatch>
<d2p1:GenericImportBatch>
<d2p1:CreatedByUser>sample string 9</d2p1:CreatedByUser>
<d2p1:CreatedDate>2026-04-03T06:25:00.2676866+00:00</d2p1:CreatedDate>
<d2p1:Errors>sample string 6</d2p1:Errors>
<d2p1:FileContentDataUrl>sample string 4</d2p1:FileContentDataUrl>
<d2p1:FileName>sample string 2</d2p1:FileName>
<d2p1:GenericImportHeaderId>5</d2p1:GenericImportHeaderId>
<d2p1:Id>1</d2p1:Id>
<d2p1:ImportType>Campaign</d2p1:ImportType>
<d2p1:LastUpdated>2026-04-03T06:25:00.2676866+00:00</d2p1:LastUpdated>
<d2p1:LastUpdatedByUser>sample string 10</d2p1:LastUpdatedByUser>
<d2p1:MappingName>sample string 11</d2p1:MappingName>
<d2p1:ProcessStatus>Failed</d2p1:ProcessStatus>
<d2p1:SheetName>sample string 3</d2p1:SheetName>
<d2p1:Summary>sample string 7</d2p1:Summary>
<d2p1:ValidationStatus>Failed</d2p1:ValidationStatus>
</d2p1:GenericImportBatch>
</GenericImportBatches>
<Id>1</Id>
<ImportType>Campaign</ImportType>
<MappingConfigId>2</MappingConfigId>
<MappingConfiguration xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.GenericImport">
<d2p1:AddNewRecordIfNoMatch>true</d2p1:AddNewRecordIfNoMatch>
<d2p1:CostDecimals>1</d2p1:CostDecimals>
<d2p1:ExcludeAPNWithSpecificLength>sample string 3</d2p1:ExcludeAPNWithSpecificLength>
<d2p1:ExcludeBarcodeIfStartsWith>sample string 4</d2p1:ExcludeBarcodeIfStartsWith>
<d2p1:FieldDelimiter>Comma</d2p1:FieldDelimiter>
<d2p1:GenericImportMappingDetails>
<d2p1:GenericImportMappingDetails>
<d2p1:ApplicationFieldName>sample string 4</d2p1:ApplicationFieldName>
<d2p1:CalculateValueMapping>sample string 14</d2p1:CalculateValueMapping>
<d2p1:DateTimeFormat>sample string 13</d2p1:DateTimeFormat>
<d2p1:FileFieldName>sample string 3</d2p1:FileFieldName>
<d2p1:GSTFieldToAdd>sample string 11</d2p1:GSTFieldToAdd>
<d2p1:Id>1</d2p1:Id>
<d2p1:IgnoreWhileUpdating>true</d2p1:IgnoreWhileUpdating>
<d2p1:IsEnum>true</d2p1:IsEnum>
<d2p1:IsKeyColumn>true</d2p1:IsKeyColumn>
<d2p1:MappingConfigId>2</d2p1:MappingConfigId>
<d2p1:OtherApplicationFieldNames>sample string 9</d2p1:OtherApplicationFieldNames>
<d2p1:OtherApplicationIgnoreRelationMapping>true</d2p1:OtherApplicationIgnoreRelationMapping>
<d2p1:OverrideValue>sample string 5</d2p1:OverrideValue>
<d2p1:PrefixValue>sample string 15</d2p1:PrefixValue>
<d2p1:RelationMappings>sample string 8</d2p1:RelationMappings>
<d2p1:RemoveSpecificCharacters>sample string 6</d2p1:RemoveSpecificCharacters>
<d2p1:SuffixValue>sample string 16</d2p1:SuffixValue>
<d2p1:TableName>sample string 12</d2p1:TableName>
<d2p1:ValueMappings>sample string 7</d2p1:ValueMappings>
</d2p1:GenericImportMappingDetails>
<d2p1:GenericImportMappingDetails>
<d2p1:ApplicationFieldName>sample string 4</d2p1:ApplicationFieldName>
<d2p1:CalculateValueMapping>sample string 14</d2p1:CalculateValueMapping>
<d2p1:DateTimeFormat>sample string 13</d2p1:DateTimeFormat>
<d2p1:FileFieldName>sample string 3</d2p1:FileFieldName>
<d2p1:GSTFieldToAdd>sample string 11</d2p1:GSTFieldToAdd>
<d2p1:Id>1</d2p1:Id>
<d2p1:IgnoreWhileUpdating>true</d2p1:IgnoreWhileUpdating>
<d2p1:IsEnum>true</d2p1:IsEnum>
<d2p1:IsKeyColumn>true</d2p1:IsKeyColumn>
<d2p1:MappingConfigId>2</d2p1:MappingConfigId>
<d2p1:OtherApplicationFieldNames>sample string 9</d2p1:OtherApplicationFieldNames>
<d2p1:OtherApplicationIgnoreRelationMapping>true</d2p1:OtherApplicationIgnoreRelationMapping>
<d2p1:OverrideValue>sample string 5</d2p1:OverrideValue>
<d2p1:PrefixValue>sample string 15</d2p1:PrefixValue>
<d2p1:RelationMappings>sample string 8</d2p1:RelationMappings>
<d2p1:RemoveSpecificCharacters>sample string 6</d2p1:RemoveSpecificCharacters>
<d2p1:SuffixValue>sample string 16</d2p1:SuffixValue>
<d2p1:TableName>sample string 12</d2p1:TableName>
<d2p1:ValueMappings>sample string 7</d2p1:ValueMappings>
</d2p1:GenericImportMappingDetails>
</d2p1:GenericImportMappingDetails>
<d2p1:HeaderRowIndex>5</d2p1:HeaderRowIndex>
<d2p1:Id>1</d2p1:Id>
<d2p1:IgnoreQuotes>true</d2p1:IgnoreQuotes>
<d2p1:ImportType>Campaign</d2p1:ImportType>
<d2p1:MappingName>sample string 2</d2p1:MappingName>
<d2p1:PriceDecimals>1</d2p1:PriceDecimals>
</MappingConfiguration>
<MappingName>sample string 3</MappingName>
<StoreIds>sample string 4</StoreIds>
</GenericImportHeader>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK 3�\i�"�� 5 xl/workbook.xml � (� ����0��&�C���� '.^=x_�b�O�||K $���~;�lܫ7�E>jҾr
!؊1�*�'cQ��h���{23��cg�[��Ȳ+s8A�F{!��+���a�1�iE)����!���!q�IFc�����!���l�H�hP��P����МW�8܇�<#/r�K~A��wXͶ��PK 3�\���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
3�\QRE�' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R144ccbcfed2741d1" /></Relationships>PK 3�\��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO
71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK 3�\q�q�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8Ώ5�M�����$jbG�[��Xp$��U$H%l����I3�����4�39?XӂHR`d�U��Z8�P�f��ш!N�~�=�+ƷЇ0?q�eO���dbG[7a�������,M+��e��e���փ�g+O����Zw�=Q �G�Qh���5�$R�mU;u@,r��@QȒ���p��z}����jQj��*�*ӣ#�\���iY^��R����Q�5W5~��/PK 3�\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK 3�\�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- 3�\i�"�� 5 xl/workbook.xmlPK- 3�\���� � � [Content_Types].xmlPK-
3�\QRE�' ' T _rels/.relsPK- 3�\��4 � � xl/worksheets/sheet1.xmlPK- 3�\q�q�� P , xl/_rels/workbook.xml.relsPK- 3�\Ѓc'2 E
q xl/styles.xmlPK- 3�\�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK 3�\L<�� 5 xl/workbook.xml � (� ����0D�&�C����J�����"
�%m
~�P�7o;��o����t�z�r[���!g����PO��X~���L�H���o�ڳ8�2f�/�v�]h���`�k����i��R��G�d�ug��%�~SE�mA
KZ�J�s%=Rbs9
�K���\��y�e�n�
V��w�PK 3�\���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
3�\�$�o' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Rc250bc16117a41ba" /></Relationships>PK 3�\��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO
71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK 3�\���� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;qB' �n�R.`�q�ؖmJ9[=R�P�Jm����h~OO��|�Xoߦ����5Y��r0}稞Z�n�{yLA.��bB:F��4��uhRGY?�R�S�ʼn�HyΨ�3�IW��!Z���V�'4�0�X
19p�c���-Y����m]7UɗB.DŘB��u������d�"�ɣ��T]>TFs��%�t�Ӽ<S���bӖ2o*ٲ�����PK 3�\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK 3�\�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- 3�\L<�� 5 xl/workbook.xmlPK- 3�\���� � [Content_Types].xmlPK-
3�\�$�o' ' V _rels/.relsPK- 3�\��4 � � xl/worksheets/sheet1.xmlPK- 3�\���� P . xl/_rels/workbook.xml.relsPK- 3�\Ѓc'2 E
u xl/styles.xmlPK- 3�\�/�� � � xl/sharedStrings.xmlPK � �