- Iniciando a integração
- OrçaFascio API
- v1
- Autenticação
- Grupos
- Insumos
- Composições
- Listar composiçõesGET
- Consultar composiçaoGET
- Consultar composição por códigoGET
- Criar Composição (Modelo SINAPI)POST
- Criar composição (Melo SICRO)POST
- Atualizar composição (Modelo SINAPI)PUT
- Atualizar composição (Modelo SICRO)PUT
- Deletar composiçãoDELETE
- Editar BancosPOST
- Adicionar itens da composiçãoPOST
- Remover itens da composiçãoDELETE
- Orçamentos
- Relatórios
Adicionar itens da composição
Production Env
https://api.orcafascio.com/api
Production Env
https://api.orcafascio.com/api
POST
https://api.orcafascio.com/api
Última modificação:2024-04-10 19:37:11
Responsável:Higor Melo
Requisição
Parâmetros Header
Authorization
string
requerido
Exemplo:
{{token_auth}}
Parâmetros Bodyapplication/json
items
array [object {3}]
requerido
bank
string
requerido
code
string
requerido
qty
integer | number
requerido
Exemplo
{
"items": [
{
"bank": "SINAPI",
"code": "94782",
"qty": 3
},
{
"bank": "SINAPI",
"code": "89173",
"qty": 0.5
},
{
"bank": "SBC",
"code": "014294",
"qty": 3.8
}
]
}
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 -g --request POST 'https://api.orcafascio.com/api/v1/base/mybase/compositions/{{sinapi_composition_id}}/add-items' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"bank": "SINAPI",
"code": "94782",
"qty": 3
},
{
"bank": "SINAPI",
"code": "89173",
"qty": 0.5
},
{
"bank": "SBC",
"code": "014294",
"qty": 3.8
}
]
}'
Respostas
🟢200Success
application/json
Body
id
string
requerido
company_id
string
requerido
user_id
string
requerido
department_id
string
requerido
code
string
requerido
second_code
string
requerido
description
string
requerido
type
string
requerido
unit
string
requerido
state
string
requerido
is_sicro
boolean
requerido
calculation_method
object
requerido
type
integer
requerido
description
string
requerido
labor
boolean
requerido
prices
object
requerido
pnd
number
requerido
pd
number
requerido
banks
object
requerido
SINAPI
object
requerido
SBC
object
requerido
items
array [object {11}]
requerido
banco
string
requerido
code
string
requerido
description
string
requerido
type
string
requerido
unit
string
requerido
unitary_pnd
number
requerido
unitary_pd
number
requerido
coefficient
integer | number
requerido
pnd
number
requerido
pd
number
requerido
is_resource
boolean
requerido
created_at
string
requerido
Exemplo
{
"id": "65e877fef4319730ab1b78d6",
"company_id": "62683e8363051f543020cfe5",
"user_id": "62683e8363051f543020cfe9",
"department_id": "62683e8363051f543020cfe8",
"code": "00000005",
"second_code": "API-005",
"description": "BARRACAO PARA DEPOSITO EM TABUAS DE MADEIRA, COBERTURA EM FIBROCIMENTO 4 MM, INCLUSO PISO ARGAMASSA TRAÇO 1:6",
"type": "CANT",
"unit": "m²",
"state": "SP",
"is_sicro": false,
"calculation_method": {
"type": 2,
"description": "Arredondar em 2 casas decimais"
},
"labor": false,
"prices": {
"pnd": 488.27,
"pd": 478.11
},
"banks": {
"SINAPI": {
"data": "10/2023",
"estado": "SP",
"relatorio": true
},
"SBC": {
"data": "11/2020",
"estado": "SP",
"regiao": "SPO",
"relatorio": true
}
},
"items": [
{
"banco": "SINAPI",
"code": "89049",
"description": "(COMPOSIÇÃO REPRESENTATIVA) DO SERVIÇO DE APLICAÇÃO MANUAL DE GESSO DESEMPENADO (SEM TALISCAS) EM TETO, ESPESSURA 0,5 CM, PARA EDIFICAÇÃO HABITACIONAL MULTIFAMILIAR (PRÉDIO). AF_11/2014",
"type": "REVE",
"unit": "m²",
"unitary_pnd": 26.24,
"unitary_pd": 24.27,
"coefficient": 1.0,
"pnd": 26.24,
"pd": 24.27,
"is_resource": false
},
{
"banco": "SINAPI",
"code": "94782",
"description": "(COMPOSIÇÃO REPRESENTATIVA) DO SERVIÇO DE CONTRAPISO EM ARGAMASSA TRAÇO 1:4 (CIM E AREIA), BETONEIRA 400 L, E = 4 CM ÁREAS SECAS E MOLHADAS SOBRE LAJE , E = 3 CM ÁREAS MOLHADAS SOBRE IMPERMEABILIZAÇÃO, PARA EDIFICAÇÃO MULTIFAMILIAR. AF_11/2014",
"type": "PISO",
"unit": "m²",
"unitary_pnd": 45.08,
"unitary_pd": 42.77,
"coefficient": 3.0,
"pnd": 135.24,
"pd": 128.31,
"is_resource": false
},
{
"banco": "SINAPI",
"code": "89173",
"description": "(COMPOSIÇÃO REPRESENTATIVA) DO SERVIÇO DE EMBOÇO/MASSA ÚNICA, APLICADO MANUALMENTE, TRAÇO 1:2:8, EM BETONEIRA DE 400L, PAREDES INTERNAS, COM EXECUÇÃO DE TALISCAS, EDIFICAÇÃO HABITACIONAL UNIFAMILIAR (CASAS) E EDIFICAÇÃO PÚBLICA PADRÃO. AF_12/2014",
"type": "REVE",
"unit": "m²",
"unitary_pnd": 37.9,
"unitary_pd": 35.37,
"coefficient": 0.5,
"pnd": 18.95,
"pd": 17.69,
"is_resource": false
},
{
"banco": "SBC",
"code": "014294",
"description": "(EPI) EQUIPAMENTO PROTECAO INDIVIDUAL-POR OPERARIO EM OBRA",
"type": "014",
"unit": "UN",
"unitary_pnd": 81.01,
"unitary_pd": 81.01,
"coefficient": 3.8,
"pnd": 307.84,
"pd": 307.84,
"is_resource": false
}
],
"created_at": "2024-03-06T11:04:47.008-03:00"
}
🟠401Not authorized
🟠404Not found
🔴500Internal server error