Parcha Billing API

The Billing API from Parcha — 1 operation(s) for billing.

Operations 1

POST /billing/reconcile Reconcile Billing Events #

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/parcha-billing-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

parcha-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Parcha Admin Billing API
  version: 1.0.0
  description: API for managing Parcha jobs and checks
servers:
- url: https://api.parcha.ai/api/v1
  description: Agent Hub API server
- url: https://demo.parcha.ai/api/v1
  description: Sandbox API server
- url: https://us1.parcha.ai/api/v1
  description: Legacy API server
- url: http://{your-company-domain}.parcha.ai/api/v1
  description: Custom Enterpris server (your company's API server)
security:
- bearerAuth: []
tags:
- name: Billing
paths:
  /billing/reconcile:
    post:
      summary: Reconcile Billing Events
      description: "Reconcile Stripe events with local database for the specified lookback period.\n\nThis endpoint fetches Stripe events for the specified period and verifies that they have been\nproperly processed and applied to the local database. It can identify and fix:\n\n- Missing subscription records\n- Incorrect plan assignments\n- Missing payment/invoice activities\n- Orphaned subscription records\n- Credit balance mismatches\n\nArgs:\n    lookback_days: Number of days to look back for events (max 30 due to Stripe API limitations)\n    include_processed: Whether to include already processed events (default: False)\n\nReturns:\n    Detailed reconciliation report with found issues and fixes applied"
      operationId: reconcile_billing_events_billing_reconcile_post
      parameters:
      - name: lookback_days
        in: query
        required: false
        schema:
          type: integer
          maximum: 30
          minimum: 1
          description: Number of days to look back (1-30)
          default: 7
          title: Lookback Days
        description: Number of days to look back (1-30)
      - name: include_processed
        in: query
        required: false
        schema:
          type: boolean
          description: Whether to include already processed events in reconciliation
          default: false
          title: Include Processed
        description: Whether to include already processed events in reconciliation
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingReconciliationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
components:
  schemas:
    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
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    BillingReconciliationResponse:
      properties:
        period:
          type: object
          title: Period
          description: Reconciliation period details
        events_processed:
          type: integer
          title: Events Processed
          description: Total number of Stripe events processed
        events_skipped:
          type: integer
          title: Events Skipped
          description: Number of events skipped (already processed)
        discrepancies_found:
          type: integer
          title: Discrepancies Found
          description: Total number of discrepancies found
        fixes_applied:
          type: integer
          title: Fixes Applied
          description: Number of fixes applied
        errors:
          items:
            type: string
          type: array
          title: Errors
          description: List of errors encountered during reconciliation
        details:
          additionalProperties:
            items:
              type: object
            type: array
          type: object
          title: Details
          description: Detailed breakdown of discrepancies found
      type: object
      required:
      - period
      - events_processed
      - events_skipped
      - discrepancies_found
      - fixes_applied
      - errors
      - details
      title: BillingReconciliationResponse
      description: Response for billing reconciliation endpoint
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.