POST api/genericimport/save
Save import detail - header, batches and mapping configurations as well
Request Information
URI Parameters
None.
Body Parameters
Mapping Configuration detail
GenericImportHeaderName | 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": "2025-10-04T23:57:26.7263885", "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": "2025-10-04T23:57:26.7263885", "createdByUser": "sample string 9", "lastUpdated": "2025-10-04T23:57:26.7263885", "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", "gstFieldToAdd": "sample string 10", "tableName": "sample string 11", "dateTimeFormat": "sample string 12", "calculateValueMapping": "sample string 13", "prefixValue": "sample string 14", "suffixValue": "sample string 15" }, { "$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>2025-10-04T23:57:26.7263885+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>2025-10-04T23:57:26.7263885+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>2025-10-04T23:57:26.7263885+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>2025-10-04T23:57:26.7263885+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>2025-10-04T23:57:26.7263885+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 13</d2p1:CalculateValueMapping> <d2p1:DateTimeFormat>sample string 12</d2p1:DateTimeFormat> <d2p1:FileFieldName>sample string 3</d2p1:FileFieldName> <d2p1:GSTFieldToAdd>sample string 10</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:OverrideValue>sample string 5</d2p1:OverrideValue> <d2p1:PrefixValue>sample string 14</d2p1:PrefixValue> <d2p1:RelationMappings>sample string 8</d2p1:RelationMappings> <d2p1:RemoveSpecificCharacters>sample string 6</d2p1:RemoveSpecificCharacters> <d2p1:SuffixValue>sample string 15</d2p1:SuffixValue> <d2p1:TableName>sample string 11</d2p1:TableName> <d2p1:ValueMappings>sample string 7</d2p1:ValueMappings> </d2p1:GenericImportMappingDetails> <d2p1:GenericImportMappingDetails> <d2p1:ApplicationFieldName>sample string 4</d2p1:ApplicationFieldName> <d2p1:CalculateValueMapping>sample string 13</d2p1:CalculateValueMapping> <d2p1:DateTimeFormat>sample string 12</d2p1:DateTimeFormat> <d2p1:FileFieldName>sample string 3</d2p1:FileFieldName> <d2p1:GSTFieldToAdd>sample string 10</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:OverrideValue>sample string 5</d2p1:OverrideValue> <d2p1:PrefixValue>sample string 14</d2p1:PrefixValue> <d2p1:RelationMappings>sample string 8</d2p1:RelationMappings> <d2p1:RemoveSpecificCharacters>sample string 6</d2p1:RemoveSpecificCharacters> <d2p1:SuffixValue>sample string 15</d2p1:SuffixValue> <d2p1:TableName>sample string 11</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 -�D[��� 5 xl/workbook.xml � (� ���� ��M��(�ҟ���zG\ Q� �}��F��zۙ��v��|�8ס��m(|�U�CAH 7�M;��1I�"NJ-�v�m�F�gمx�y������?�0x�mP ���pmq��!ĦfO c�e2ֺ���"�)6ö�Y!� ���c4;���G�|�����d�k{��J���`����/PK -�D[���� � [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 -�D[��9' ' _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="R44993ff9369549b5" /></Relationships>PK -�D[��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 -�D[6u� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8v�|P�nذ-����q�Ďl��Xp$��U$H%l����I3�����4�q�V�@�)��wpJ殁�v��Q�<�0G�W\���4�S��I����r��0ɔ���Y����hX2�I��C�� �:M��`���1Z�� C����R����L�;��p%��u�WB���ZL���w��iW�Ռ1�VR0d7��2�~J!_z�,/�T�9�L���_ˋ����PK -�D[Ѓ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 -�D[�/�� � 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- -�D[��� 5 xl/workbook.xmlPK- -�D[���� � [Content_Types].xmlPK- -�D[��9' ' V _rels/.relsPK- -�D[��4 � � xl/worksheets/sheet1.xmlPK- -�D[6u� P . xl/_rels/workbook.xml.relsPK- -�D[Ѓc'2 E t xl/styles.xmlPK- -�D[�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK -�D[�fDy� 5 xl/workbook.xml � (� ����0��&�C���� 8q���{m�H����[J ��mgv��ig�_k_�'�a�k \�f�d����,&�Ď��0X��`"))��ʚ �x��� �AD=�(͔���P�4�+�C����.&"k�����/�B�i���"�(;W��#ߨ4��s����-���a-�~�_PK -�D[���� � [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 -�D[_+d' ' _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="R5f1a934bfb484dcb" /></Relationships>PK -�D[��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 -�D[��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞؎�|P�n�a[z��Q;�]�gc���V� �X��j4��'�|���o�H^0���x���S^����C��z��Ly"�a�$��Mi~�4*��������a�)����T'�#-�hX2�I��C�� w^�'t�0}��-br�����O)�k�E�y���J)�h��B���ZL���w���US��(�A-�quW+���N��BM ުJּ�j����ћ��|PK -�D[Ѓ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 -�D[�/�� � 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- -�D[�fDy� 5 xl/workbook.xmlPK- -�D[���� � � [Content_Types].xmlPK- -�D[_+d' ' U _rels/.relsPK- -�D[��4 � � xl/worksheets/sheet1.xmlPK- -�D[��� P - xl/_rels/workbook.xml.relsPK- -�D[Ѓc'2 E s xl/styles.xmlPK- -�D[�/�� � � xl/sharedStrings.xmlPK � �