PostalForm Credits API

The Credits API from PostalForm — 6 operation(s) for credits.

Business capability
Payment Collection & Dunning BC-4250.40

Operations 7

GET /api/v1/credits/balance Get prepaid credit balance #
GET /api/v1/credits/payment-methods List saved live billing payment methods #
POST /api/v1/credits/payment-methods/setup-session Create a Checkout setup session for live credit auto-refill #
GET /api/v1/credits/auto-refill Get credit auto-refill threshold policies #
POST /api/v1/credits/auto-refill Configure the credit auto-refill threshold for the authenticated key mode #
GET /api/v1/credits/ledger List prepaid credit ledger entries #
POST /api/v1/credits/checkout-session Create a prepaid credit top-up checkout session #

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/postalform-com:postalform-com-credits-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

postalform-com-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostalForm Projects Public Credits API
  version: '2026-05-06'
  description: Public PostalForm Projects API for customer SDKs. Includes document uploads, quotes, mail orders, credits, API keys, and signed customer webhooks.
servers:
- url: https://projects.postalform.com
tags:
- name: Credits
paths:
  /api/v1/credits/balance:
    get:
      summary: Get prepaid credit balance
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalance'
      operationId: getCreditBalance
      tags:
      - Credits
  /api/v1/credits/payment-methods:
    get:
      summary: List saved live billing payment methods
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Saved payment methods for live auto-refill.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/BillingPaymentMethod'
      operationId: listPaymentMethods
      tags:
      - Credits
  /api/v1/credits/payment-methods/setup-session:
    post:
      summary: Create a Checkout setup session for live credit auto-refill
      description: Requires a live API key. The returned Checkout URL lets the customer save a payment method for future off-session auto-refill charges.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Checkout setup session URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodSetupSession'
      operationId: createPaymentMethodSetupSession
      tags:
      - Credits
  /api/v1/credits/auto-refill:
    get:
      summary: Get credit auto-refill threshold policies
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Auto-refill policies for test and live credit balances.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditAutoRefillPolicies'
      operationId: getCreditAutoRefillPolicies
      tags:
      - Credits
    post:
      summary: Configure the credit auto-refill threshold for the authenticated key mode
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreditAutoRefillRequest'
      responses:
        '200':
          description: Updated auto-refill policy.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CreditAutoRefillPolicy'
      operationId: configureCreditAutoRefill
      tags:
      - Credits
  /api/v1/credits/ledger:
    get:
      summary: List prepaid credit ledger entries
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Ledger entries.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CreditLedgerEntry'
      operationId: listCreditLedger
      tags:
      - Credits
  /api/v1/credits/checkout-session:
    post:
      summary: Create a prepaid credit top-up checkout session
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount_cents:
                  type: integer
                  minimum: 1
      responses:
        '200':
          description: Stripe Checkout URL in configured environments, or a local checkout stub URL for local development.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditCheckoutSession'
      operationId: createCreditCheckoutSession
      tags:
      - Credits
components:
  schemas:
    CreditBalanceSnapshot:
      type: object
      properties:
        available_cents:
          type: integer
        reserved_cents:
          type: integer
        currency:
          type: string
        status:
          type: string
    CreditAutoRefillPolicy:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        mode:
          $ref: '#/components/schemas/Mode'
        billing_rail:
          type: string
          enum:
          - mock_test_credits
          - prepaid_credits
        enabled:
          type: boolean
        threshold_cents:
          type: integer
        refill_amount_cents:
          type: integer
        provider:
          type: string
          enum:
          - test_grant
          - stripe_checkout
          - local_checkout_stub
        status:
          type: string
          enum:
          - active
          - disabled
          - payment_action_required
          - payment_pending
          - payment_failed
        last_triggered_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CreditBalance:
      type: object
      properties:
        mode:
          type: string
          enum:
          - test
          - live
        billing_rail:
          type: string
          enum:
          - mock_test_credits
          - prepaid_credits
          - future_projects_spt
          - future_metronome_streaming
          - future_mpp_tempo
          - manual_invoice
        available_cents:
          type: integer
        reserved_cents:
          type: integer
        currency:
          type: string
        status:
          type: string
        test:
          $ref: '#/components/schemas/CreditBalanceSnapshot'
        live:
          $ref: '#/components/schemas/CreditBalanceSnapshot'
        auto_refill:
          $ref: '#/components/schemas/CreditAutoRefillPolicies'
    CreditCheckoutSession:
      type: object
      properties:
        id:
          type: string
          description: PostalForm top-up ID.
        mode:
          type: string
          enum:
          - stripe_checkout
          - local_checkout_stub
        checkout_url:
          type: string
          format: uri
        amount_cents:
          type: integer
        currency:
          type: string
    CreditLedgerEntry:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        credit_account_id:
          type: string
        order_id:
          type: string
        mode:
          type: string
          enum:
          - test
          - live
        billing_rail:
          type: string
          enum:
          - mock_test_credits
          - prepaid_credits
          - future_projects_spt
          - future_metronome_streaming
          - future_mpp_tempo
          - manual_invoice
        type:
          type: string
          enum:
          - test_grant
          - topup
          - reserve
          - capture
          - release
          - refund
          - adjustment
        amount_cents:
          type: integer
        currency:
          type: string
        external_reference:
          type: string
        metadata:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
    BillingPaymentMethod:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
          enum:
          - stripe
        type:
          type: string
        brand:
          type: string
        last4:
          type: string
        exp_month:
          type: integer
        exp_year:
          type: integer
        status:
          type: string
          enum:
          - active
          - disabled
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        last_used_at:
          type: string
          format: date-time
    Mode:
      type: string
      enum:
      - test
      - live
    CreditAutoRefillPolicies:
      type: object
      properties:
        data:
          type: object
          properties:
            test:
              anyOf:
              - $ref: '#/components/schemas/CreditAutoRefillPolicy'
              - type: 'null'
            live:
              anyOf:
              - $ref: '#/components/schemas/CreditAutoRefillPolicy'
              - type: 'null'
        test:
          anyOf:
          - $ref: '#/components/schemas/CreditAutoRefillPolicy'
          - type: 'null'
        live:
          anyOf:
          - $ref: '#/components/schemas/CreditAutoRefillPolicy'
          - type: 'null'
    PaymentMethodSetupSession:
      type: object
      properties:
        mode:
          type: string
          enum:
          - stripe_checkout
          - local_checkout_stub
        checkout_url:
          type: string
          format: uri
    CreditAutoRefillRequest:
      type: object
      properties:
        mode:
          $ref: '#/components/schemas/Mode'
        enabled:
          type: boolean
          default: true
        threshold_cents:
          type: integer
          minimum: 100
          maximum: 100000
        refill_amount_cents:
          type: integer
          minimum: 100
          maximum: 100000
      required:
      - threshold_cents
      - refill_amount_cents
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer