Back

Search

Search

Methods

Inventory

Orders

ImportExport /GetExport

Response: Export



Get an export configuration

Parameters

NameTypeDescription
idInt32Id of the export to get

HTTP Endpoint

Server /ImportExport / GetExport

Permissions

GlobalPermissions.Settings.ImportExport.ExportNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ImportExport/GetExport 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": {
    "ExportColumnNames": true,
    "Delimiter": "sample string 2",
    "Escape": "sample string 3",
    "CustomScript": "sample string 4",
    "Feed": null,
    "ColumnMappings": [
      {
        "Order": 1,
        "Filters": {
          "NumericFilters": [
            {
              "Type": 0,
              "Value": 1.0
            },
            {
              "Type": 0,
              "Value": 1.0
            }
          ],
          "BooleanFilter": {
            "Value": true
          },
          "DateRangeFilters": [
            {
              "ValueFrom": "2018-10-03T11:12:37.9349291+01:00",
              "ValueTo": "2018-10-03T11:12:37.9349291+01:00",
              "Days": 3,
              "Enabled": true,
              "Type": "sample string 5"
            },
            {
              "ValueFrom": "2018-10-03T11:12:37.9349291+01:00",
              "ValueTo": "2018-10-03T11:12:37.9349291+01:00",
              "Days": 3,
              "Enabled": true,
              "Type": "sample string 5"
            }
          ],
          "StringFilters": [
            {
              "Type": 0,
              "Value": "sample string 1"
            },
            {
              "Type": 0,
              "Value": "sample string 1"
            }
          ]
        },
        "ExportToFile": true,
        "SubQuerySelection": [
          {
            "SelectionFieldName": "sample string 1",
            "SelectionFieldValue": "sample string 2"
          },
          {
            "SelectionFieldName": "sample string 1",
            "SelectionFieldValue": "sample string 2"
          }
        ],
        "FileColumn": "sample string 3",
        "Column": "sample string 4",
        "Expression": "sample string 5",
        "DefaultValue": "sample string 6",
        "Visible": true
      },
      {
        "Order": 1,
        "Filters": {
          "NumericFilters": [
            {
              "Type": 0,
              "Value": 1.0
            },
            {
              "Type": 0,
              "Value": 1.0
            }
          ],
          "BooleanFilter": {
            "Value": true
          },
          "DateRangeFilters": [
            {
              "ValueFrom": "2018-10-03T11:12:37.9349291+01:00",
              "ValueTo": "2018-10-03T11:12:37.9349291+01:00",
              "Days": 3,
              "Enabled": true,
              "Type": "sample string 5"
            },
            {
              "ValueFrom": "2018-10-03T11:12:37.9349291+01:00",
              "ValueTo": "2018-10-03T11:12:37.9349291+01:00",
              "Days": 3,
              "Enabled": true,
              "Type": "sample string 5"
            }
          ],
          "StringFilters": [
            {
              "Type": 0,
              "Value": "sample string 1"
            },
            {
              "Type": 0,
              "Value": "sample string 1"
            }
          ]
        },
        "ExportToFile": true,
        "SubQuerySelection": [
          {
            "SelectionFieldName": "sample string 1",
            "SelectionFieldValue": "sample string 2"
          },
          {
            "SelectionFieldName": "sample string 1",
            "SelectionFieldValue": "sample string 2"
          }
        ],
        "FileColumn": "sample string 3",
        "Column": "sample string 4",
        "Expression": "sample string 5",
        "DefaultValue": "sample string 6",
        "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": {
    "LastQueryExecuted": "2018-10-03T11:12:37.9359301+01:00",
    "LastExportStatus": true,
    "Id": 2,
    "Type": "sample string 3",
    "FriendlyName": "sample string 4",
    "Executing": true,
    "justOnce": true,
    "Started": "2018-10-03T11:12:37.9359301Z",
    "Completed": "2018-10-03T11:12:37.9359301Z",
    "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.9359301Z",
        "DailyFrequency": 0,
        "OccursFrequencyStartingDate": "2018-10-03T11:12:37.9359301Z",
        "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.9359301Z",
        "DailyFrequency": 0,
        "OccursFrequencyStartingDate": "2018-10-03T11:12:37.9359301Z",
        "OccursFrequencyEveryX": 1,
        "WeeklyDays": "sample string 1",
        "OccursFrequency": 0,
        "OccursOnceAtTime": "sample string 2",
        "OccursEveryHours": 1,
        "StartingTime": "sample string 3",
        "EndingTime": "sample string 4",
        "Enabled": true
      }
    }
  ]
}