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-08-02T23:26:11.2320089", "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-08-02T23:26:11.2320089", "createdByUser": "sample string 9", "lastUpdated": "2025-08-02T23:26:11.2320089", "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-08-02T23:26:11.2320089+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-08-02T23:26:11.2320089+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-08-02T23:26:11.2320089+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-08-02T23:26:11.2320089+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-08-02T23:26:11.2320089+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 E�[�3�з 5 xl/workbook.xml � (� ����0��&�C���R8q���{-�m�?ik��H�yۙ��v�d��4f@5j_��lE���'cAϻ�8��,���Z�� t ��\#�h/��x������ j\Q�I���!�4{H�|����]LD��M��/�B�)�q��(:��� F���pO�"��� y��Y�❽�(�~7_PK E�[���� � [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 E�[2v^�' ' _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="R22b6b68107ad4505" /></Relationships>PK E�[��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 E�[�ү$� P xl/_rels/workbook.xml.rels � (� ��KN�0@�byOl�n>U�nذ-��;��Q;�]�gc���V� �X��j4��'�|�lvo�H^Ї�ن��S�\;ؾ���=Tt���q�1M3́�jb�08鐹m�t�O:���l�p�=����%��2��2�����G� m��^�?�)9h�cl�O)�kY�R��6t/�B�5T��\I�S���e�����/dZ QJP�:J~W�=��ѧK/���ڪ�x)�Ց+]�U�����PK E�[Ѓ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 E�[�/�� � 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- E�[�3�з 5 xl/workbook.xmlPK- E�[���� � [Content_Types].xmlPK- E�[2v^�' ' V _rels/.relsPK- E�[��4 � � xl/worksheets/sheet1.xmlPK- E�[�ү$� P . xl/_rels/workbook.xml.relsPK- E�[Ѓc'2 E u xl/styles.xmlPK- E�[�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK E�[���� 5 xl/workbook.xml � (� ����0��&�C�����N\�z�^`� �'m >��o�vfg�:k;�Z��#'�J[a�) q��IPa7h+�Ҿ��A����I�$�01/�r\�W�?,g,��q /�%�P�>�K����E���b"���o�F�~RLB��Fѹ�>cdK�G�m�&�KV@v�3��w%���PK E�[���� � [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 E�[���z' ' _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="R2c9f3f4948af4ad9" /></Relationships>PK E�[��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 E�[��� P xl/_rels/workbook.xml.rels � (� ��Mn� F��f_cS�O'�n�Mscc�Hۜ���W(J�֑��&+4���������<��at��"ˁ�UN�vh���v��'Ӎ`�%��ĆL���A�e�܂6uz�gS��Hu�R��%�k\3������G��N�f��0}u�br�~���O��(�D�[�Vv���=/�W��7S�<a����W2]�yY�`������Q?G�6�vZ�+���j�xQ�Iq�����/PK E�[Ѓ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 E�[�/�� � 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- E�[���� 5 xl/workbook.xmlPK- E�[���� � [Content_Types].xmlPK- E�[���z' ' V _rels/.relsPK- E�[��4 � � xl/worksheets/sheet1.xmlPK- E�[��� P . xl/_rels/workbook.xml.relsPK- E�[Ѓc'2 E v xl/styles.xmlPK- E�[�/�� � � xl/sharedStrings.xmlPK � �