Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PostalServices /CreatePostalService

Allows 150 calls per minute

Response: PostalService



Adds a new postal service to the database

Parameters

NameTypeDescription
PostalServiceDetailsPostalService_WithChannelAndShippingLinksInformation about postal service

Permissions

GlobalPermissions.ShippingService.PostalServicesNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/PostalServices/CreatePostalService

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

PostalServiceDetails={
  "id": "33f6bfb3-ac69-4034-b71e-2855e13f38a6",
  "hasMappedShippingService": true,
  "Channels": [
    {
      "pkPostalServiceId": "f7be0182-f00e-4aaf-88be-4f4296b3a6ea",
      "PostalServiceName": "sample string 2",
      "Source": "sample string 3",
      "SubSource": "sample string 4"
    }
  ],
  "ShippingServices": [
    {
      "pkPostalServiceId": "a1d9e79a-52d3-4b61-9a50-ace00d4d6d40",
      "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": "33f6bfb3-ac69-4034-b71e-2855e13f38a6",
  "TrackingNumberRequired": true,
  "WeightRequired": true,
  "IgnorePackagingGroup": true,
  "fkShippingAPIConfigId": 13,
  "IntegratedServiceId": "eecf8913-fc9e-4d00-a2c5-bd91e7909be9"
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "PostalServiceName": "sample string 1",
  "PostalServiceTag": "sample string 2",
  "ServiceCountry": "sample string 3",
  "PostalServiceCode": "sample string 4",
  "Vendor": "sample string 5",
  "PrintModule": "sample string 6",
  "PrintModuleTitle": "sample string 7",
  "pkPostalServiceId": "6a43e888-1d6e-441c-85fe-491b6d8ee598",
  "TrackingNumberRequired": true,
  "WeightRequired": true,
  "IgnorePackagingGroup": true,
  "fkShippingAPIConfigId": 12,
  "IntegratedServiceId": "89c15940-a5d4-4e4d-82bf-8b1c8fe8dca9"
}