Artificial Wit Payment API

The payment API from Artificial Wit — 11 operation(s) for payment.

Operations 11

GET /payment/plans Get Plans #
POST /payment/checkout/stripe Create Stripe Checkout #
POST /payment/order/razorpay Create Razorpay Order #
POST /payment/verify/razorpay Verify Razorpay Payment #
POST /payment/confirm/stripe Confirm Stripe Session #
GET /payment/subscription Get Subscription #
POST /payment/subscription/cancel Cancel Subscription #
GET /payment/transactions Get Transactions #
GET /payment/admin/subscriptions Get All Subscriptions #
POST /payment/webhook/stripe Stripe Webhook #
POST /payment/webhook/razorpay Razorpay Webhook #

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/artificialwit-com:artificialwit-com-payment-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

artificialwit-com-payment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AI Agent Payment API
  version: 1.0.0
tags:
- name: Payment
paths:
  /payment/plans:
    get:
      tags:
      - Payment
      summary: Get Plans
      description: List all active subscription plans. Public — no auth required.
      operationId: get_plans_payment_plans_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
  /payment/checkout/stripe:
    post:
      tags:
      - Payment
      summary: Create Stripe Checkout
      description: Create a Stripe hosted checkout session. Returns checkout_url for redirect.
      operationId: create_stripe_checkout_payment_checkout_stripe_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-tenant-email
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Email
      - name: x-tenant-name
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStripeCheckout'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/order/razorpay:
    post:
      tags:
      - Payment
      summary: Create Razorpay Order
      description: Create a Razorpay order. Returns order details for the client-side Razorpay SDK.
      operationId: create_razorpay_order_payment_order_razorpay_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-tenant-email
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Email
      - name: x-tenant-name
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRazorpayOrder'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/verify/razorpay:
    post:
      tags:
      - Payment
      summary: Verify Razorpay Payment
      description: Verify a Razorpay client-side payment signature and activate subscription.
      operationId: verify_razorpay_payment_payment_verify_razorpay_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyRazorpayPayment'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/confirm/stripe:
    post:
      tags:
      - Payment
      summary: Confirm Stripe Session
      description: Call this from the success_url page with ?session_id= to confirm payment and activate subscription.
      operationId: confirm_stripe_session_payment_confirm_stripe_post
      parameters:
      - name: session_id
        in: query
        required: true
        schema:
          type: string
          description: session_id from Stripe success_url redirect
          title: Session Id
        description: session_id from Stripe success_url redirect
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/subscription:
    get:
      tags:
      - Payment
      summary: Get Subscription
      description: Get the current subscription. Tenant 10 may pass ?tenant_id= to inspect any tenant.
      operationId: get_subscription_payment_subscription_get
      parameters:
      - name: tenant_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: 'Admin only: filter by tenant'
          title: Tenant Id
        description: 'Admin only: filter by tenant'
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/subscription/cancel:
    post:
      tags:
      - Payment
      summary: Cancel Subscription
      description: Cancel the active subscription. Tenant 10 may pass tenant_id to cancel any tenant's subscription.
      operationId: cancel_subscription_payment_subscription_cancel_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelSubscription'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/transactions:
    get:
      tags:
      - Payment
      summary: Get Transactions
      description: List transactions. Tenant 10 can filter by ?filter_tenant_id= or omit for all.
      operationId: get_transactions_payment_transactions_get
      parameters:
      - name: filter_tenant_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: 'Admin only: filter by tenant'
          title: Filter Tenant Id
        description: 'Admin only: filter by tenant'
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: provider
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Page Size
      - name: page_index
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page Index
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/admin/subscriptions:
    get:
      tags:
      - Payment
      summary: Get All Subscriptions
      description: Tenant 10 only — all tenants' subscriptions with optional filters.
      operationId: get_all_subscriptions_payment_admin_subscriptions_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: provider
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Page Size
      - name: page_index
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page Index
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /payment/webhook/stripe:
    post:
      tags:
      - Payment
      summary: Stripe Webhook
      description: Stripe event receiver. Signature verified against webhook_secret in gateway config.
      operationId: stripe_webhook_payment_webhook_stripe_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Stripe Webhook Payment Webhook Stripe Post
  /payment/webhook/razorpay:
    post:
      tags:
      - Payment
      summary: Razorpay Webhook
      description: Razorpay event receiver. Signature verified against webhook_secret in gateway config.
      operationId: razorpay_webhook_payment_webhook_razorpay_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Razorpay Webhook Payment Webhook Razorpay Post
components:
  schemas:
    ResponseMessage:
      properties:
        data:
          items: {}
          type: array
          title: Data
        paging:
          $ref: '#/components/schemas/Paging'
        message:
          type: string
          title: Message
          default: ''
        is_success:
          type: boolean
          title: Is Success
          default: true
        status_code:
          type: integer
          title: Status Code
          default: 200
      type: object
      title: ResponseMessage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    CancelSubscription:
      properties:
        cancel_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Cancel Reason
        tenant_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Tenant Id
      type: object
      title: CancelSubscription
    CreateRazorpayOrder:
      properties:
        plan_id:
          type: integer
          title: Plan Id
        billing_interval:
          type: string
          pattern: ^(monthly|annual)$
          title: Billing Interval
          default: monthly
        currency:
          type: string
          title: Currency
          default: INR
      type: object
      required:
      - plan_id
      title: CreateRazorpayOrder
    Paging:
      properties:
        page_size:
          type: integer
          title: Page Size
          default: 1
        page_index:
          type: integer
          title: Page Index
          default: 1
        total_records:
          type: integer
          title: Total Records
          default: 0
      type: object
      title: Paging
    VerifyRazorpayPayment:
      properties:
        razorpay_order_id:
          type: string
          title: Razorpay Order Id
        razorpay_payment_id:
          type: string
          title: Razorpay Payment Id
        razorpay_signature:
          type: string
          title: Razorpay Signature
        plan_id:
          type: integer
          title: Plan Id
        billing_interval:
          type: string
          pattern: ^(monthly|annual)$
          title: Billing Interval
          default: monthly
      type: object
      required:
      - razorpay_order_id
      - razorpay_payment_id
      - razorpay_signature
      - plan_id
      title: VerifyRazorpayPayment
    CreateStripeCheckout:
      properties:
        plan_id:
          type: integer
          title: Plan Id
        billing_interval:
          type: string
          pattern: ^(monthly|annual)$
          title: Billing Interval
          default: monthly
        success_url:
          type: string
          title: Success Url
        cancel_url:
          type: string
          title: Cancel Url
      type: object
      required:
      - plan_id
      - success_url
      - cancel_url
      title: CreateStripeCheckout
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer