Mencoro Billing API

Billing

GitHub OpenAPI

Operations 1

GET /api/v1/organizations/{organizationId}/subscription Get the subscription of an organization #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mencoro-com:mencoro-com-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mencoro-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mencoro Billing API
  description: 'Public API for Mencoro customers. Authenticate with an API key: `Authorization: Bearer mencoro_sk_...`.'
  termsOfService: https://mencoro.com/legal/
  contact:
    name: Mencoro Support
    url: https://mencoro.com/contact/
    email: support@mencoro.com
  license:
    name: Proprietary
    url: https://mencoro.com/legal/
  version: 1.0.0
servers:
- url: https://api.mencoro.com
  description: Production
security:
- ApiKey: []
tags:
- name: Billing
  description: Billing
paths:
  /api/v1/organizations/{organizationId}/subscription:
    get:
      tags:
      - Billing
      summary: Get the subscription of an organization
      description: 'Minimum role: viewer. The most recent subscription contract of the organization, whatever its state: tier, billing interval, check budget and consumption, and the cancellation and grace dates. An organization that has never subscribed answers 200 with "status": "none" and every other field null - a null is "not applicable", never a stand-in for a zero budget or zero consumption. Stripe identifiers, prices and payment methods are not part of this API.'
      operationId: getSubscription
      parameters:
      - name: organizationId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The subscription contract, or the "none" state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResource'
        '401':
          description: Missing or invalid API key
        '403':
          description: The key lacks the read capability
        '404':
          description: No organization the caller can access under this id
components:
  schemas:
    SubscriptionResource:
      description: The current subscription contract of an organization
      required:
      - status
      - isEntitled
      properties:
        status:
          description: Contract state. "none" when the organization has never held a subscription.
          type: string
          enum:
          - active
          - inactive
          - none
        tierCode:
          description: Public tier identifier derived from the check budget.
          type:
          - string
          - 'null'
          example: tier_2000
        billingCycleType:
          description: Billing interval of the contract.
          type:
          - string
          - 'null'
          enum:
          - monthly
          - yearly
          - null
        billingCycleAnchor:
          description: Instant the billing cycle is anchored to.
          type:
          - string
          - 'null'
          format: date-time
        checkBudget:
          description: Checks the current cycle grants. Null when there is no subscription, never a stand-in for zero.
          type:
          - integer
          - 'null'
        checksConsumed:
          description: Checks consumed so far in the current cycle. Null when there is no subscription; zero means none consumed yet.
          type:
          - integer
          - 'null'
        checksAvailable:
          description: Checks still available in the current cycle. Null when there is no subscription; zero means the budget is exhausted.
          type:
          - integer
          - 'null'
        nextResetAt:
          description: When the check budget resets next.
          type:
          - string
          - 'null'
          format: date-time
        cancelledAt:
          description: When the subscription was terminally cancelled. Null while it has not been.
          type:
          - string
          - 'null'
          format: date-time
        scheduledToCancelAt:
          description: When a scheduled cancellation takes effect, while the subscription is still running. Null when none is scheduled.
          type:
          - string
          - 'null'
          format: date-time
        gracePeriodEndsAt:
          description: When paid access ends after a cancellation. Null when the subscription is not cancelled.
          type:
          - string
          - 'null'
          format: date-time
        deactivationReason:
          description: Why the subscription is currently inactive. Null for an active subscription, and meaningless once "cancelledAt" is set - the cancellation supersedes it.
          type:
          - string
          - 'null'
          enum:
          - payment_failed
          - paused
          - incomplete
          - other
          - null
        isEntitled:
          description: 'Whether the organization may use paid features right now: active, or cancelled but still inside its paid grace window.'
          type: boolean
      type: object
  securitySchemes:
    ApiKey:
      type: http
      description: 'A Mencoro API key, created from the app under API keys in the user menu. The plaintext key is shown once, at creation, and never again. A key only ever RESTRICTS: it never grants more than its owner''s live membership and role already allow, and every request re-checks those.'
      scheme: bearer