openapi: 3.0.3
info:
  title: Asaas Admin
  version: 1.0.0
  description: Endpoints administrativos para visao consolidada da integracao Asaas.
  license:
    name: Uso interno
    url: https://dash.tiix.com.br/adm/api-docs
servers:
  - url: /adm/api
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: wordpress_logged_in
security:
  - cookieAuth: []
paths:
  /adm/api/AsaasAdmin/overview:
    post:
      tags:
        - AsaasAdmin
      operationId: AsaasAdmin.overview
      summary: Visao consolidada da integracao Asaas
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                id_contrato:
                  type: integer
                  nullable: true
                  description: Contrato alvo. Em branco usa escopo atual ou global para super admin.
      responses:
        '200':
          description: Panorama consolidado da operacao Asaas
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: integer
                  data:
                    type: object
                    properties:
                      tenant:
                        type: object
                      accounts:
                        type: object
                      payments:
                        type: object
                      webhooks:
                        type: object
                      recent_payments:
                        type: array
                        items:
                          type: object
                      recent_webhooks:
                        type: array
                        items:
                          type: object
                      alerts:
                        type: array
                        items:
                          type: object
        '400':
          description: Requisicao invalida
