Skip to content
platform

API reference · SKU Priority

Get Priority by Product Code

Method
POST
Route
/searchSkuPriority/find
Base URL
https://ws.autorei.net
Token
Requires Bearer token
Test in Postman

Opens this request in the public API documentation, the official source of the reference.

Description

Queries a product's search priority, identified by the product composition.

Request Body (JSON)

Field Type Required Description
partCode string Yes Product code at the manufacturer. Goes together with brand and composition.
brand string Yes Product brand.
composition string Yes Product composition.

How to identify the product

Form Fields Note
Product composition partCode + brand + composition All three together; none alone identifies. composition accepts UNITARY, PAIR, KIT, WARRANTY and SET, always in uppercase.

When the three do not come in full, or when the product is not found, the response is 404 with Sku não encontrado.

Response · 200

Field Type Description
id integer Priority id. It is what you use to fetch by id and to remove.
priorityLevel integer Configured level, from 1 to 5.
sku.id integer SKU id at CWS.
store.id integer Your store id.
dateCreated datetime Creation, in UTC.
lastUpdated datetime Last change, in UTC.

Errors

Code When
404 Product not found, or incomplete identification: {"status":"NOT_FOUND","message":"Sku não encontrado"}.
404 The product exists but has no priority in your store: {"status":"NOT_FOUND","message":"Serviço não encontrado"}.
400 Incomplete identification. The message is from the backend: {"status":"BAD_REQUEST","message":"Partcode, brand e composition são campos obrigatórios caso skuId não tiver sido preenchido"}.
401 Token missing, malformed, or expired.

Example request

curl --request POST 'https://ws.autorei.net/searchSkuPriority/find' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "partCode": "FE-500101",
  "brand": "Fabricante Exemplo",
  "composition": "UNITARY"
}'

Example responses

200Success — found by manufacturer data

{
  "id": 20601,
  "dateCreated": "2026-09-04T13:20:11Z",
  "lastUpdated": "2026-09-04T13:20:11Z",
  "priorityLevel": 5,
  "sku": {
    "id": 500101
  },
  "store": {
    "id": 4470
  }
}

Used in

Generated from the public API collection, published on 2026-09-04: api-docs.cws.digital.