zSign Billing API

The Billing API from zSign — 21 operation(s) for billing.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 22

GET /api/billing/credits Get Credits #
POST /api/billing/checkout Create Checkout #
POST /api/billing/pro/checkout Create Pro Checkout #
POST /api/billing/pro/portal Create Pro Portal #
GET /api/billing/auto-topup Get Auto Topup #
PUT /api/billing/auto-topup Save Settings #
POST /api/billing/auto-topup/enable Enable #
POST /api/billing/auto-topup/setup-checkout Setup Checkout #
POST /api/billing/auto-topup/setup-complete Setup Complete #
POST /api/billing/auto-topup/disable Disable #
DELETE /api/billing/auto-topup/card Remove Card #
POST /api/billing/auto-topup/retry Retry #
POST /api/billing/auto-topup/verify-payment Verify Payment #
POST /api/billing/auto-topup/verify-complete Verify Complete #
POST /api/billing/auto-topup/top-up-now Top Up Now #
GET /api/billing/auto-topup/receipts/{attempt_id} Get Receipt #
GET /api/v1/credits Get Credits #
POST /api/v1/credits/checkout Create Checkout #
POST /api/v1/billing/pro/checkout Create Pro Checkout #
GET /api/v1/pricing Get Pricing #
GET /api/v1/usage Get Usage #
POST /api/stripe/webhook Stripe 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/zsign-io:zsign-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

zsign-io-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: zSign Billing API
  description: Document Processing and Signing Sessions API
  version: 1.0.0
