latestOpenAPI 3.0.32026-08-101200629.5 KB
2c51a28d0f48
Versões Anteriores
Vendas1
Documentos de Venda1
Atualizar Linha de Documentos de Venda
Atualizar Linha de Documentos de Venda
patch/api/commercial_sales_document_lines
Request body
Example request
{
"data": {
"attributes": {
"created_at": "2024-03-05 14:25:28.275949",
"description": "Isto é uma NOVA breve descrição",
"item_code": "1000",
"item_id": 2,
"item_type": "Product",
"net_unit_price": 2,
"tax_code": "INT",
"tax_country_region": "PT",
"tax_percentage": 13,
"unit_price": 2,
"updated_at": "2024-03-05 14:25:28.275949"
},
"id": "131",
"type": "commercial_sales_document_lines"
}
}Response
Sucesso
Example response
{
"data": {
"attributes": {
"amount": 2.09,
"amount_with_header_settlement": 2.26,
"created_at": "2024-03-05 14:25:28.275949",
"description": "Isto é uma NOVA breve descrição",
"item_code": "1000",
"item_id": 2,
"item_type": "Product",
"net_amount": 1.85,
"net_amount_with_header_settlement": 2,
"net_unit_price": 1.85,
"quantity": 1,
"tax_amount": 0.24,
"tax_code": "INT",
"tax_country_region": "PT",
"tax_percentage": 13,
"unit_price": 2,
"updated_at": "2024-03-05 14:43:46.935053"
},
"id": "131",
"relationships": {
"document": {
"data": {
"id": "66",
"type": "commercial_sales_documents"
}
},
"tax": {
"data": {
"id": "2",
"type": "taxes"
}
},
"unit_of_measure": {
"data": {
"id": "5",
"type": "units_of_measure"
}
}
},
"type": "commercial_sales_document_lines"
},
"meta": {
"observed": {
"lines": 1,
"scalar": 1
}
}
}