Skip to main content
DELETE
Desvincular una sucursal del stock de otra
Unlinks one branch that sells from another branch’s stock. From then on it sells this product only from its own stock, which starts at 0: transfer units to it if it needs them.

Endpoint

Required scope

ecommerce:stock:write

Headers

Path parameters

Example request

curl

Response

200 OK

The product’s stock after unlinking, in the same shape as GET /v1/ecommerce/products/{id}/stock.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the ecommerce:stock:write scope.

404 Not Found

No product with that id, or STOCK_BRANCH_LINK_NOT_FOUND: the branch was not linked for this product.

502 Bad Gateway

ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
branch_id
string
required

Response

200 - application/json
product_id
string
required
variants
object[]
required

Sucursales que venden este producto con el stock de otra sucursal