---
title: "Atualizar ordem de compra"
method: PUT
path: "/ordem-compra/{idOrdemCompra}"
tags: ["Ordem de Compra"]
---

# Atualizar ordem de compra

`PUT /ordem-compra/{idOrdemCompra}`

## Path parameters

- `idOrdemCompra` integer, required

## Request body

- AtualizarOrdemCompraModelRequest — 
  - `data` string, nullable
  - `dataPrevista` string, nullable
  - `desconto` number, float, nullable
  - `condicao` string, nullable
  - `observacoes` string, nullable
  - `observacoesInternas` string, nullable
  - `fretePorConta` 'R' | 'D' | 'T' | '3' | '4' | 'S', nullable — - R - Remetente - D - Destinatario - T - Terceiros - 3 - Proprio Remetente - 4 - Proprio Destinatario - S - Sem Transporte
  - `transportador` string, nullable
  - `parcelas` OrdemCompraParcelaModelRequest[]
    - `dias` integer
    - `dataVencimento` string
    - `valor` number, float
    - `contaContabil` ContaContabilModel — 
      - `id` integer, nullable
    - `meioPagamento` string, nullable — - 1 - Dinheiro - 2 - Cheque - 3 - Cartao Credito - 4 - Cartao Debito - 5 - Credito Loja - 10 - Vale Alimentacao - 11 - Vale Refeicao - 12 - Vale Presente - 13 - Vale Combustivel - 14 - Duplicata Mercantil - 15 - Boleto - 16 - Deposito Bancario - 17 - Pix - 18 - Transferencia Bancaria Carteira Digital - 19 - Fidelidade Cashback Credito Virtual - 20 - Pix Estatico - 90 - Sem Pagamento - 99 - Outros
    - `observacoes` string

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/olist/apis/olist-erp-api-v3.md) · [All operations](https://skmtc.net/olist/apis/olist-erp-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/olist/olist-erp-api-v3/versions/c351400bb11f/schema)
