---
title: "Buscar pedidos realizados"
method: GET
path: "/bifrost/orders"
tags: ["Bifrost"]
---

# Buscar pedidos realizados

`GET /bifrost/orders`

Lista os pedidos realizados

## Query parameters

- `year` integer, nullable — Ano
- `months` integer, nullable — Mês
- `start_date` string, nullable — Data de início
- `end_date` string, nullable — Data de fim
- `start_value` integer, nullable — Valor inicial
- `end_value` integer, nullable — Valor final
- `state` string, nullable — Estado
- `protocol` string, nullable — Protocolo
- `license_plate` string, nullable — Placa
- `renavam` string, nullable — Renavam
- `status` string, nullable — Status
- `status_in` string, nullable — Status em
- `payment_type_in` string, nullable — Tipo de pagamento em
- `page` integer, nullable — Página
- `size` integer, nullable — Limite de itens por página
- `order_by` string, nullable — Ordenar por Enum: "STATE" "PROTOCOL" "CREATED_AT" "LICENSE_PLATE"

## Response `200`

Relatório de pedidos

- BifrostResponseDTOInput
  - `pagination` Pagination
    - `count` integer, nullable
    - `total_pages` integer, nullable
    - `offset_page` integer, nullable
  - `portal_orders` PortalOrderInput[], nullable
    - `id` integer, nullable
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `order` Order
      - `id` integer, nullable
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `state` string, nullable
      - `protocol` string, nullable
      - `status` string, nullable
      - `base_amount` number, nullable
      - `total_amount` number, nullable
      - `initial_amount` number, nullable
      - `external_order_number` string, nullable
    - `vehicle` Vehicle
      - `year` string, nullable
      - `color` string, nullable
      - `model` string, nullable
      - `owner` string, nullable
    - `customer` V2PackagesEnterpriseSchemasBifrostBifrostResponseSchemasCustomer
      - `id` integer, nullable
      - `renavam` string, nullable
      - `license_plate` string, nullable
    - `items` Item[], nullable
      - `id` integer, nullable
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `unique_key` string, nullable
      - `category` string, nullable
      - `title` string, nullable
      - `description` string, nullable
      - `amount` number, nullable
      - `type` string, nullable
      - `settled` boolean, nullable
      - `status` string, nullable
      - `canceled` boolean, nullable
    - `payments` PaymentInput[], nullable
      - `id` integer, nullable
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `capture_date` string, nullable
      - `installments` integer, nullable
      - `installments_amount` number, nullable
      - `amount` number, nullable
      - `status` string, nullable
      - `type` string, nullable
      - `card` V2PackagesEnterpriseSchemasBifrostBifrostResponseSchemasCard
        - `id` integer, nullable
        - `created_at` string, nullable
        - `updated_at` string, nullable
        - `last_four` string, nullable
        - `brand` string, nullable
        - `bin` string, nullable
        - `trunc` string, nullable
    - `establishment` Establishment
      - `id` integer, nullable
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `title` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usezapay/apis/zapi.md) · [All operations](https://skmtc.net/usezapay/apis/zapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usezapay/zapi/revisions/50c96157fff4/schema)
