- Introdução
- People
- Items
- POs
- Sales
- NFes
- NFSes
- Transactions
- Item Categories
- Warehouses
- Custom Fields
- Batches
- Webhooks
- Services
- Accounting
- CTes
Retorna as composições do item e/ou das variações
GET
/items/get-composition/${id}
Items
Requisição
Parâmetros Path
id
string
requerido
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/items/get-composition/$'
Respostas
🟢200OK
application/json
Body
success
boolean
opcional
response
array[object (view_composition) {14}]
opcional
itemId
string
opcional
variationId
string
opcional
company
string
opcional
autoUpdate
boolean
opcional
costTotal
number
opcional
dateCreated
string
opcional
description
string
opcional
locked
boolean
opcional
referenceQty
number
opcional
useRootComposition
boolean
opcional
user
string
opcional
importId
string
opcional
variation
string
opcional
composition
array[object (view_compositionChild) {20}]
requerido
Exemplo
{
"success": true,
"response": [
{
"itemId": "string",
"variationId": "string",
"company": "string",
"autoUpdate": true,
"costTotal": 0,
"dateCreated": "string",
"description": "string",
"locked": true,
"referenceQty": 0,
"useRootComposition": true,
"user": "string",
"importId": "string",
"variation": "string",
"composition": [
{
"compositionHash": "string",
"itemId": "string",
"variationId": "string",
"qty": 0,
"priceVar": "string",
"price": 0,
"otherCosts": 0,
"details": "string",
"itemType": "string",
"unitaryCost": 0,
"dimension": "UN",
"cost": 0,
"name": "string",
"code": "string",
"referenceQty": 0,
"ordination": 0,
"itemCode": "string",
"itemName": "string",
"type": "string",
"variation": "string"
}
]
}
]
}
🟠400Bad Request
🔴500Server Error
Modified at 2025-01-18 14:46:41