tags:
- name: Billing
paths:
  /api/billing/credits:
    get:
      tags:
      - Billing
      summary: Get Credits
      description: Current credit balance plus the purchasable packs.
      operationId: get_credits_api_billing_credits_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalanceResponse'
      security:
      - HTTPBearer: []
  /api/billing/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout
      description: 'Create a Stripe Checkout session for a credit pack.


        Owner-only (spec Q10): members can see the org''s

        credit balance but not buy -- purchasing is scoped to the org, not the

        individual, so only the owner may spend on its behalf.'
      operationId: create_checkout_api_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        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: []
  /api/billing/pro/checkout:
    post:
      tags:
      - Billing
      summary: Create Pro Checkout
      description: Owner-only yearly Pro Annual checkout. 404 until PRO_ANNUAL_ENABLED.
      operationId: create_pro_checkout_api_billing_pro_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProCheckoutRequest'
        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: []
  /api/billing/pro/portal:
    post:
      tags:
      - Billing
      summary: Create Pro Portal
      description: Owner-only Stripe portal for the org's Pro subscription.
      operationId: create_pro_portal_api_billing_pro_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/billing/auto-topup:
    get:
      tags:
      - Billing
      summary: Get Auto Topup
      operationId: get_auto_topup_api_billing_auto_topup_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    put:
      tags:
      - Billing
      summary: Save Settings
      operationId: save_settings_api_billing_auto_topup_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SettingsBody'
        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: []
  /api/billing/auto-topup/enable:
    post:
      tags:
      - Billing
      summary: Enable
      operationId: enable_api_billing_auto_topup_enable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnableBody'
        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: []
  /api/billing/auto-topup/setup-checkout:
    post:
      tags:
      - Billing
      summary: Setup Checkout
      operationId: setup_checkout_api_billing_auto_topup_setup_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupCheckoutBody'
        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: []
  /api/billing/auto-topup/setup-complete:
    post:
      tags:
      - Billing
      summary: Setup Complete
      operationId: setup_complete_api_billing_auto_topup_setup_complete_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupCompleteBody'
        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: []
  /api/billing/auto-topup/disable:
    post:
      tags:
      - Billing
      summary: Disable
      operationId: disable_api_billing_auto_topup_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DisableBody'
        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: []
  /api/billing/auto-topup/card:
    delete:
      tags:
      - Billing
      summary: Remove Card
      operationId: remove_card_api_billing_auto_topup_card_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/billing/auto-topup/retry:
    post:
      tags:
      - Billing
      summary: Retry
      operationId: retry_api_billing_auto_topup_retry_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttemptBody'
        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: []
  /api/billing/auto-topup/verify-payment:
    post:
      tags:
      - Billing
      summary: Verify Payment
      operationId: verify_payment_api_billing_auto_topup_verify_payment_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttemptBody'
        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: []
  /api/billing/auto-topup/verify-complete:
    post:
      tags:
      - Billing
      summary: Verify Complete
      operationId: verify_complete_api_billing_auto_topup_verify_complete_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttemptBody'
        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: []
  /api/billing/auto-topup/top-up-now:
    post:
      tags:
      - Billing
      summary: Top Up Now
      operationId: top_up_now_api_billing_auto_topup_top_up_now_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopUpNowBody'
        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: []
  /api/billing/auto-topup/receipts/{attempt_id}:
    get:
      tags:
      - Billing
      summary: Get Receipt
      operationId: get_receipt_api_billing_auto_topup_receipts__attempt_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: attempt_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Attempt Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/credits:
    get:
      tags:
      - Billing
      summary: Get Credits
      description: 'Current credit balance plus the purchasable packs.


        Also echoes this account''s own referral_code/referral_url -- the "narrow

        ambient" surface for the referral program (see mcp_server/tools.py''s

        get_referral_link for the pull surface). An agent that''s already calling

        check_balance for its human learns the code for free, no extra round

        trip, and with no pitch text attached: this is pure account state, the

        same as balance itself. Nothing else about this endpoint changes.'
      operationId: get_credits_api_v1_credits_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentCreditBalanceResponse'
      security:
      - HTTPBearer: []
  /api/v1/credits/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout
      description: 'Create a Stripe Checkout session for a credit pack; pay the returned

        URL and the webhook credits this account automatically.


        Owner-only (final review I1), matching `POST /api/billing/checkout`''s

        gate: the credits land in the ORG''s shared pool, so only the owner may

        spend on its behalf -- an API key held by an ordinary member must not

        be a way around the dashboard''s 403.'
      operationId: create_checkout_api_v1_credits_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        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: []
  /api/v1/billing/pro/checkout:
    post:
      tags:
      - Billing
      summary: Create Pro Checkout
      description: 'Create a yearly Pro Annual Stripe Checkout session for this org.


        Owner-only, matching the dashboard route: the allowance lands in the

        org''s shared bucket, so a member''s API key must not buy on its behalf.'
      operationId: create_pro_checkout_api_v1_billing_pro_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProCheckoutRequest'
        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: []
  /api/v1/pricing:
    get:
      tags:
      - Billing
      summary: Get Pricing
      description: Credit packs, Pro Annual founder counter, and how billing works.
      operationId: get_pricing_api_v1_pricing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/v1/usage:
    get:
      tags:
      - Billing
      summary: Get Usage
      operationId: get_usage_api_v1_usage_get
      security:
      - HTTPBearer: []
      parameters:
      - name: start_date
        in: query
        required: true
        schema:
          type: string
          format: date
          description: Inclusive, UTC (YYYY-MM-DD)
          title: Start Date
        description: Inclusive, UTC (YYYY-MM-DD)
      - name: end_date
        in: query
        required: true
        schema:
          type: string
          format: date
          description: Inclusive, UTC (YYYY-MM-DD)
          title: End Date
        description: Inclusive, UTC (YYYY-MM-DD)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/stripe/webhook:
    post:
      tags:
      - Billing
      summary: Stripe Webhook
      operationId: stripe_webhook_api_stripe_webhook_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
    SetupCompleteBody:
      properties:
        session_id:
          type: string
          minLength: 1
          title: Session Id
      type: object
      required:
      - session_id
      title: SetupCompleteBody
    EnableBody:
      properties:
        threshold_credits:
          type: integer
          minimum: 1.0
          title: Threshold Credits
        refill_pack:
          type: string
          title: Refill Pack
        monthly_limit_cents:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Monthly Limit Cents
        expected_settings_version:
          type: integer
          minimum: 1.0
          title: Expected Settings Version
        operation_key:
          type: string
          minLength: 1
          title: Operation Key
      type: object
      required:
      - threshold_credits
      - refill_pack
      - expected_settings_version
      - operation_key
      title: EnableBody
    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
    SettingsBody:
      properties:
        threshold_credits:
          type: integer
          minimum: 1.0
          title: Threshold Credits
        refill_pack:
          type: string
          title: Refill Pack
        monthly_limit_cents:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Monthly Limit Cents
        expected_settings_version:
          type: integer
          minimum: 1.0
          title: Expected Settings Version
      type: object
      required:
      - threshold_credits
      - refill_pack
      - expected_settings_version
      title: SettingsBody
    DashboardProBalance:
      properties:
        status:
          type: string
          title: Status
        remaining:
          type: integer
          title: Remaining
        period_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Period End
        is_founder:
          type: boolean
          title: Is Founder
          default: false
        founder_offer_available:
          type: boolean
          title: Founder Offer Available
          default: false
      type: object
      required:
      - status
      - remaining
      title: DashboardProBalance
    CreditPack:
      properties:
        credits:
          type: integer
          title: Credits
        amount_cents:
          type: integer
          title: Amount Cents
        label:
          type: string
          title: Label
      type: object
      required:
      - credits
      - amount_cents
      - label
      title: CreditPack
    ProCheckoutRequest:
      properties:
        promo_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Promo Code
      type: object
      title: ProCheckoutRequest
    SetupCheckoutBody:
      properties:
        threshold_credits:
          type: integer
          minimum: 1.0
          title: Threshold Credits
        refill_pack:
          type: string
          title: Refill Pack
        monthly_limit_cents:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Monthly Limit Cents
        expected_settings_version:
          type: integer
          minimum: 1.0
          title: Expected Settings Version
        action:
          type: string
          enum:
          - activate
          - replace
          title: Action
      type: object
      required:
      - threshold_credits
      - refill_pack
      - expected_settings_version
      - action
      title: SetupCheckoutBody
    CheckoutRequest:
      properties:
        pack:
          type: string
          title: Pack
      type: object
      required:
      - pack
      title: CheckoutRequest
    AttemptBody:
      properties:
        attempt_id:
          type: string
          format: uuid
          title: Attempt Id
      type: object
      required:
      - attempt_id
      title: AttemptBody
    DisableBody:
      properties:
        expected_settings_version:
          type: integer
          minimum: 1.0
          title: Expected Settings Version
      type: object
      required:
      - expected_settings_version
      title: DisableBody
    CreditBalanceResponse:
      properties:
        balance:
          type: integer
          title: Balance
        packs:
          additionalProperties:
            $ref: '#/components/schemas/CreditPack'
          type: object
          title: Packs
        pro:
          anyOf:
          - $ref: '#/components/schemas/DashboardProBalance'
          - type: 'null'
      type: object
      required:
      - balance
      - packs
      title: CreditBalanceResponse
      description: GET /api/billing/credits — dashboard JWT balance + purchasable packs.
    TopUpNowBody:
      properties:
        operation_key:
          type: string
          minLength: 1
          title: Operation Key
      type: object
      required:
      - operation_key
      title: TopUpNowBody
    ProBalance:
      properties:
        status:
          type: string
          title: Status
        remaining:
          type: integer
          title: Remaining
        period_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Period End
        is_founder:
          type: boolean
          title: Is Founder
          default: false
      type: object
      required:
      - status
      - remaining
      title: ProBalance
      description: 'The org''s Pro Annual state for the dashboard billing card.


        Present only while PRO_ANNUAL_ENABLED is on; `None` on

        CreditBalanceResponse.pro otherwise. `status` is display-ready:

        ''none'' (never subscribed or checkout not finished), ''active''

        (entitled, including trialing), ''past_due'', or ''canceled''. `remaining`

        is the expiring Pro bucket only -- pack credits are the balance minus

        this, never-expiring as always.'
    UsageDay:
      properties:
        date:
          type: string
          format: date
          title: Date
        credits_consumed:
          type: integer
          title: Credits Consumed
        credits_refunded:
          type: integer
          title: Credits Refunded
        envelopes_sent:
          type: integer
          title: Envelopes Sent
        cost_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Cost Usd
      type: object
      required:
      - date
      - credits_consumed
      - credits_refunded
      - envelopes_sent
      title: UsageDay
      description: 'One UTC day of credit-ledger activity for the account.


        `cost_usd` is credits_consumed priced at the account''s effective

        per-credit rate (see UsageResponse.cost_per_credit_usd); None when the

        account has no purchase history to price against.'
    AgentCreditBalanceResponse:
      properties:
        balance:
          type: integer
          title: Balance
        packs:
          additionalProperties:
            $ref: '#/components/schemas/CreditPack'
          type: object
          title: Packs
        pro:
          anyOf:
          - $ref: '#/components/schemas/ProBalance'
          - type: 'null'
        referral_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Code
        referral_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Url
      type: object
      required:
      - balance
      - packs
      title: AgentCreditBalanceResponse
      description: GET /api/v1/credits — API-key twin, plus this account's referral.
    UsageResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/UsageDay'
          type: array
          title: Data
        cost_per_credit_usd:
          anyOf:
          - type: number
          - type: 'null'
          title: Cost Per Credit Usd
      type: object
      required:
      - data
      title: UsageResponse
      description: 'Days with ledger activity only -- callers treat a missing date as 0.


        `cost_per_credit_usd` is the blended cash rate across every credit the

        account actually paid for (pack checkouts + succeeded auto top-ups):

        total USD cents / total purchased credits. None when the account has

        never purchased, in which case every row''s cost_usd is also None and

        the caller should price consumption itself.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer