> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.erp.olist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualizar pedido



## OpenAPI

````yaml https://erp.olist.com/public-api/v3/swagger/swagger-mintlify.json put /pedidos/{idPedido}
openapi: 3.0.0
info:
  title: Olist ERP API v3
  description: >-
    Documentação completa: <a href="https://api-docs.erp.olist.com"
    target="_blank">https://api-docs.erp.olist.com</a>
  version: '3.1'
servers:
  - url: https://api.tiny.com.br/public-api/v3
security: []
paths:
  /pedidos/{idPedido}:
    put:
      tags:
        - Pedidos
      summary: Atualizar pedido
      operationId: AtualizarPedidoAction
      parameters:
        - $ref: '#/components/parameters/put_pedidos_idPedido_idPedido'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AtualizarPedidoModelRequest'
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
        '503':
          description: Service Unavailable
      security:
        - bearerAuth: []
components:
  parameters:
    put_pedidos_idPedido_idPedido:
      name: idPedido
      in: path
      description: Identificador do pedido
      required: true
      schema:
        type: integer
  schemas:
    AtualizarPedidoModelRequest:
      title: ' '
      description: ' '
      type: object
      allOf:
        - $ref: '#/components/schemas/BasePedidoModel'
        - properties:
            pagamento:
              $ref: '#/components/schemas/PagamentoParcelasRequestModel'
            pagamentosIntegrados:
              type: array
              items:
                $ref: '#/components/schemas/PagamentoIntegradoModelRequest'
          type: object
    ErrorDTO:
      title: ' '
      description: ' '
      properties:
        mensagem:
          description: Mensagem de erro geral
          type: string
          example: Ocorreram erros de validação
        detalhes:
          description: Detalhes específicos do erro
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetailDTO'
          example:
            - campo: codigo
              mensagem: O campo código é obrigatório
          nullable: true
      type: object
    BasePedidoModel:
      title: ' '
      description: ' '
      properties:
        dataPrevista:
          type: string
          example: '2024-01-01'
          nullable: true
        dataEnvio:
          type: string
          example: '2024-01-01 00:00:00'
          nullable: true
        observacoes:
          type: string
          nullable: true
        observacoesInternas:
          type: string
          nullable: true
      type: object
    PagamentoParcelasRequestModel:
      title: ' '
      description: ' '
      type: object
      allOf:
        - properties:
            parcelas:
              type: array
              items:
                $ref: '#/components/schemas/ParcelaModelRequest'
              nullable: true
          type: object
    PagamentoIntegradoModelRequest:
      title: ' '
      description: ' '
      type: object
      allOf:
        - properties:
            valor:
              description: Valor do pagamento
              type: number
              format: float
              example: 10.5
              nullable: true
            tipoPagamento:
              description: Tipo de pagamento (código)
              type: integer
              example: 1
              nullable: true
            cnpjIntermediador:
              description: CNPJ do intermediador
              type: string
              example: '00000000000191'
              nullable: true
            codigoAutorizacao:
              description: Código de autorização da transação
              type: string
              example: '123456'
              nullable: true
            codigoBandeira:
              description: Código da bandeira da operadora de cartão
              type: integer
              example: 1
              nullable: true
          type: object
    ErrorDetailDTO:
      title: ' '
      description: ' '
      properties:
        campo:
          description: Campo que gerou o erro
          type: string
          example: codigo
        mensagem:
          description: Mensagem de erro específica do campo
          type: string
          example: O campo código é obrigatório
      type: object
    ParcelaModelRequest:
      title: ' '
      description: ' '
      type: object
      allOf:
        - $ref: '#/components/schemas/ParcelaModel'
        - properties:
            formaRecebimento:
              $ref: '#/components/schemas/FormaRecebimentoRequestModel'
            meioPagamento:
              $ref: '#/components/schemas/MeioPagamentoRequestModel'
          type: object
    ParcelaModel:
      title: ' '
      description: ' '
      type: object
      allOf:
        - properties:
            dias:
              type: integer
              nullable: true
            data:
              type: string
              example: '2024-01-01'
              nullable: true
            valor:
              type: number
              format: float
              nullable: true
            observacoes:
              type: string
              nullable: true
          type: object
    FormaRecebimentoRequestModel:
      title: ' '
      description: ' '
      type: object
      allOf:
        - properties:
            id:
              type: integer
              nullable: true
          type: object
    MeioPagamentoRequestModel:
      title: ' '
      description: ' '
      type: object
      allOf:
        - properties:
            id:
              type: integer
              nullable: true
          type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: Bearer

````