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": "1c5b5b0a-141c-4db7-a25a-8f1f3a0c916f",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "64a79b8d-85fa-41b3-abca-157f436166f9",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "64a79b8d-85fa-41b3-abca-157f436166f9",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "7ea12d10-87b4-42ce-9351-532a142f7dff",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      },
      {
        "pkPostalServiceId": "7ea12d10-87b4-42ce-9351-532a142f7dff",
        "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": "1c5b5b0a-141c-4db7-a25a-8f1f3a0c916f",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "569ed160-ee86-4642-a39c-63721925ff27"
  },
  {
    "id": "1c5b5b0a-141c-4db7-a25a-8f1f3a0c916f",
    "hasMappedShippingService": true,
    "Channels": [
      {
        "pkPostalServiceId": "64a79b8d-85fa-41b3-abca-157f436166f9",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      },
      {
        "pkPostalServiceId": "64a79b8d-85fa-41b3-abca-157f436166f9",
        "PostalServiceName": "sample string 2",
        "Source": "sample string 3",
        "SubSource": "sample string 4"
      }
    ],
    "ShippingServices": [
      {
        "pkPostalServiceId": "7ea12d10-87b4-42ce-9351-532a142f7dff",
        "PostalServiceName": "sample string 2",
        "vendor": "sample string 3",
        "accountid": "sample string 4"
      },
      {
        "pkPostalServiceId": "7ea12d10-87b4-42ce-9351-532a142f7dff",
        "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": "1c5b5b0a-141c-4db7-a25a-8f1f3a0c916f",
    "TrackingNumberRequired": true,
    "WeightRequired": true,
    "IgnorePackagingGroup": true,
    "fkShippingAPIConfigId": 13,
    "IntegratedServiceId": "569ed160-ee86-4642-a39c-63721925ff27"
  }
]