> ## Documentation Index
> Fetch the complete documentation index at: https://whallet.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Obter MRR

> Retorna o MRR (receita recorrente mensal) e o total de assinaturas ativas da loja. Os dois campos são objetos: o número fica em `value`. Use o token `mrr_` gerado no app Trust MRR.

> [card]
>
> Use o token `mrr_` gerado no app Trust MRR.


## OpenAPI

````yaml openapi.yaml GET /public-mrr/mrr
openapi: 3.1.0
info:
  title: API Whallet
  description: API para gerenciamento de cobranças e pagamentos usando o Whallet.
  version: 1.0.0
servers:
  - url: https://api.whallet.com/v1
    description: Único servidor para os ambientes de produção e sandbox.
security: []
paths:
  /public-mrr/mrr:
    get:
      summary: Obter MRR (Monthly Recurring Revenue)
      description: >-
        Retorna o MRR (receita recorrente mensal) e o total de assinaturas
        ativas da loja. Os dois campos são objetos: o número fica em `value`.
        Use o token `mrr_` gerado no app Trust MRR.
      responses:
        '200':
          description: Dados de MRR retornados com sucesso.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      mrr:
                        type: object
                        description: >-
                          Receita recorrente mensal das assinaturas pagantes. O
                          valor em centavos fica em `value`; cada assinatura
                          entra com o valor de um mês (a anual conta 1/12, a
                          trimestral 1/3). 0 indica que não há receita
                          recorrente.
                        required:
                          - currency
                          - value
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: number
                            example: 129900
                      totalActiveSubscriptions:
                        type: object
                        description: >-
                          Assinaturas ativas, incluindo as em período de teste.
                          A quantidade fica em `value`.
                        required:
                          - currency
                          - value
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: integer
                            example: 12
                    required:
                      - mrr
                      - totalActiveSubscriptions
                    additionalProperties: false
                  error:
                    type: string
                    nullable: true
                    example: null
                  success:
                    $ref: '#/components/schemas/Success'
        '401':
          description: Não autorizado. Falha na autenticação.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: >-
                      Mensagem de erro descrevendo o motivo da falha na
                      autenticação.
                    example: Unauthorized
      security:
        - bearerAuth: []
components:
  schemas:
    Success:
      type: boolean
      description: Se a requisição obteve sucesso ou não.
      example: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Todas as requisições devem incluir sua chave de API no header
        Authorization usando o formato `Bearer <whallet-api-key>`. Sem esse
        header a requisição será rejeitada.


        Saiba mais sobre como criar e usar chaves de API na [documentação de
        autenticação](/pages/authentication).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.