API reference · SKU Priority

Set Product Priority

POSThttps://api.sandbox.cws.digital/searchSkuPriority

Description

Sets the priority level of a product in your store's searches.

Each product has one priority per store: to change the level of a product that already has a priority, use Update Product Priority.

How to identify the product

Send the three fields together: partCode, brand and composition. None of them identifies the product alone.

composition accepts UNITARY, PAIR, KIT, WARRANTY and SET, always in uppercase.

If any of the three is missing, or if the product is not found, the response is 404 with Sku não encontrado.

Request body

Content-Typeapplication/json
Edit the body with
FieldTypeRequiredDescriptionValue
priorityLevelintegerYes

Priority level, from 1 to 5. Outside this range the request is rejected.

partCodestringYes

Product code at the manufacturer. See How to identify the product.

brandstringYes

Product brand.

compositionstringYes

Product composition.

Allowed values:UNITARYPAIRKITWARRANTYSET

Responses

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request POST \
  --url 'https://api.sandbox.cws.digital/searchSkuPriority' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "priorityLevel": 5,
  "partCode": "TESTE-API-001",
  "brand": "Bosch",
  "composition": "UNITARY"
}'

Response

Click Try it to see the real response here, or pick a documented example: