Sankhya icon

Sankhya

Integração completa com o ERP Sankhya — REST v1/v2 e Gateway

Actions137

Estoque (Gateway + REST) → Consultar Saldo (Gateway)

AI-generated

Summary

Queries product stock levels in a specific warehouse using the Sankhya Gateway service.

Inputs

  • codProduto (required) — Product code (CODPROD) to query.
  • codLocal — Warehouse/local code (CODLOJ). If empty, the balance for all warehouses is returned.

Output shape

a single record or list of records containing product stock details (quantities by warehouse).

Returns a list if multiple warehouses exist for the product. Error handling returns SankhyaTechnicalError for HTTP failures or SankhyaBusinessError for business rules (CORE_E).

Examples

Example 1: Check stock of product ABC123 in warehouse 5.

codProduto: ABC123, codLocal: 5

Example 2: Check stock of product ABC123 in all warehouses.

codProduto: ABC123, codLocal: (empty)

Links

Discussion