OpenProof Payments API

The payments API from OpenProof — 8 operation(s) for payments.

GitHub OpenAPI

Operations 9

GET /payments/subscription Get Subscription Status #
POST /payments/subscription Create Subscription #
GET /payments/pricing Get Current Pricing #
POST /payments/subscription/cancel Cancel Subscription #
POST /payments/webhook Razorpay Webhook #
GET /payments/overview Plan Overview #
POST /payments/trial/start Start Trial #
GET /payments/change-plan/preview Change Plan Preview #
POST /payments/change-plan Change Plan #

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/openproof-io:openproof-io-payments-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

openproof-io-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Payments API
  version: 1.0.0
  description: 'Operations tagged payments across 2 of this provider''s published API definitions: openapi.json, openproof-io-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Payments
paths:
  /payments/subscription:
    get:
      tags:
      - Payments
      summary: Get Subscription Status
      operationId: get_subscription_status_payments_subscription_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    post:
      tags:
      - Payments
      summary: Create Subscription
      description: 'Create a Razorpay subscription for the user. No request body --

        there''s nothing for the client to choose anymore; the price and plan

        are resolved entirely server-side from today''s date.'
      operationId: create_subscription_payments_subscription_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/SubscribeBody'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /payments/pricing:
    get:
      tags:
      - Payments
      summary: Get Current Pricing
      description: 'Public, unauthenticated -- lets the frontend show today''s real

        price without duplicating the date logic client-side. Only exposes

        the CURRENT stage, never the future stages or their amounts, per the

        locked plan: the public site shows the current offer and its

        deadline only, never previews future numbers.'
      operationId: get_current_pricing_payments_pricing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /payments/subscription/cancel:
    post:
      tags:
      - Payments
      summary: Cancel Subscription
      operationId: cancel_subscription_payments_subscription_cancel_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /payments/webhook:
    post:
      tags:
      - Payments
      summary: Razorpay Webhook
      description: Handle Razorpay webhook events.
      operationId: razorpay_webhook_payments_webhook_post
      parameters:
      - name: x-razorpay-signature
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Razorpay-Signature
      - name: x-razorpay-event-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Razorpay-Event-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payments/overview:
    get:
      tags:
      - Payments
      summary: Plan Overview
      description: 'Everything the Plan & billing page needs in one call: plan, status, trial, partner term, AI allowance, limits and

        this business''s usage of the non-consent limits (consent usage is /consent-hosting/usage).'
      operationId: plan_overview_payments_overview_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /payments/trial/start:
    post:
      tags:
      - Payments
      summary: Start Trial
      description: 'Start the 14-day reverse trial: Growth capacity, no card, back to Free afterwards with data kept. AI documents

        are NOT part of the trial beyond the one free document every free account has (ai_quota.py).'
      operationId: start_trial_payments_trial_start_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /payments/change-plan/preview:
    get:
      tags:
      - Payments
      summary: Change Plan Preview
      description: What a plan change would cost, so the customer sees the amount before anything is charged.
      operationId: change_plan_preview_payments_change_plan_preview_get
      security:
      - HTTPBearer: []
      parameters:
      - name: plan_key
        in: query
        required: true
        schema:
          type: string
          title: Plan Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payments/change-plan:
    post:
      tags:
      - Payments
      summary: Change Plan
      description: 'Switch plan. Creates the NEW subscription (starting when the paid term ends) and, for an upgrade, collects the

        prorated difference in the same checkout. The webhook (subscription.authenticated) then switches the plan and stops

        the old subscription; nothing changes on the account until the customer has authorised.'
      operationId: change_plan_payments_change_plan_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscribeBody'
        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: []
components:
  schemas:
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SubscribeBody:
      properties:
        plan_key:
          type: string
          title: Plan Key
          default: starter
        partner_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Partner Code
      type: object
      title: SubscribeBody
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- openapi.json
- openproof-io-openapi.json
x-provenance:
  method: harvested
  publisher: OpenProof
  source: https://api.openproof.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)