Skip to main content
GET
Buscar un producto por SKU, código de barras o texto
Resolves what a cashier scans or types into the product and variant it belongs to. An exact SKU or barcode returns those matches; anything else runs a text search over the catalog. This is the lookup to run before adjusting stock or creating a sale, since both take a product_id and, on products with variants, a variant_id.

Endpoint

Required scope

ecommerce:products:read

Headers

Query parameters

Example request

Response

200 OK

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the ecommerce:products:read scope.

502 Bad Gateway

ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.

Operational notes

  • SKU and barcode match loosely. Case and spaces are ignored, so run-pro-42-neg finds RUN-PRO-42-NEG.
  • Branch on match. With exact you can act on the item directly. With search, the items are candidates: show them to a person, or pick one only when there is a single clear result.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Query Parameters

query
string
required

Texto a buscar. Si coincide exacto con el SKU o el código de barras de un producto o variante, se devuelven solo esas coincidencias

Example:

"7801234567890"

limit
number
default:10
Required range: 1 <= x <= 50

Response

200 - application/json
match
enum<string>
required
Available options:
exact,
search
items
object[]
required