• Register

Update Item in Cart

To update items in your cart, make a POST request to the Update Items in Cart API with the following requirements:

POST https://api.farnell.com/cart/updateItem

Request Headers

Name Description

api_key

required *

your_generated_api_key

To generate your API key, follow the instructions on the Order API Registration page.

authorization 

required *

your_jwt_token

To get your JWT token for authorization, use the Generate JWT Authentication Token API.

Request Attributes

Name Description

sku

required *

String

Represents the Stock Keeping Unit for the specific product

quantity

required *

String

Represents the quantity of sku added to the cart.

customerPartNumber

Optional

String

Refers to the customer’s specific part number for the ordered item.

lineNote

Optional

String

Provides additional notes or comments related to the line item.

Sample Payload

copy
{
  "orderItem": [
    {
      "quantity": "20",
      "customerPartNumber": "CPN121_NEW",
      "lineNote": "Note 1 new",
      "sku": "1215561"
    }
  ]
}

Response

Code 200

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