---
agentTools:
  projectIndex: https://moblix.readme.io/llms.txt
---

# /api/CartaoUtilizacao

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "CarteiraMilhasApi",
    "version": "v1"
  },
  "paths": {
    "/api/CartaoUtilizacao": {
      "put": {
        "tags": [
          "CartaoUtilizacao"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CartaoUtilizacao"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartaoUtilizacao"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CartaoUtilizacao"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CartaoUtilizacao"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoUtilizacaoContainerObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoUtilizacaoContainerObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoUtilizacaoContainerObject"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Cartao": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "orderBy": {
            "type": "string",
            "nullable": true
          },
          "orderDesc": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "idParceiro": {
            "type": "integer",
            "format": "int32"
          },
          "idPessoa": {
            "type": "integer",
            "format": "int32"
          },
          "idProgramaFidelidadeTipo": {
            "type": "integer",
            "format": "int32"
          },
          "quantidadeComprada": {
            "type": "integer",
            "format": "int32"
          },
          "quantidadeUtilizada": {
            "type": "integer",
            "format": "int32"
          },
          "valorTotalCompra": {
            "type": "number",
            "format": "double"
          },
          "dataVencimentoMilhas": {
            "type": "string",
            "format": "date-time"
          },
          "dataVencimentoCompra": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usuario": {
            "type": "string",
            "nullable": true
          },
          "senha": {
            "type": "string",
            "nullable": true
          },
          "prioridade": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "observacoes": {
            "type": "string",
            "nullable": true
          },
          "criacao": {
            "type": "string",
            "format": "date-time"
          },
          "ultimaAlteracao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parceiro": {
            "$ref": "#/components/schemas/Parceiro"
          },
          "pessoa": {
            "$ref": "#/components/schemas/Pessoa"
          },
          "programaFidelidadeTipo": {
            "$ref": "#/components/schemas/ProgramaFidelidadeTipo"
          },
          "cartaoUtilizacao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartaoUtilizacao"
            },
            "nullable": true
          },
          "nomePessoa": {
            "type": "string",
            "nullable": true
          },
          "incluirCartaoUtilizacao": {
            "type": "boolean"
          },
          "somenteNaoVencido": {
            "type": "boolean"
          },
          "dataInicioVencimento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataFimVencimento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "vencido": {
            "type": "boolean",
            "readOnly": true
          },
          "quantidadeDisponivel": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "dataVencimentoMilhasProximos30Dias": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CartaoUtilizacao": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "orderBy": {
            "type": "string",
            "nullable": true
          },
          "orderDesc": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "idCartao": {
            "type": "integer",
            "format": "int32"
          },
          "idPedido": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quantidadeMilhasUtilizada": {
            "type": "integer",
            "format": "int32"
          },
          "dataUtilizacao": {
            "type": "string",
            "format": "date-time"
          },
          "idSituacaoCartaoUtilizacao": {
            "type": "integer",
            "format": "int32"
          },
          "observacoes": {
            "type": "string",
            "nullable": true
          },
          "criacao": {
            "type": "string",
            "format": "date-time"
          },
          "ultimaAlteracao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cartao": {
            "$ref": "#/components/schemas/Cartao"
          },
          "situacaoCartaoUtilizacao": {
            "$ref": "#/components/schemas/SituacaoCartaoUtilizacao"
          },
          "pedido": {
            "$ref": "#/components/schemas/Pedido"
          },
          "nomePessoa": {
            "type": "string",
            "nullable": true
          },
          "dataInicioUtilizacao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataFimUtilizacao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentosPassageirosUtilizacao": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CartaoUtilizacaoContainerObject": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "readOnly": true
          },
          "hasResult": {
            "type": "boolean",
            "readOnly": true
          },
          "erro": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartaoUtilizacao"
            },
            "nullable": true
          },
          "totalItens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cia": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "iata": {
            "type": "string",
            "nullable": true
          },
          "ativaBusca": {
            "type": "boolean",
            "nullable": true
          },
          "icao": {
            "type": "string",
            "nullable": true
          },
          "pais": {
            "type": "string",
            "nullable": true
          },
          "viagensCia": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Viagem"
            },
            "nullable": true
          },
          "viagensCiaOperadora": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Viagem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Parceiro": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "criacao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ultimaAlteracao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ativo": {
            "type": "boolean",
            "nullable": true
          },
          "logo": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "facebook": {
            "type": "string",
            "nullable": true
          },
          "instagram": {
            "type": "string",
            "nullable": true
          },
          "twitter": {
            "type": "string",
            "nullable": true
          },
          "faveicon": {
            "type": "string",
            "nullable": true
          },
          "imgFundo": {
            "type": "string",
            "nullable": true
          },
          "cnpj": {
            "type": "string",
            "nullable": true
          },
          "vindiChavePrivada": {
            "type": "string",
            "nullable": true
          },
          "vindiChavePublica": {
            "type": "string",
            "nullable": true
          },
          "diamanteSmiles": {
            "type": "boolean",
            "nullable": true
          },
          "tokenAcessoApi": {
            "type": "string",
            "nullable": true
          },
          "idEndereco": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "clubeSmiles": {
            "type": "boolean",
            "nullable": true
          },
          "modoCorporativo": {
            "type": "boolean",
            "nullable": true
          },
          "cadastur": {
            "type": "boolean",
            "nullable": true
          },
          "idDecolar": {
            "type": "string",
            "nullable": true
          },
          "pagSeguroEmail": {
            "type": "string",
            "nullable": true
          },
          "pagSeguroToken": {
            "type": "string",
            "nullable": true
          },
          "idGatewayPagamento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idPlano": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "percentualSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pagSeguroApplId": {
            "type": "string",
            "nullable": true
          },
          "pagSeguroApplPubKey": {
            "type": "string",
            "nullable": true
          },
          "pagSeguroSellerPubKey": {
            "type": "string",
            "nullable": true
          },
          "pagSeguroSplit": {
            "type": "boolean",
            "nullable": true
          },
          "pagSeguroSellerAuthCode": {
            "type": "string",
            "nullable": true
          },
          "tokenApp": {
            "type": "string",
            "nullable": true
          },
          "idClienteVindi": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cartao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cartao"
            },
            "nullable": true
          },
          "pessoa": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pessoa"
            },
            "nullable": true
          },
          "pedido": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pedido"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Passageiro": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "sobrenome": {
            "type": "string",
            "nullable": true
          },
          "nascimento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rg": {
            "type": "string",
            "nullable": true
          },
          "cpf": {
            "type": "string",
            "nullable": true
          },
          "passaporte": {
            "type": "string",
            "nullable": true
          },
          "sexo": {
            "type": "string",
            "nullable": true
          },
          "idPedido": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "validadePassaporte": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paisEmissor": {
            "type": "string",
            "nullable": true
          },
          "pedido": {
            "$ref": "#/components/schemas/Pedido"
          }
        },
        "additionalProperties": false
      },
      "Pedido": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "adultos": {
            "type": "integer",
            "format": "int32"
          },
          "criancas": {
            "type": "integer",
            "format": "int32"
          },
          "bebes": {
            "type": "integer",
            "format": "int32"
          },
          "idStatus": {
            "type": "integer",
            "format": "int32"
          },
          "criacao": {
            "type": "string",
            "format": "date-time"
          },
          "idMeioPagamento": {
            "type": "integer",
            "format": "int32"
          },
          "ultimaAlteracao": {
            "type": "string",
            "format": "date-time"
          },
          "idParceiro": {
            "type": "integer",
            "format": "int32"
          },
          "idFaturaVindi": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idExterno": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parcelas": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "urlBoleto": {
            "type": "string",
            "nullable": true
          },
          "idUsuario": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idCliente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idContaBancaria": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idStatusPagamento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idFaturaPagSeguro": {
            "type": "string",
            "nullable": true
          },
          "idStatusPagamentoPagSeguro": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "valorJuros": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valorSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "idPedidoTipo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paypalOrderId": {
            "type": "string",
            "nullable": true
          },
          "paypalSubscriptionId": {
            "type": "string",
            "nullable": true
          },
          "reservaFacilToken": {
            "type": "string",
            "nullable": true
          },
          "transactionId": {
            "type": "string",
            "nullable": true
          },
          "reservaFacilLocalizador": {
            "type": "string",
            "nullable": true
          },
          "idPagante": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "observacoes": {
            "type": "string",
            "nullable": true
          },
          "parceiro": {
            "$ref": "#/components/schemas/Parceiro"
          },
          "cartaoUtilizacao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartaoUtilizacao"
            },
            "nullable": true
          },
          "passageiro": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Passageiro"
            },
            "nullable": true
          },
          "viagem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Viagem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Pessoa": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "criacao": {
            "type": "string",
            "format": "date-time"
          },
          "ultimaAlteracao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "idAgencia": {
            "type": "integer",
            "format": "int32"
          },
          "idEndereco": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "senha": {
            "type": "string",
            "nullable": true
          },
          "idPermissao": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "observacoes": {
            "type": "string",
            "nullable": true
          },
          "idAgenciaNavigation": {
            "$ref": "#/components/schemas/Parceiro"
          },
          "pessoaFisica": {
            "$ref": "#/components/schemas/PessoaFisica"
          },
          "pessoaJuridica": {
            "$ref": "#/components/schemas/PessoaJuridica"
          },
          "cartao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cartao"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PessoaFisica": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "cpf": {
            "type": "string",
            "nullable": true
          },
          "nascimento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sexo": {
            "type": "string",
            "nullable": true
          },
          "idNavigation": {
            "$ref": "#/components/schemas/Pessoa"
          }
        },
        "additionalProperties": false
      },
      "PessoaJuridica": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "cnpj": {
            "type": "string",
            "nullable": true
          },
          "razaoSocial": {
            "type": "string",
            "nullable": true
          },
          "idNavigation": {
            "$ref": "#/components/schemas/Pessoa"
          }
        },
        "additionalProperties": false
      },
      "ProgramaFidelidadeTipo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "ativo": {
            "type": "boolean"
          },
          "cartao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cartao"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SituacaoCartaoUtilizacao": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "cartaoUtilizacao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartaoUtilizacao"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Viagem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "idPedido": {
            "type": "integer",
            "format": "int32"
          },
          "volta": {
            "type": "boolean",
            "nullable": true
          },
          "idCia": {
            "type": "integer",
            "format": "int32"
          },
          "localizador": {
            "type": "string",
            "nullable": true
          },
          "eticket": {
            "type": "string",
            "nullable": true
          },
          "milhasAdulto": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "milhasCrianca": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "valorAdulto": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valorCrianca": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "taxaServico": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "taxaEmbarque": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "taxaBagagem": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "milheiro": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "qntdBagagem": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idCiaOperadora": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "taxaEmissaoResgate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cia": {
            "$ref": "#/components/schemas/Cia"
          },
          "ciaOperadora": {
            "$ref": "#/components/schemas/Cia"
          },
          "pedido": {
            "$ref": "#/components/schemas/Pedido"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Moblix authorization header using the Bearer scheme. \r\n\r\n Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer eyJ0eXAiOiJKV1QiL...\"",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 103,
      "2": 61,
      "3": 88,
      "4": 58,
      "5": 61,
      "6": 27,
      "7": 0,
      "8": 83,
      "9": 164,
      "10": 237,
      "11": 70
    }
  }
}
```