MailLeader
  1. Billing
MailLeader
  • Inicio
  • Comece Aqui
  • Comece a receber e-mails
  • Api
    • Authentication
      • Api Keys
        • Create ApiKey
        • Search ApiKeys
        • Remove ApiKey
    • User
      • Get authenticated user
    • Domain
      • Accounts
        • Create Account
        • List Accounts
        • Delete Account
      • Create Domain
      • Domains
      • Delete Domain
    • Mail
      • Send Mail
    • Billing
      • Licenses
        • Search License
        • Get License
      • Invoice
        • Get Invoice Details
        • Search Invoices
        • Get Invoice
      • Expenses
        • List Expenses
      • Profile
      • Domain Usage
        GET
      • Domain Usage Operational
        GET
      • Usage
        GET
      • Current License
        GET
    • Webhook
      • Create Webhook
      • Update Webhook
      • Search Webhook
  1. Billing

Current License

GET
https://mail.devtcloud.com/api/v1/billing/subscription

Requisição

Authorization
Adicionar parâmetro em header
x-api-key
Exemplo:
x-api-key: ********************
Parâmetros Bodyapplication/x-www-form-urlencoded

Respostas

🟢200Sucesso
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mail.devtcloud.com/api/v1/billing/subscription' \
--header 'x-api-key: <api-key>'
Response Response Example
{
    "id": "100000000000000001",
    "userId": "100000000000000002",
    "licenseId": "100000000000000003",
    "status": "active",
    "createdAt": "2025-01-01T12:00:00.000Z",
    "updatedAt": "2025-01-01T12:00:00.000Z",
    "license": {
        "id": "100000000000000003",
        "name": "Plano Básico",
        "externalId": null,
        "price": 0,
        "default": true,
        "description": "",
        "createdAt": "2025-01-01T00:00:00.000Z",
        "updatedAt": "2025-01-01T00:10:00.000Z",
        "resources": [
            {
                "id": "100000000000000004",
                "licenseId": "100000000000000003",
                "resourceId": "100000000000000005",
                "limit": 0,
                "limited": false,
                "createdAt": "2025-01-01T00:10:00.000Z",
                "updatedAt": "2025-01-01T00:10:00.000Z",
                "resource": {
                    "id": "100000000000000005",
                    "codeName": "webhook",
                    "resource": "Webhooks",
                    "createdAt": "2025-01-01T00:05:00.000Z",
                    "updatedAt": "2025-01-01T00:05:00.000Z"
                },
                "resourceUsage": null
            },
            {
                "id": "100000000000000006",
                "licenseId": "100000000000000003",
                "resourceId": "100000000000000007",
                "limit": 1,
                "limited": true,
                "createdAt": "2025-01-01T00:10:00.000Z",
                "updatedAt": "2025-01-01T00:10:00.000Z",
                "resource": {
                    "id": "100000000000000007",
                    "codeName": "mailbox",
                    "resource": "Caixa de Entrada",
                    "createdAt": "2025-01-01T00:06:00.000Z",
                    "updatedAt": "2025-01-01T00:06:00.000Z"
                },
                "resourceUsage": {
                    "id": "100000000000000008",
                    "resourceId": "100000000000000007",
                    "usage": 1,
                    "userId": "100000000000000002",
                    "createdAt": "2025-01-01T13:00:00.000Z",
                    "updatedAt": "2025-01-01T13:05:00.000Z"
                }
            },
            {
                "id": "100000000000000009",
                "licenseId": "100000000000000003",
                "resourceId": "100000000000000010",
                "limit": 20,
                "limited": true,
                "createdAt": "2025-01-01T00:10:00.000Z",
                "updatedAt": "2025-01-01T00:10:00.000Z",
                "resource": {
                    "id": "100000000000000010",
                    "codeName": "relay_mail",
                    "resource": "Relay E-mail",
                    "createdAt": "2025-01-01T00:07:00.000Z",
                    "updatedAt": "2025-01-01T00:07:00.000Z"
                },
                "resourceUsage": {
                    "id": "100000000000000011",
                    "resourceId": "100000000000000010",
                    "usage": 1,
                    "userId": "100000000000000002",
                    "createdAt": "2025-01-01T13:10:00.000Z",
                    "updatedAt": "2025-01-01T14:00:00.000Z"
                }
            }
        ]
    }
}
Modificado em 2025-12-02 23:30:34
Página anterior
Usage
Próxima página
Create Webhook
Built with