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": "c6083355-fc2b-41e0-9a8c-e9d357f84b03",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "a200674f-0fe2-481d-9f0e-3d33d9ebda31",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "a200674f-0fe2-481d-9f0e-3d33d9ebda31",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "c297c0db-a879-4a5e-96f4-a4c3e6c9d387",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      },
      {
        "pkPostalServiceId": "c297c0db-a879-4a5e-96f4-a4c3e6c9d387",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      }
    ],
    "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": "c6083355-fc2b-41e0-9a8c-e9d357f84b03",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "ce454e31-9115-4150-a1d1-c18ab0e72bbc"
  },
  {
    "id": "c6083355-fc2b-41e0-9a8c-e9d357f84b03",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "a200674f-0fe2-481d-9f0e-3d33d9ebda31",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "a200674f-0fe2-481d-9f0e-3d33d9ebda31",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "c297c0db-a879-4a5e-96f4-a4c3e6c9d387",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      },
      {
        "pkPostalServiceId": "c297c0db-a879-4a5e-96f4-a4c3e6c9d387",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      }
    ],
    "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": "c6083355-fc2b-41e0-9a8c-e9d357f84b03",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "ce454e31-9115-4150-a1d1-c18ab0e72bbc"
  }
]