Back

Search

Search

Methods

Inventory

Orders

Inventory /GetChannels

Response: List<AnyConfig>



Use this call to get all channels

Parameters

No parameters required.

HTTP Endpoint

Server /Inventory / GetChannels

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/GetChannels 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


Response

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

[
  {
    "SourceVersion": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "Enabled": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ChannelTag": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "ChannelLocationBinding": {
      "Locations": []
    },
    "IsMultiLocation": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "AutoPopulatedLocations": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "DespatchNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "CancellationNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "RefundNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ReturnNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "OrderSyncDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "OrderSaveLocation": {
      "OnGetSelectionList": null,
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "fec4ee7a-7ce6-4dde-8c60-7410822a70cc",
      "PropertyType": "Guid"
    },
    "ConfigDiscount": {
      "OnGetSelectionList": null,
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "HidesHeaderAttributes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "InventorySync": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "StockLocationBinding": {
      "Locations": []
    },
    "MaxListed": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1,
      "PropertyType": "Int"
    },
    "StockPercentage": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1.1,
      "PropertyType": "Double"
    },
    "EndWhen": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1,
      "PropertyType": "Int"
    },
    "PriceChange": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "IsListingScanRunning": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ListingScanStartUpdateDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "LastListingUpdateDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "EstimatedInventoryScanComplete": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "IsHeaderOnly": false,
    "IsHidden": true,
    "DynamicProperties": [
      {
        "ListValues": [
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "ValueType": 0,
        "ConfigItemId": "sample string 1",
        "Name": "sample string 2",
        "Description": "sample string 3",
        "GroupName": "sample string 4",
        "SortOrder": 5,
        "SelectedValue": "sample string 6",
        "RegExValidation": "sample string 7",
        "RegExError": "sample string 8",
        "MustBeSpecified": true,
        "ReadOnly": true
      },
      {
        "ListValues": [
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "ValueType": 0,
        "ConfigItemId": "sample string 1",
        "Name": "sample string 2",
        "Description": "sample string 3",
        "GroupName": "sample string 4",
        "SortOrder": 5,
        "SelectedValue": "sample string 6",
        "RegExValidation": "sample string 7",
        "RegExError": "sample string 8",
        "MustBeSpecified": true,
        "ReadOnly": true
      }
    ],
    "PostalServiceMapping": {
      "Mapping": [],
      "ChannelServices": [],
      "IsChanged": false
    },
    "PaymentMethodMapping": {
      "Mapping": [],
      "ChannelServices": [],
      "IsChanged": false
    },
    "PkChannelId": 2,
    "Source": "NONE",
    "SourceType": "NONE",
    "Rules": [
      {
        "FieldName": "Enabled",
        "Rules": [
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "InventorySync"
          },
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "DespatchNotes"
          }
        ]
      },
      {
        "FieldName": "EndWhen",
        "Rules": [
          {
            "RuleType": 6,
            "Options": null,
            "DependantField": null
          }
        ]
      },
      {
        "FieldName": "StockPercentage",
        "Rules": [
          {
            "RuleType": 5,
            "Options": null,
            "DependantField": null
          }
        ]
      },
      {
        "FieldName": "MaxListed",
        "Rules": [
          {
            "RuleType": 6,
            "Options": null,
            "DependantField": null
          },
          {
            "RuleType": 1,
            "Options": null,
            "DependantField": "EndWhen"
          }
        ]
      },
      {
        "FieldName": "InventorySync",
        "Rules": [
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "StockLocationBinding"
          }
        ]
      }
    ],
    "Buttons": [
      {
        "FieldName": "Test",
        "GroupName": "Account",
        "DisplayName": "Test",
        "FunctionName": "TestChannel"
      },
      {
        "FieldName": "DownloadListings",
        "GroupName": "Listings",
        "DisplayName": "Download Listings",
        "FunctionName": "DownloadListings"
      }
    ],
    "SubSource": "sample string 3",
    "HeaderAuditValues": [
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "Enabled",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "InventorySync",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "DespatchNotes",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "PriceChange",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "MaxListed",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "EndWhen",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "StockPercentage",
        "PropertyValueIs": "1.1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "OrderSyncDate",
        "PropertyValueIs": "2019-10-09 15:11:43.373",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "ChannelTag",
        "PropertyValueIs": "sample string 1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      }
    ]
  },
  {
    "SourceVersion": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "Enabled": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ChannelTag": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "ChannelLocationBinding": {
      "Locations": []
    },
    "IsMultiLocation": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "AutoPopulatedLocations": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "DespatchNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "CancellationNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "RefundNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ReturnNotes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "OrderSyncDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "OrderSaveLocation": {
      "OnGetSelectionList": null,
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "fec4ee7a-7ce6-4dde-8c60-7410822a70cc",
      "PropertyType": "Guid"
    },
    "ConfigDiscount": {
      "OnGetSelectionList": null,
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "sample string 1",
      "PropertyType": "String"
    },
    "HidesHeaderAttributes": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "InventorySync": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "StockLocationBinding": {
      "Locations": []
    },
    "MaxListed": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1,
      "PropertyType": "Int"
    },
    "StockPercentage": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1.1,
      "PropertyType": "Double"
    },
    "EndWhen": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": 1,
      "PropertyType": "Int"
    },
    "PriceChange": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "IsListingScanRunning": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": true,
      "PropertyType": "Boolean"
    },
    "ListingScanStartUpdateDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "LastListingUpdateDate": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "EstimatedInventoryScanComplete": {
      "Loaded": true,
      "pkPropertyId": 0,
      "IsChanged": true,
      "PropertyValue": "2019-10-09T15:11:43.3735158+01:00",
      "PropertyType": "DateTime"
    },
    "IsHeaderOnly": false,
    "IsHidden": true,
    "DynamicProperties": [
      {
        "ListValues": [
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "ValueType": 0,
        "ConfigItemId": "sample string 1",
        "Name": "sample string 2",
        "Description": "sample string 3",
        "GroupName": "sample string 4",
        "SortOrder": 5,
        "SelectedValue": "sample string 6",
        "RegExValidation": "sample string 7",
        "RegExError": "sample string 8",
        "MustBeSpecified": true,
        "ReadOnly": true
      },
      {
        "ListValues": [
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Display": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "ValueType": 0,
        "ConfigItemId": "sample string 1",
        "Name": "sample string 2",
        "Description": "sample string 3",
        "GroupName": "sample string 4",
        "SortOrder": 5,
        "SelectedValue": "sample string 6",
        "RegExValidation": "sample string 7",
        "RegExError": "sample string 8",
        "MustBeSpecified": true,
        "ReadOnly": true
      }
    ],
    "PostalServiceMapping": {
      "Mapping": [],
      "ChannelServices": [],
      "IsChanged": false
    },
    "PaymentMethodMapping": {
      "Mapping": [],
      "ChannelServices": [],
      "IsChanged": false
    },
    "PkChannelId": 2,
    "Source": "NONE",
    "SourceType": "NONE",
    "Rules": [
      {
        "FieldName": "Enabled",
        "Rules": [
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "InventorySync"
          },
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "DespatchNotes"
          }
        ]
      },
      {
        "FieldName": "EndWhen",
        "Rules": [
          {
            "RuleType": 6,
            "Options": null,
            "DependantField": null
          }
        ]
      },
      {
        "FieldName": "StockPercentage",
        "Rules": [
          {
            "RuleType": 5,
            "Options": null,
            "DependantField": null
          }
        ]
      },
      {
        "FieldName": "MaxListed",
        "Rules": [
          {
            "RuleType": 6,
            "Options": null,
            "DependantField": null
          },
          {
            "RuleType": 1,
            "Options": null,
            "DependantField": "EndWhen"
          }
        ]
      },
      {
        "FieldName": "InventorySync",
        "Rules": [
          {
            "RuleType": 8,
            "Options": null,
            "DependantField": "StockLocationBinding"
          }
        ]
      }
    ],
    "Buttons": [
      {
        "FieldName": "Test",
        "GroupName": "Account",
        "DisplayName": "Test",
        "FunctionName": "TestChannel"
      },
      {
        "FieldName": "DownloadListings",
        "GroupName": "Listings",
        "DisplayName": "Download Listings",
        "FunctionName": "DownloadListings"
      }
    ],
    "SubSource": "sample string 3",
    "HeaderAuditValues": [
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "Enabled",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "InventorySync",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "DespatchNotes",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "PriceChange",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "MaxListed",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "EndWhen",
        "PropertyValueIs": "1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "StockPercentage",
        "PropertyValueIs": "1.1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "OrderSyncDate",
        "PropertyValueIs": "2019-10-09 15:11:43.373",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      },
      {
        "pkAuditId": 0,
        "fkChannelId": 0,
        "PropertyName": "ChannelTag",
        "PropertyValueIs": "sample string 1",
        "AuditDateTime": "0001-01-01T00:00:00",
        "UserName": null
      }
    ]
  }
]