Update Sku

Description

This method allows for updating a SKU.


Request

Restrictions

This service requires an authenticated user.

Endpoint

PUT https://<server-url>/api/v4/referencedata/skus/{sku_id}

Parameters

Parameter
Location
Description

touchpoint

Query / Header

The identifier for the touchpoint. Use Thalamus-Touchpoint for the header.

token

Query / Header

The authentication token for the API session. Use Thalamus-Token for the header.

Content-Type

Header

Specifies the content type of the request body. Must be application/json.

Full URL Example

https://<server-url>/api/v4/referencedata/skus/{sku_id}?touchpoint=test&token=...

Request Body

The request body contains the updated information for the SKU, all fields are optionals.

Field
Type
Description

name

String

A string representing the SKU name

numberOfUnits

Float

A decimal numerical Value for specifying the number of units in the SKU.

sellingQuantities

Integer

A integer numerical value for defining the quantities in which the SKU can be sold.

active

Boolean

A Boolean value indicating whether the SKU is active or not.

product

Product Object

Object to indicate the product code associated with the SKU

description

String

A string that represents the SKU description

codes

Object

Reference codes associated with the SKU. Opcional

description 1-40

String

A string that represents the SKU additional descriptions. Optionals

Product Object Fields

Field
Type
Description

code

String

The primary identifier for login (e.g., email, username). Must match the corresponding principal field in the profile object.

JSON


Response

✅ Successful Response: 200 OK

The SKU has been successfully updated. The response returns the updated SKU.

JSON

❌ Unsuccessful Response: 400 Bad Request

Returned if the provided data is invalid. For a detailed list of possible validation errors, please refer to the Unsuccessful Response section of the Register Sku method.

Last updated

Was this helpful?