Eurobase Billing API

The Billing API from Eurobase — 4 operation(s) for billing.

GitHub OpenAPI

Operations 4

POST /billing/checkout-session Create a Stripe Checkout session for an organization plan upgrade #
POST /billing/subscription-plan Change an active subscription between Starter and Pro #
POST /billing/ownership Transfer billing responsibility to an existing member of every project sharing… #
POST /billing/portal-session Create a Stripe Customer Portal session for 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/eurobase-dev:eurobase-dev-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

eurobase-dev-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Eurobase Billing API
  version: 0.2.0
  description: Eurobase deployment control-plane API.
servers:
- url: https://api.eurobase.dev
tags:
- name: Billing
paths:
  /billing/checkout-session:
    post:
      summary: Create a Stripe Checkout session for an organization plan upgrade
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - planCode
              properties:
                organizationId:
                  type: string
                  description: When omitted, the only organization of the user is used; for a user without any project, checkout creates the default billing scope.
                planCode:
                  type: string
                  enum:
                  - starter
                  - pro
      responses:
        '201':
          description: Stripe Checkout redirect URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingCheckoutSessionResponse'
        '409':
          description: Billing subscription is already active for this organization
      tags:
      - Billing
      operationId: postBillingCheckoutSession
      x-operation-id-source: derived
  /billing/subscription-plan:
    post:
      summary: Change an active subscription between Starter and Pro
      description: Updates the existing Stripe subscription item price. An upgrade charges the prorated difference now and applies only once paid; a downgrade applies now and credits unused time on the next invoice. Paid limits change only after the signed Stripe subscription webhook.
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              - planCode
              properties:
                organizationId:
                  type: string
                planCode:
                  type: string
                  enum:
                  - starter
                  - pro
      responses:
        '200':
          description: Stripe accepted the plan change; entitlement follows the signed webhook
          content:
            application/json:
              schema:
                type: object
                required:
                - planCode
                properties:
                  planCode:
                    type: string
                    enum:
                    - starter
                    - pro
        '402':
          description: Payment for the upgrade failed; the plan is unchanged
        '403':
          description: Billing owner required
        '409':
          description: No active subscription to change, the plan is already active, or Stripe holds an unconfirmed change
      tags:
      - Billing
      operationId: postBillingSubscriptionPlan
      x-operation-id-source: derived
  /billing/ownership:
    post:
      summary: Transfer billing responsibility to an existing member of every project sharing…
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              - email
              - confirmation
              properties:
                organizationId:
                  type: string
                email:
                  type: string
                confirmation:
                  type: string
      responses:
        '200':
          description: Billing responsibility transferred; project roles unchanged
        '400':
          description: Confirmation does not match the current billing owner email
        '403':
          description: Current billing owner required
        '409':
          description: Recipient must be an active member of every project sharing the plan
      tags:
      - Billing
      operationId: postBillingOwnership
      x-operation-id-source: derived
  /billing/portal-session:
    post:
      summary: Create a Stripe Customer Portal session for an organization
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              properties:
                organizationId:
                  type: string
                flow:
                  type: string
                  enum:
                  - cancel
                  description: Open the portal on the cancellation step for the organization subscription
      responses:
        '201':
          description: Stripe Customer Portal redirect URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingPortalSessionResponse'
        '400':
          description: Unknown portal flow
        '409':
          description: No Stripe customer exists for this organization, or no subscription can be canceled
      tags:
      - Billing
      operationId: postBillingPortalSession
      x-operation-id-source: derived
components:
  schemas:
    BillingPortalSessionResponse:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
    BillingCheckoutSessionResponse:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    sessionCookie:
      type: apiKey
      in: cookie
      name: __Host-eurobase_session
    csrfHeader:
      type: apiKey
      in: header
      name: X-Eurobase-CSRF