ReelDrop Billing API

The billing API from ReelDrop — 9 operation(s) for billing.

GitHub OpenAPI

Operations 9

GET /billing/plans List Available Plans #
POST /billing/checkout Create Checkout #
POST /billing/portal Create Portal #
POST /billing/change-plan Change Plan #
POST /billing/change-plan/cancel Cancel Pending Plan Change #
GET /billing/status Billing Status #
POST /billing/confirm-subscription Confirm Subscription #
POST /billing/confirm-credits Confirm Credits #
GET /billing/credit-packs List Credit Packs #

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/reeldrop-io:reeldrop-io-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

reeldrop-io-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ReelDrop Billing API
  version: 0.1.0
tags:
- name: Billing
paths:
  /billing/plans:
    get:
      tags:
      - Billing
      summary: List Available Plans
      description: 'Returns the plan_type keys currently sellable (i.e. their price ID is

        configured). The frontend can use this to know what''s actually purchasable

        without hardcoding plan_type strings.'
      operationId: list_available_plans_billing_plans_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailablePlansResponse'
  /billing/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout
      description: 'Create a Stripe Checkout Session for the Creator plan.

        `plan_type` picks an entry from stripe_service.PRICING_CATALOG — currently

        "month" ($29/mo recurring), "year" ($149/yr recurring, founding deal), or

        "lifetime" ($249 one-time, founding deal, permanent access).

        Returns the hosted Stripe checkout URL to redirect the user to.'
      operationId: create_checkout_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /billing/portal:
    post:
      tags:
      - Billing
      summary: Create Portal
      description: 'Create a Stripe Customer Portal session.

        Returns the URL where the user can manage their subscription, invoices,

        and payment method — all handled by Stripe''s hosted portal.'
      operationId: create_portal_billing_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
      security:
      - HTTPBearer: []
  /billing/change-plan:
    post:
      tags:
      - Billing
      summary: Change Plan
      description: 'Switch an existing subscription between recurring plans.


        Direction decides the mechanics, not the caller:

        upgrade → applied now, prorated, card charged the difference immediately

        downgrade → scheduled to the end of the paid period, reversible until then


        Both keep the customer on exactly one Stripe Subscription, which is the whole

        reason this exists instead of a second Checkout.'
      operationId: change_plan_billing_change_plan_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangePlanRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangePlanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /billing/change-plan/cancel:
    post:
      tags:
      - Billing
      summary: Cancel Pending Plan Change
      description: Call off a scheduled downgrade, keeping the current plan indefinitely.
      operationId: cancel_pending_plan_change_billing_change_plan_cancel_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangePlanResponse'
      security:
      - HTTPBearer: []
  /billing/status:
    get:
      tags:
      - Billing
      summary: Billing Status
      description: Return the caller's current plan and subscription state.
      operationId: billing_status_billing_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingStatusResponse'
      security:
      - HTTPBearer: []
  /billing/confirm-subscription:
    post:
      tags:
      - Billing
      summary: Confirm Subscription
      description: 'Success-page fallback that applies a completed subscription checkout without

        waiting on the Stripe webhook.


        Idempotent with the webhook — both go through sync_subscription. It exists

        because the webhook claims its dedup row before processing, so a handler that

        died partway through left a paying customer on Starter with nothing that

        would ever retry.'
      operationId: confirm_subscription_billing_confirm_subscription_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmSubscriptionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /billing/confirm-credits:
    post:
      tags:
      - Billing
      summary: Confirm Credits
      description: 'Success-page fallback that applies a credit purchase server-side without waiting

        on the Stripe webhook (idempotent — safe even when the webhook also runs).'
      operationId: confirm_credits_billing_confirm_credits_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmCreditsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfirmCreditsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /billing/credit-packs:
    get:
      tags:
      - Billing
      summary: List Credit Packs
      description: Sellable image-credit packs (only those whose Stripe price ID is configured).
      operationId: list_credit_packs_billing_credit_packs_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditPacksResponse'
      security:
      - HTTPBearer: []
components:
  schemas:
    AvailablePlansResponse:
      properties:
        plan_types:
          items:
            type: string
          type: array
          title: Plan Types
      type: object
      required:
      - plan_types
      title: AvailablePlansResponse
    ConfirmSubscriptionRequest:
      properties:
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - session_id
      title: ConfirmSubscriptionRequest
    PortalResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: PortalResponse
    WorkspacePlan:
      type: string
      enum:
      - starter
      - influencer
      - creator
      title: WorkspacePlan
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BillingStatusResponse:
      properties:
        plan:
          $ref: '#/components/schemas/WorkspacePlan'
        billing_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Billing Type
        subscription_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Status
        subscription_current_period_end:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Current Period End
        subscription_interval:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Interval
        cancel_at_period_end:
          type: boolean
          title: Cancel At Period End
        is_active:
          type: boolean
          title: Is Active
        stripe_publishable_key:
          type: string
          title: Stripe Publishable Key
        image_gen_used:
          type: integer
          title: Image Gen Used
        image_gen_limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Image Gen Limit
        image_credits:
          type: integer
          title: Image Credits
        referral_credit_months:
          type: integer
          title: Referral Credit Months
          default: 0
        referral_credit_cents:
          type: integer
          title: Referral Credit Cents
          default: 0
        referral_credit_currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Credit Currency
        referral_comp_plan:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Comp Plan
        referral_comp_ends_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Comp Ends At
        referral_half_off_months:
          type: integer
          title: Referral Half Off Months
          default: 0
        referral_half_off_ends:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Half Off Ends
        pending_plan:
          anyOf:
          - $ref: '#/components/schemas/WorkspacePlan'
          - type: 'null'
        pending_plan_effective_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Pending Plan Effective At
      type: object
      required:
      - plan
      - billing_type
      - subscription_status
      - subscription_current_period_end
      - subscription_interval
      - cancel_at_period_end
      - is_active
      - stripe_publishable_key
      - image_gen_used
      - image_gen_limit
      - image_credits
      title: BillingStatusResponse
    ChangePlanRequest:
      properties:
        plan_type:
          type: string
          title: Plan Type
      type: object
      required:
      - plan_type
      title: ChangePlanRequest
    ConfirmCreditsRequest:
      properties:
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - session_id
      title: ConfirmCreditsRequest
    ChangePlanResponse:
      properties:
        direction:
          type: string
          title: Direction
        plan_type:
          type: string
          title: Plan Type
        effective_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective At
        message:
          type: string
          title: Message
      type: object
      required:
      - direction
      - plan_type
      - message
      title: ChangePlanResponse
    CheckoutRequest:
      properties:
        plan_type:
          type: string
          title: Plan Type
          default: year
      type: object
      title: CheckoutRequest
    CheckoutResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: CheckoutResponse
    CreditPackOut:
      properties:
        key:
          type: string
          title: Key
        credits:
          type: integer
          title: Credits
      type: object
      required:
      - key
      - credits
      title: CreditPackOut
    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
    ConfirmCreditsResponse:
      properties:
        image_credits:
          type: integer
          title: Image Credits
      type: object
      required:
      - image_credits
      title: ConfirmCreditsResponse
    CreditPacksResponse:
      properties:
        packs:
          items:
            $ref: '#/components/schemas/CreditPackOut'
          type: array
          title: Packs
      type: object
      required:
      - packs
      title: CreditPacksResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer