Back

Search

Search

Methods

Inventory

Orders

PostalServices /GetPostalServices

Response: List<PostalService_WithChannelAndShippingLinks>



Gets a list of the users postal services and information on channels and couriers linked to each service

Parameters

No parameters required.

HTTP Endpoint

Server /PostalServices / GetPostalServices

Permissions

GlobalPermissions.ShippingService.PostalServicesNode

Example Code

Example Request

The following request format is required for this method.

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

[
  {
    "id": "facca947-6070-4e13-8628-10726588c5d1",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "9d521a44-c2da-43e7-82ab-749136b93235",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "9d521a44-c2da-43e7-82ab-749136b93235",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "0bf52e66-d454-47bb-923e-0b954911bbc9",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4",
        "vendorFriendlyName": "sample string 5"
      },
      {
        "pkPostalServiceId": "0bf52e66-d454-47bb-923e-0b954911bbc9",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4",
        "vendorFriendlyName": "sample string 5"
      }
    ],
    "PostalServiceName": "sample string 2",
    "PostalServiceTag": "sample string 3",
    "ServiceCountry": "sample string 4",
    "PostalServiceCode": "sample string 5",
    "Vendor": "sample string 6",
    "PrintModule": "sample string 7",
    "PrintModuleTitle": "sample string 8",
    "pkPostalServiceId": "facca947-6070-4e13-8628-10726588c5d1",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "db23a528-592a-4c16-aedb-6117e26d32c2"
  },
  {
    "id": "facca947-6070-4e13-8628-10726588c5d1",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "9d521a44-c2da-43e7-82ab-749136b93235",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "9d521a44-c2da-43e7-82ab-749136b93235",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "0bf52e66-d454-47bb-923e-0b954911bbc9",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4",
        "vendorFriendlyName": "sample string 5"
      },
      {
        "pkPostalServiceId": "0bf52e66-d454-47bb-923e-0b954911bbc9",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4",
        "vendorFriendlyName": "sample string 5"
      }
    ],
    "PostalServiceName": "sample string 2",
    "PostalServiceTag": "sample string 3",
    "ServiceCountry": "sample string 4",
    "PostalServiceCode": "sample string 5",
    "Vendor": "sample string 6",
    "PrintModule": "sample string 7",
    "PrintModuleTitle": "sample string 8",
    "pkPostalServiceId": "facca947-6070-4e13-8628-10726588c5d1",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "db23a528-592a-4c16-aedb-6117e26d32c2"
  }
]