{
  "openapi": "3.0.1",
  "info": {
    "title": "Pump Saúde · API para empresas",
    "description": "API para a empresa contratante incluir, consultar e desativar as vidas (beneficiários) do Pump Saúde.\n\n**Como funciona**\n\n- Cada chamada é autenticada com uma chave de API da sua empresa, no header `X-Api-Key`. A chave é mostrada uma única vez, quando é criada. A Pump guarda só uma impressão (hash) dela, então não consegue recuperá-la: se perder, peça uma nova e revogue a antiga. Sua empresa pode ter mais de uma chave ativa ao mesmo tempo.\n- Sua empresa só enxerga e altera as vidas que ela mesma incluiu.\n- A inclusão e a desativação são **assíncronas**. A API responde `202 Accepted` assim que a Pump registra o pedido; a liberação do acesso acontece em seguida, normalmente em poucos minutos. Acompanhe pelo campo `status`.\n- Incluir é **idempotente por CPF**: mandar a mesma vida de novo não duplica nada. Se ela já está ativa ou em liberação, nada muda além dos dados de contato (e-mail, telefone e endereço); nome e data de nascimento ficam como estavam. Se estava desativada ou com falha na liberação, a Pump tenta liberar de novo.\n- Por privacidade, o CPF nunca vai na URL. Para buscar ou desativar por CPF, use `POST /partners/v1/beneficiaries/lookup` e `POST /partners/v1/beneficiaries/deactivate`, que recebem o CPF no corpo.\n\n**Status de uma vida**: `pending_activation` (liberando), `active` (liberado), `activation_failed` (a Pump não conseguiu liberar; veja `error`), `standby` (no contrato; o acesso é liberado quando a pessoa usar o serviço pela primeira vez), `pending_deactivation` (encerrando), `inactive` (encerrado).\n\n**Cadastro completo**: só `cpf`, `name` e `birthDate` são obrigatórios. Para usar uma consulta, a pessoa precisa de e-mail, telefone e endereço; o que faltar, o app pede no primeiro acesso.\n\n**Limites**: até 600 requisições por minuto por chave (acima disso, `429` com `Retry-After`), corpo de até 5 MB e até 1000 vidas por chamada em lote (acima disso, `413`).\n\n**Listagem**: das vidas mais recentes para as mais antigas, até 100 por página. Siga `nextCursor` até ele vir `null`.\n\n**Erros**: formato Problem Details (RFC 9457). Campo inválido responde `422` com `errors` por campo; corpo ilegível, `400`. O campo `type` traz um código estável: `invalid_api_key`, `company_suspended`, `validation_failed`, `invalid_cpf`, `invalid_name`, `invalid_birth_date`, `invalid_contact`, `batch_too_large`, `cpf_unavailable`, `beneficiary_not_found`, `invalid_cursor`, `rate_limited`, `temporarily_unavailable` (503: outra requisição alterou as mesmas vidas ao mesmo tempo; tente de novo).",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.pump.com.br",
      "description": "Produção"
    }
  ],
  "paths": {
    "/partners/v1/beneficiaries": {
      "post": {
        "tags": [
          "Vidas"
        ],
        "summary": "Incluir uma vida",
        "description": "Inclui uma vida na sua empresa e pede a liberação do acesso. Idempotente por CPF: reenviar a mesma vida devolve o estado atual sem duplicar. Responde 202 sem esperar a liberação; acompanhe o status.",
        "operationId": "enrollBeneficiary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBeneficiaryInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBeneficiaryInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBeneficiaryInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Vidas"
        ],
        "summary": "Listar vidas",
        "description": "Lista as vidas da sua empresa, das mais recentes para as mais antigas, em páginas. Para a próxima página, mande o nextCursor da resposta no parâmetro cursor. Quando nextCursor vem nulo, acabou. Filtre por status com pending_activation, active, activation_failed, standby, pending_deactivation ou inactive. limit vai de 1 a 100 (padrão 100).",
        "operationId": "listBeneficiaries",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/beneficiaries/batch": {
      "post": {
        "tags": [
          "Vidas"
        ],
        "summary": "Incluir várias vidas",
        "description": "Inclui até 1000 vidas de uma vez. Cada vida é tratada sozinha: uma inválida não impede as outras. O resultado vem na mesma ordem do pedido, com index apontando a posição de cada vida. O mesmo CPF repetido na mesma chamada é tratado uma vez só.",
        "operationId": "enrollBeneficiariesBatch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBatchInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBatchInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerBatchInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBatchResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBatchResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBatchResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/beneficiaries/{id}": {
      "get": {
        "tags": [
          "Vidas"
        ],
        "summary": "Consultar uma vida",
        "description": "Devolve a vida e o status atual. O id é o identificador devolvido pela Pump na inclusão.",
        "operationId": "getBeneficiary",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Vidas"
        ],
        "summary": "Desativar uma vida",
        "description": "Pede o encerramento do acesso. Responde 202 sem esperar; o status passa por pending_deactivation até chegar a inactive. Desativar uma vida que já está inativa não muda nada. Para voltar a cobrir a pessoa, inclua de novo com POST /partners/v1/beneficiaries.",
        "operationId": "deactivateBeneficiary",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/beneficiaries/lookup": {
      "post": {
        "tags": [
          "Vidas"
        ],
        "summary": "Buscar uma vida pelo CPF",
        "description": "Devolve a vida da sua empresa com esse CPF. O CPF vai no corpo, nunca na URL.",
        "operationId": "lookupBeneficiary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/beneficiaries/deactivate": {
      "post": {
        "tags": [
          "Vidas"
        ],
        "summary": "Desativar uma vida pelo CPF",
        "description": "Pede o encerramento do acesso da vida com esse CPF. Responde 202 sem esperar; o status passa por pending_deactivation até chegar a inactive. Desativar uma vida que já está inativa não muda nada.",
        "operationId": "deactivateBeneficiaryByCpf",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCpfInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NullableOfPartnerBeneficiaryStatus": {
        "enum": [
          "inactive",
          "active",
          "pending_activation",
          "activation_failed",
          "standby",
          "pending_deactivation",
          null
        ],
        "description": "Status da vida depois do pedido; ausente quando result é rejected.",
        "nullable": true
      },
      "PartnerAddress": {
        "required": [
          "street",
          "number",
          "neighborhood",
          "city",
          "state",
          "zipCode"
        ],
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "description": "Logradouro."
          },
          "number": {
            "type": "string",
            "description": "Número."
          },
          "complement": {
            "type": "string",
            "description": "Complemento (opcional).",
            "nullable": true
          },
          "neighborhood": {
            "type": "string",
            "description": "Bairro."
          },
          "city": {
            "type": "string",
            "description": "Cidade."
          },
          "state": {
            "type": "string",
            "description": "Sigla da UF, ex.: SP."
          },
          "zipCode": {
            "type": "string",
            "description": "CEP com 8 dígitos."
          }
        },
        "nullable": true
      },
      "PartnerAddressInput": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "description": "Logradouro.",
            "nullable": true
          },
          "number": {
            "type": "string",
            "description": "Número.",
            "nullable": true
          },
          "complement": {
            "type": "string",
            "description": "Complemento (opcional).",
            "nullable": true
          },
          "neighborhood": {
            "type": "string",
            "description": "Bairro.",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Cidade.",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "Sigla da UF, ex.: SP.",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "description": "CEP com 8 dígitos, com ou sem máscara.",
            "nullable": true
          }
        },
        "nullable": true
      },
      "PartnerBatchInput": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerBeneficiaryInput"
            },
            "description": "Até 1000 vidas.",
            "nullable": true
          }
        }
      },
      "PartnerBatchItemResult": {
        "required": [
          "index",
          "result"
        ],
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "description": "Posição da vida no pedido, a partir de 0.",
            "format": "int32"
          },
          "cpf": {
            "type": "string",
            "description": "CPF só com números, quando foi possível ler.",
            "nullable": true
          },
          "result": {
            "type": "string",
            "description": "created, reactivated, unchanged ou rejected."
          },
          "status": {
            "$ref": "#/components/schemas/NullableOfPartnerBeneficiaryStatus"
          },
          "beneficiary": {
            "$ref": "#/components/schemas/PartnerBeneficiaryResponse2"
          },
          "problem": {
            "$ref": "#/components/schemas/ProblemDetails2"
          }
        }
      },
      "PartnerBatchResult": {
        "required": [
          "accepted",
          "rejected",
          "items"
        ],
        "type": "object",
        "properties": {
          "accepted": {
            "type": "integer",
            "description": "Quantas vidas foram aceitas (created + reactivated + unchanged).",
            "format": "int32"
          },
          "rejected": {
            "type": "integer",
            "description": "Quantas vidas foram recusadas.",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerBatchItemResult"
            }
          }
        }
      },
      "PartnerBeneficiaryError": {
        "required": [
          "code",
          "message",
          "occurredAt"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "activation_rejected, activation_unconfirmed ou deactivation_pending_retry."
          },
          "message": {
            "type": "string",
            "description": "Explicação em português."
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "nullable": true
      },
      "PartnerBeneficiaryInput": {
        "type": "object",
        "properties": {
          "cpf": {
            "type": "string",
            "description": "CPF, com ou sem máscara. Ex.: 529.982.247-25 ou 52998224725. Obrigatório.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Nome completo. Obrigatório.",
            "nullable": true
          },
          "birthDate": {
            "type": "string",
            "description": "Data de nascimento, AAAA-MM-DD. Obrigatória.",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "E-mail (opcional).",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Celular com DDD, sem +55. Ex.: 11999998888 (opcional).",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/PartnerAddressInput"
          }
        }
      },
      "PartnerBeneficiaryPage": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerBeneficiaryResponse"
            }
          },
          "nextCursor": {
            "type": "string",
            "description": "Mande em `cursor` para a próxima página. Nulo quando acabou.",
            "nullable": true
          }
        }
      },
      "PartnerBeneficiaryResponse": {
        "required": [
          "id",
          "cpf",
          "name",
          "birthDate",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identificador da vida na Pump.",
            "format": "uuid"
          },
          "cpf": {
            "type": "string",
            "description": "CPF, só números."
          },
          "name": {
            "type": "string"
          },
          "birthDate": {
            "type": "string",
            "format": "date"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Só números.",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/PartnerAddress"
          },
          "status": {
            "$ref": "#/components/schemas/PartnerBeneficiaryStatus"
          },
          "error": {
            "$ref": "#/components/schemas/PartnerBeneficiaryError"
          },
          "activatedAt": {
            "type": "string",
            "description": "Quando o acesso foi liberado pela última vez.",
            "format": "date-time",
            "nullable": true
          },
          "deactivatedAt": {
            "type": "string",
            "description": "Quando o acesso foi encerrado pela última vez.",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PartnerBeneficiaryResponse2": {
        "required": [
          "id",
          "cpf",
          "name",
          "birthDate",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identificador da vida na Pump.",
            "format": "uuid"
          },
          "cpf": {
            "type": "string",
            "description": "CPF, só números."
          },
          "name": {
            "type": "string"
          },
          "birthDate": {
            "type": "string",
            "format": "date"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Só números.",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/PartnerAddress"
          },
          "status": {
            "$ref": "#/components/schemas/PartnerBeneficiaryStatus"
          },
          "error": {
            "$ref": "#/components/schemas/PartnerBeneficiaryError"
          },
          "activatedAt": {
            "type": "string",
            "description": "Quando o acesso foi liberado pela última vez.",
            "format": "date-time",
            "nullable": true
          },
          "deactivatedAt": {
            "type": "string",
            "description": "Quando o acesso foi encerrado pela última vez.",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "nullable": true
      },
      "PartnerBeneficiaryStatus": {
        "enum": [
          "inactive",
          "active",
          "pending_activation",
          "activation_failed",
          "standby",
          "pending_deactivation"
        ],
        "description": "pending_activation, active, activation_failed, standby, pending_deactivation ou inactive."
      },
      "PartnerCpfInput": {
        "type": "object",
        "properties": {
          "cpf": {
            "type": "string",
            "description": "CPF, com ou sem máscara.",
            "nullable": true
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ProblemDetails2": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "nullable": true
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Chave de API da sua empresa, fornecida pela Pump.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Vidas",
      "description": "Inclusão, consulta e desativação de beneficiários."
    }
  ]
}