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
NameDescriptionTypeAdditional 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-06-14T06:01:07.6016023",
  "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-06-14T06:01:07.6016023",
      "createdByUser": "sample string 9",
      "lastUpdated": "2025-06-14T06:01:07.6016023",
      "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-06-14T06:01:07.6016023+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-06-14T06:01:07.6016023+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-06-14T06:01:07.6016023+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-06-14T06:01:07.6016023+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-06-14T06:01:07.6016023+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

integer

Response 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#0�Z�̍��5xl/workbook.xml �(�����0��&�C����8q���{)�m�?ik��-%�x�3;��ԋqSō>j־r
!؊�(�/Ƃ���8�B��E�8J��o:���+q0� ��BZ�7�?,o�����
��Ը=���fO	�O2{��Dd��T�`�ERH3
�X`%�>48��U2����"�i�����>`5��_PK#0�Z����	�[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
#0�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="Rfe2f905acf9843d4" /></Relationships>PK#0�Z��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#0�Z����Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�Nݸ��vÆm�gGMl�v���G�
XT�Tb�������4����ݿM#y�gk��V�v�}
��=�`��pT)OD3�H�5����Ҩ
N*Σ͝΅I����z�O�GZ2V�0g�-�/�Ct]7h|t�<�M���h��
=�~J�~^d*�����l-ʆ	�(�,�л��t1�z]���U�.�`��*cT��9�|�Ӽ<W+��c�W�YdW5z��/PK#0�ZЃc'2E
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#0�Z�/���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-#0�Z�̍��5xl/workbook.xmlPK-#0�Z����	��[Content_Types].xmlPK-
#0�Z%�''U_rels/.relsPK-#0�Z��4��xl/worksheets/sheet1.xmlPK-#0�Z����P-xl/_rels/workbook.xml.relsPK-#0�ZЃc'2E
rxl/styles.xmlPK-#0�Z�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK#0�Z����5xl/workbook.xml �(����� ��M��(j������C��B���}�"F��zۙ��v�b��vB=����]KH�4�����^���+��0X��`"���!f�5A*�F���6	���4S��Btm�P��,���]MD��M�;.�B�i���"�(;���%F�Ui����h8/�z)��%���PK#0�Z����	�[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
#0�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="R0b81529be61e4ea3" /></Relationships>PK#0�Z��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#0�Z79^��Pxl/_rels/workbook.xml.rels �(���An� E��f_q�*N6�t��ۊ
Hۜ���W(J��H]t��?��4����j�>O�C��WZ��h�N�<,a�^�p�)߈��#�Ol�`H�?QՀ����hsǸ0˔��S/�Q�Hk�J�2����?Dg̨p��iF���7�q@L@�2�:��"���T Ϻ���5k��Zh#�л��t�0�z]�B��F0��m�
�w�d@��B�t�TƅZ�p�yR�Vh�/j��_��PK#0�ZЃc'2E
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#0�Z�/���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-#0�Z����5xl/workbook.xmlPK-#0�Z����	��[Content_Types].xmlPK-
#0�Z/ʆ�''U_rels/.relsPK-#0�Z��4��xl/worksheets/sheet1.xmlPK-#0�Z79^��P-xl/_rels/workbook.xml.relsPK-#0�ZЃc'2E
sxl/styles.xmlPK-#0�Z�/����xl/sharedStrings.xmlPK��