Back

Search

Search

Methods

Inventory

Orders

ImportExport /GetImport

Response: Import



Get an import configuration

Parameters

NameTypeDescription
idInt32Id of the import to get

HTTP Endpoint

Server /ImportExport / GetImport

Permissions

GlobalPermissions.Settings.ImportExport.ImportNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ImportExport/GetImport HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

id=1

Response

This is an example response. Results may vary depending on your data.

{
  "Specification": {
    "Feed": null,
    "ColumnMappings": [
      {
        "AdditionalData": [
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "FileColumn": "sample string 1",
        "Column": "sample string 2",
        "Expression": "sample string 3",
        "DefaultValue": "sample string 4",
        "Visible": true
      },
      {
        "AdditionalData": [
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "FileColumn": "sample string 1",
        "Column": "sample string 2",
        "Expression": "sample string 3",
        "DefaultValue": "sample string 4",
        "Visible": true
      }
    ],
    "ExecutionOptions": [
      {
        "OptionDetails": {
          "Type": "sample string 1",
          "Key": "sample string 2"
        },
        "DisplayName": "sample string 1",
        "Value": {}
      },
      {
        "OptionDetails": {
          "Type": "sample string 1",
          "Key": "sample string 2"
        },
        "DisplayName": "sample string 1",
        "Value": {}
      }
    ]
  },
  "Register": {
    "LastFileChecksum": "sample string 1",
    "ImportStatus": "sample string 2",
    "ImportSkipped": true,
    "Id": 4,
    "Type": 0,
    "FriendlyName": "sample string 5",
    "Executing": true,
    "justOnce": true,
    "Started": "2018-10-03T11:12:37.7998343Z",
    "Completed": "2018-10-03T11:12:37.7998343Z",
    "IsQueued": true,
    "Enabled": true,
    "IsNew": false,
    "AllSchedulesDisabled": false,
    "NextSchedule": null
  },
  "Schedules": [
    {
      "Id": 1,
      "Order": 2,
      "Name": "sample string 3",
      "ScheduleXML": "sample string 4",
      "Configuration": {
        "RepetitionType": 0,
        "OneTimeDate": "2018-10-03T11:12:37.8008346Z",
        "DailyFrequency": 0,
        "OccursFrequencyStartingDate": "2018-10-03T11:12:37.8008346Z",
        "OccursFrequencyEveryX": 1,
        "WeeklyDays": "sample string 1",
        "OccursFrequency": 0,
        "OccursOnceAtTime": "sample string 2",
        "OccursEveryHours": 1,
        "StartingTime": "sample string 3",
        "EndingTime": "sample string 4",
        "Enabled": true
      }
    },
    {
      "Id": 1,
      "Order": 2,
      "Name": "sample string 3",
      "ScheduleXML": "sample string 4",
      "Configuration": {
        "RepetitionType": 0,
        "OneTimeDate": "2018-10-03T11:12:37.8008346Z",
        "DailyFrequency": 0,
        "OccursFrequencyStartingDate": "2018-10-03T11:12:37.8008346Z",
        "OccursFrequencyEveryX": 1,
        "WeeklyDays": "sample string 1",
        "OccursFrequency": 0,
        "OccursOnceAtTime": "sample string 2",
        "OccursEveryHours": 1,
        "StartingTime": "sample string 3",
        "EndingTime": "sample string 4",
        "Enabled": true
      }
    }
  ]
}