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

# Quantidade de créditos

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Moorse",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.moorse.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/whatsapp/{id}/credit": {
      "get": {
        "summary": "Quantidade de créditos",
        "description": "",
        "operationId": "quantidade-de-créditos",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Id da integração do whatsapp",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"integrationId\": \"aff395c0-5b8a-4bb8-a474-3ed431676b3f\",\n    \"balance\": 0,\n    \"credit\": 0,\n    \"channel\": \"WHATSAPP\",\n    \"billingType\": \"MESSAGE\"\n  },\n  \"errors\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "integrationId": {
                          "type": "string",
                          "example": "aff395c0-5b8a-4bb8-a474-3ed431676b3f"
                        },
                        "balance": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "credit": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "channel": {
                          "type": "string",
                          "example": "WHATSAPP"
                        },
                        "billingType": {
                          "type": "string",
                          "example": "MESSAGE"
                        }
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "5ee29e9b95ba7f023df3170f:613e923d07c7400010906b78"
}
```