• Register

Order API Authentication

Generate Token

The Farnell Order API utilises a JWT (JSON Web Token) to authorise API requests. To access the APIs, you’ll need a valid token and a trade account number.

POST https://api.farnell.com/auth/token 

Request Header

Name Description

api_key 

required *

Header

The package key that needs to be passed for authentication. 

To obtain your API key, navigate to the API Registration or View API Page within your account dashboard.

Request Attributes

Name Description

tradeAccount

required *

String

Represents the trade account number associated with your web account.

Sample Payload

copy
{
   "tradeAccount": "<Enter your trade account here>"
}

Response

Code 201

{ “orderId”: “<Cart ID>”}

Response

Authentication Token generated successfully.

Code 201


  {
    "Authorization": "string"
  }