OpenRush Billing API

The billing API from OpenRush — 6 operation(s) for billing.

GitHub OpenAPI

Operations 7

POST /v1/billing/checkout-session Create Checkout Session #
POST /v1/billing/portal-session Create Portal Session #
POST /v1/billing/setup-session Create Setup Session #
POST /v1/billing/setup-session/complete Complete Setup Session #
GET /v1/billing/auto-recharge Get Auto Recharge Settings #
PUT /v1/billing/auto-recharge Update Auto Recharge Settings #
DELETE /v1/billing/auto-recharge/payment-method Remove Auto Recharge Payment Method #

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/openrush-com:openrush-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

openrush-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenRush Billing API
  description: 'The ground-truth marketing data layer for AI agents. Every response is a typed envelope: compact data, typed facts, entity index, deltas, provenance, coverage, next actions.'
  version: 0.1.0
tags:
- name: Billing
paths:
  /v1/billing/checkout-session:
    post:
      tags:
      - Billing
      summary: Create Checkout Session
      operationId: create_checkout_session_v1_billing_checkout_session_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutSessionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutSessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/portal-session:
    post:
      tags:
      - Billing
      summary: Create Portal Session
      description: A one-click, already-signed-in Stripe customer portal for invoices.
      operationId: create_portal_session_v1_billing_portal_session_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingPortalSessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/setup-session:
    post:
      tags:
      - Billing
      summary: Create Setup Session
      operationId: create_setup_session_v1_billing_setup_session_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingSetupSessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/setup-session/complete:
    post:
      tags:
      - Billing
      summary: Complete Setup Session
      operationId: complete_setup_session_v1_billing_setup_session_complete_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingSetupCompleteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoRechargeSettingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/auto-recharge:
    get:
      tags:
      - Billing
      summary: Get Auto Recharge Settings
      operationId: get_auto_recharge_settings_v1_billing_auto_recharge_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoRechargeSettingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Billing
      summary: Update Auto Recharge Settings
      operationId: update_auto_recharge_settings_v1_billing_auto_recharge_put
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoRechargeUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoRechargeSettingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/auto-recharge/payment-method:
    delete:
      tags:
      - Billing
      summary: Remove Auto Recharge Payment Method
      operationId: remove_auto_recharge_payment_method_v1_billing_auto_recharge_payment_method_delete
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoRechargeSettingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SavedCardPublic:
      properties:
        brand:
          type: string
          title: Brand
        last4:
          type: string
          title: Last4
        exp_month:
          type: integer
          title: Exp Month
        exp_year:
          type: integer
          title: Exp Year
      type: object
      required:
      - brand
      - last4
      - exp_month
      - exp_year
      title: SavedCardPublic
    AutoRechargeAttemptPublic:
      properties:
        created_at:
          type: string
          format: date-time
          title: Created At
        dollars:
          type: integer
          title: Dollars
        status:
          type: string
          enum:
          - pending
          - succeeded
          - failed
          title: Status
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
      type: object
      required:
      - created_at
      - dollars
      - status
      title: AutoRechargeAttemptPublic
    BillingSetupCompleteRequest:
      properties:
        session_id:
          type: string
          maxLength: 255
          minLength: 5
          title: Session Id
      type: object
      required:
      - session_id
      title: BillingSetupCompleteRequest
    AutoRechargeUpdateRequest:
      properties:
        enabled:
          type: boolean
          title: Enabled
        threshold_credits:
          type: integer
          maximum: 10000.0
          minimum: 50.0
          title: Threshold Credits
        recharge_dollars:
          type: integer
          maximum: 10000.0
          minimum: 10.0
          title: Recharge Dollars
        monthly_limit_dollars:
          anyOf:
          - type: integer
            maximum: 100000.0
            minimum: 10.0
          - type: 'null'
          title: Monthly Limit Dollars
      type: object
      required:
      - enabled
      - threshold_credits
      - recharge_dollars
      title: AutoRechargeUpdateRequest
    CheckoutSessionRequest:
      properties:
        dollars:
          type: integer
          maximum: 10000.0
          minimum: 10.0
          title: Dollars
      type: object
      required:
      - dollars
      title: CheckoutSessionRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    BillingPortalSessionResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: BillingPortalSessionResponse
    AutoRechargeSettingsResponse:
      properties:
        enabled:
          type: boolean
          title: Enabled
        threshold_credits:
          type: integer
          title: Threshold Credits
        recharge_dollars:
          type: integer
          title: Recharge Dollars
        monthly_limit_dollars:
          anyOf:
          - type: integer
          - type: 'null'
          title: Monthly Limit Dollars
        month_to_date_dollars:
          type: integer
          title: Month To Date Dollars
        pending_recharge_dollars:
          type: integer
          title: Pending Recharge Dollars
        remaining_monthly_dollars:
          anyOf:
          - type: integer
          - type: 'null'
          title: Remaining Monthly Dollars
        monthly_limit_reached:
          type: boolean
          title: Monthly Limit Reached
        monthly_limit_resets_at:
          type: string
          format: date-time
          title: Monthly Limit Resets At
        status:
          type: string
          enum:
          - idle
          - pending
          - retry_wait
          - suspended
          - monthly_cap_reached
          title: Status
        next_retry_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Next Retry At
        failure_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Failure Message
        last_successful_recharge_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Successful Recharge At
        card:
          anyOf:
          - $ref: '#/components/schemas/SavedCardPublic'
          - type: 'null'
        recent_attempts:
          items:
            $ref: '#/components/schemas/AutoRechargeAttemptPublic'
          type: array
          title: Recent Attempts
      type: object
      required:
      - enabled
      - threshold_credits
      - recharge_dollars
      - monthly_limit_dollars
      - month_to_date_dollars
      - pending_recharge_dollars
      - remaining_monthly_dollars
      - monthly_limit_reached
      - monthly_limit_resets_at
      - status
      - next_retry_at
      - failure_message
      - last_successful_recharge_at
      - card
      - recent_attempts
      title: AutoRechargeSettingsResponse
    BillingSetupSessionResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: BillingSetupSessionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckoutSessionResponse:
      properties:
        id:
          type: string
          title: Id
        url:
          type: string
          title: Url
        credits_to_add:
          type: integer
          title: Credits To Add
      type: object
      required:
      - id
      - url
      - credits_to_add
      title: CheckoutSessionResponse