Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /AddSupplier

Allows 150 calls per minute

Response: Supplier



Use this call to create a new supplier

Parameters

NameTypeDescription
supplierSupplierDetails of supplier to be added. Set pkSupplierId to a new uniqueidentifier

Permissions

GlobalPermissions.Inventory.InventorySettings.SuppliersNode

Example Request

The following request format is required for this method.

Get

Endpoint URL

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

GET https://eu-ext.linnworks.net/api/Inventory/AddSupplier?supplier=%7B%0D%0A%20%20%22pkSupplierID%22%3A%20%22e049dc8c-6111-4a65-9c9d-dd68f0542bde%22%2C%0D%0A%20%20%22SupplierName%22%3A%20%22sample%20string%202%22%2C%0D%0A%20%20%22ContactName%22%3A%20%22sample%20string%203%22%2C%0D%0A%20%20%22Address%22%3A%20%22sample%20string%204%22%2C%0D%0A%20%20%22AlternativeAddress%22%3A%20%22sample%20string%205%22%2C%0D%0A%20%20%22City%22%3A%20%22sample%20string%206%22%2C%0D%0A%20%20%22Region%22%3A%20%22sample%20string%207%22%2C%0D%0A%20%20%22Country%22%3A%20%22sample%20string%208%22%2C%0D%0A%20%20%22PostCode%22%3A%20%22sample%20string%209%22%2C%0D%0A%20%20%22TelephoneNumber%22%3A%20%22sample%20string%2010%22%2C%0D%0A%20%20%22SecondaryTelNumber%22%3A%20%22sample%20string%2011%22%2C%0D%0A%20%20%22FaxNumber%22%3A%20%22sample%20string%2012%22%2C%0D%0A%20%20%22Email%22%3A%20%22sample%20string%2013%22%2C%0D%0A%20%20%22WebPage%22%3A%20%22sample%20string%2014%22%2C%0D%0A%20%20%22Currency%22%3A%20%22sample%20string%2015%22%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

Endpoint URL

POST https://eu-ext.linnworks.net/api/Inventory/AddSupplier

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.

supplier={
  "pkSupplierID": "e049dc8c-6111-4a65-9c9d-dd68f0542bde",
  "SupplierName": "sample string 2",
  "ContactName": "sample string 3",
  "Address": "sample string 4",
  "AlternativeAddress": "sample string 5",
  "City": "sample string 6",
  "Region": "sample string 7",
  "Country": "sample string 8",
  "PostCode": "sample string 9",
  "TelephoneNumber": "sample string 10",
  "SecondaryTelNumber": "sample string 11",
  "FaxNumber": "sample string 12",
  "Email": "sample string 13",
  "WebPage": "sample string 14",
  "Currency": "sample string 15"
}

Response

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

{
  "pkSupplierID": "296e8bab-3b77-4625-b87a-d8dd83317a53",
  "SupplierName": "sample string 2",
  "ContactName": "sample string 3",
  "Address": "sample string 4",
  "AlternativeAddress": "sample string 5",
  "City": "sample string 6",
  "Region": "sample string 7",
  "Country": "sample string 8",
  "PostCode": "sample string 9",
  "TelephoneNumber": "sample string 10",
  "SecondaryTelNumber": "sample string 11",
  "FaxNumber": "sample string 12",
  "Email": "sample string 13",
  "WebPage": "sample string 14",
  "Currency": "sample string 15"
}