TickerTrac Billing API

The billing API from TickerTrac — 12 operation(s) for billing.

GitHub OpenAPI

Operations 12

GET /billing/catalog Billing Catalog #
GET /billing/status Billing Status #
POST /billing/checkout Create Checkout Session #
POST /billing/portal Create Portal Session #
POST /billing/webhook Stripe Webhook #
POST /billing/native/account Native Account #
POST /billing/native/verify Verify Native Purchase #
GET /billing/native/catalog Native Catalog #
POST /billing/native/prepare Prepare Native Purchase #
POST /billing/native/attempt Native Attempt Outcome #
POST /billing/native/notifications/apple/{environment} Apple Notification #
POST /billing/native/notifications/google Google Notification #

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

tickertrac-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TickerRAG Billing API
  version: 0.1.0
tags:
- name: Billing
paths:
  /billing/catalog:
    get:
      tags:
      - Billing
      summary: Billing Catalog
      operationId: billing_catalog_billing_catalog_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /billing/status:
    get:
      tags:
      - Billing
      summary: Billing Status
      operationId: billing_status_billing_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingStatusOut'
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout Session
      operationId: create_checkout_session_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutSessionIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutSessionOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/portal:
    post:
      tags:
      - Billing
      summary: Create Portal Session
      operationId: create_portal_session_billing_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalSessionOut'
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/webhook:
    post:
      tags:
      - Billing
      summary: Stripe Webhook
      operationId: stripe_webhook_billing_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /billing/native/account:
    post:
      tags:
      - Billing
      summary: Native Account
      operationId: native_account_billing_native_account_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/native/verify:
    post:
      tags:
      - Billing
      summary: Verify Native Purchase
      operationId: verify_native_purchase_billing_native_verify_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/native/catalog:
    get:
      tags:
      - Billing
      summary: Native Catalog
      operationId: native_catalog_billing_native_catalog_get
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
      parameters:
      - name: store
        in: query
        required: true
        schema:
          enum:
          - apple
          - google
          type: string
          title: Store
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/native/prepare:
    post:
      tags:
      - Billing
      summary: Prepare Native Purchase
      operationId: prepare_native_purchase_billing_native_prepare_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/native/attempt:
    post:
      tags:
      - Billing
      summary: Native Attempt Outcome
      operationId: native_attempt_outcome_billing_native_attempt_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttemptOutcome'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /billing/native/notifications/apple/{environment}:
    post:
      tags:
      - Billing
      summary: Apple Notification
      operationId: apple_notification_billing_native_notifications_apple__environment__post
      parameters:
      - name: environment
        in: path
        required: true
        schema:
          enum:
          - production
          - sandbox
          type: string
          title: Environment
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/native/notifications/google:
    post:
      tags:
      - Billing
      summary: Google Notification
      operationId: google_notification_billing_native_notifications_google_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BillingStatusOut:
      properties:
        native_subscriptions:
          items:
            $ref: '#/components/schemas/NativeSubscriptionOut'
          type: array
          title: Native Subscriptions
        subscription_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Status
        current_period_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Current Period End
        is_active:
          type: boolean
          title: Is Active
        plan_code:
          type: string
          enum:
          - free
          - investor
          - pro
          - legacy_investor
          - comp
          - admin
          title: Plan Code
          default: free
        billing_interval:
          anyOf:
          - type: string
            enum:
            - month
            - year
          - type: 'null'
          title: Billing Interval
        subscription_price_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Price Id
        cancel_at_period_end:
          type: boolean
          title: Cancel At Period End
          default: false
        cancel_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Cancel At
        is_legacy_plan:
          type: boolean
          title: Is Legacy Plan
          default: false
        meaningful_change_delivered:
          type: boolean
          title: Meaningful Change Delivered
          default: false
        meaningful_change_viewed:
          type: boolean
          title: Meaningful Change Viewed
          default: false
        active_thesis_count:
          type: integer
          title: Active Thesis Count
        active_thesis_limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Active Thesis Limit
        active_company_count:
          type: integer
          title: Active Company Count
          default: 0
        active_company_limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Active Company Limit
        active_monitoring_context_count:
          type: integer
          title: Active Monitoring Context Count
          default: 0
        active_monitoring_context_limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Active Monitoring Context Limit
        active_theme_count:
          type: integer
          title: Active Theme Count
          default: 0
        active_theme_limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Active Theme Limit
        permanent_free_active_thesis_limit:
          type: integer
          title: Permanent Free Active Thesis Limit
          default: 1
        permanent_free_monitored_company_limit:
          type: integer
          title: Permanent Free Monitored Company Limit
          default: 1
        comp_expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Comp Expires At
        comp_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Comp Reason
      type: object
      required:
      - subscription_status
      - current_period_end
      - is_active
      - active_thesis_count
      - active_thesis_limit
      title: BillingStatusOut
    NativeSubscriptionOut:
      properties:
        store:
          type: string
          enum:
          - apple
          - google
          title: Store
        environment:
          type: string
          enum:
          - production
          - sandbox
          title: Environment
        plan_code:
          type: string
          enum:
          - investor
          - pro
          title: Plan Code
        billing_interval:
          type: string
          enum:
          - month
          - year
          title: Billing Interval
        state:
          type: string
          title: State
        access_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Access Until
        auto_renews:
          type: boolean
          title: Auto Renews
        needs_acknowledgement:
          type: boolean
          title: Needs Acknowledgement
      type: object
      required:
      - store
      - environment
      - plan_code
      - billing_interval
      - state
      - access_until
      - auto_renews
      - needs_acknowledgement
      title: NativeSubscriptionOut
    PrepareRequest:
      properties:
        attempt_id:
          type: string
          format: uuid
          title: Attempt Id
        store:
          type: string
          enum:
          - apple
          - google
          title: Store
        product_id:
          type: string
          maxLength: 256
          minLength: 1
          title: Product Id
        base_plan_id:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Base Plan Id
      additionalProperties: false
      type: object
      required:
      - attempt_id
      - store
      - product_id
      title: PrepareRequest
    PortalSessionOut:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: PortalSessionOut
    AttemptOutcome:
      properties:
        attempt_id:
          type: string
          format: uuid
          title: Attempt Id
        outcome:
          type: string
          enum:
          - canceled
          - pending
          title: Outcome
      additionalProperties: false
      type: object
      required:
      - attempt_id
      - outcome
      title: AttemptOutcome
    CheckoutSessionOut:
      properties:
        url:
          type: string
          title: Url
        billing_interval:
          type: string
          enum:
          - month
          - year
          title: Billing Interval
          default: month
      type: object
      required:
      - url
      title: CheckoutSessionOut
    CheckoutSessionIn:
      properties:
        plan:
          type: string
          enum:
          - investor
          - pro
          title: Plan
          default: investor
        billing_interval:
          type: string
          enum:
          - month
          - year
          title: Billing Interval
          default: month
        placement:
          type: string
          enum:
          - settings
          - monitoring_limit
          - research_add
          - reverse_matching
          - assistant_limit
          title: Placement
          default: settings
        idempotency_key:
          type: string
          format: uuid
          title: Idempotency Key
      type: object
      title: CheckoutSessionIn
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key