Bling ERP icon

Bling ERP

Integração com a API v3 do Bling ERP

Actions216

Produto - Estrutura → Criar

AI-generated

Summary

Create a product structure for a specified product by providing structure details including type, available quantity, stock launch preference, and component list.

Inputs

  • ID do Produto (required) — Numeric identifier of the product to which the structure will be added.
  • Dados da Estrutura — Collection of structure details including type (Manufacturing or Beneficiation), available quantity (numeric with four decimal precision), option to launch stock upon creation, and a JSON array of components where each component requires an idProduto and quantity.

Output shape

A single record representing the created product structure as returned by the Bling ERP API.

The components list must be a valid JSON array; each component object should include 'idProduto' and 'quantidade'. The operation submits these details to Bling ERP and returns the newly created product structure details. Errors may be returned if required fields are missing or invalid.

Examples

Example 1: Create a manufacturing structure for product ID 123 with 10 units available, launching stock, and two components included.

Set 'ID do Produto' to 123, 'Tipo' to 'Fabricação', 'Quantidade Disponível' to 10, 'Lançar Estoque' to 'Sim', and 'Componentes (JSON)' to '[{"idProduto": 456, "quantidade": 2}, {"idProduto": 789, "quantidade": 3}]'.

Links

Discussion