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": "5e046380-1862-4e6e-99b0-441e51922626",
  "hasMappedShippingService": true,
  "Channels": [
    {
      "pkPostalServiceId": "6eaa92f5-f208-4410-94d2-a518af30d92f",
      "PostalServiceName": "sample string 2",
      "Source": "sample string 3",
      "SubSource": "sample string 4"
    }
  ],
  "ShippingServices": [
    {
      "pkPostalServiceId": "17d5dc03-7084-469a-be44-1b6a98293ffc",
      "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": "5e046380-1862-4e6e-99b0-441e51922626",
  "TrackingNumberRequired": true,
  "WeightRequired": true,
  "IgnorePackagingGroup": true,
  "fkShippingAPIConfigId": 13,
  "IntegratedServiceId": "482e23f9-57b5-4eeb-bcd9-d3ff53d14979"
}

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": "a776055a-3799-4d2f-9515-0e4a47b2ac5e",
  "TrackingNumberRequired": true,
  "WeightRequired": true,
  "IgnorePackagingGroup": true,
  "fkShippingAPIConfigId": 12,
  "IntegratedServiceId": "e1497d33-731e-49c7-a4ad-d9dcfcaaf9e2"
}