Premier Letters Balance API

The Balance API from Premier Letters — 2 operation(s) for balance.

GitHub OpenAPI

Operations 2

GET /api/v1/balance Prepaid balance and top-up rules #
POST /api/v1/balance/topup Create a Stripe Checkout link that adds prepaid balance once a human pays it #

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/premierletters-com:premierletters-com-balance-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

premierletters-com-balance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Premierletters Com Balance API
  version: 1.0.0
  contact:
    url: https://www.premierletters.com/developers
  description: 'Operations tagged Balance across 2 of this provider''s published API definitions: premierletters-com.json, premierletters-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.premierletters.com
security:
- bearerAuth: []
tags:
- name: Balance
paths:
  /api/v1/balance:
    get:
      summary: Prepaid balance and top-up rules
      security:
      - bearerAuth: []
      responses:
        '200':
          description: 'Balance summary (balance_cents 0 and test: true for a test key)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
      tags:
      - Balance
      operationId: getApiV1Balance
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
  /api/v1/balance/topup:
    post:
      summary: Create a Stripe Checkout link that adds prepaid balance once a human pays it
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - amount_cents
              properties:
                amount_cents:
                  type: integer
                  minimum: 1000
                  maximum: 6000000
      responses:
        '200':
          description: Checkout link created; the credit (plus any tier bonus) lands when it is paid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topup'
        '400':
          description: invalid_amount, below_minimum, above_maximum, or test_mode (test keys cannot top up)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: blocked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: checkout_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Balance
      operationId: postApiV1BalanceTopup
      x-operation-id-source: derived
    servers:
    - url: https://www.premierletters.com
components:
  schemas:
    Topup:
      type: object
      properties:
        checkout_url:
          type: string
          format: uri
          description: Stripe Checkout link for a human to pay; the credit lands when it is paid
        amount_cents:
          type: integer
        bonus_cents:
          type: integer
        min_cents:
          type: integer
        max_cents:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable machine-readable code, e.g. validation_failed, insufficient_balance, test_mode
        message:
          type: string
        suggestion:
          type: string
          description: What to do next
        details: {}
      required:
      - error
      - message
    Balance:
      type: object
      properties:
        balance_cents:
          type: integer
          description: Prepaid balance; 0 for a test-mode key
        min_cents:
          type: integer
          description: Minimum top-up (1000)
        max_cents:
          type: integer
          description: Maximum top-up (6000000)
        tiers:
          type: array
          items:
            type: object
            properties:
              min_cents:
                type: integer
              bonus_pct:
                type: number
        presets_cents:
          type: array
          items:
            type: integer
        next_tier:
          type:
          - object
          - 'null'
          properties:
            min_cents:
              type: integer
            bonus_pct:
              type: number
        handling_fee_waived_when_paying_from_balance:
          type: boolean
        test:
          type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pl_live_... | pl_test_...
      description: 'API key from Settings → API keys, or from the agent connect flow. Sent as `Authorization: Bearer pl_live_...`. Live keys (pl_live_) create and charge real orders. Test keys (pl_test_) run the same validation, pricing and return-address checks but never create, charge or send anything: POST /api/v1/orders answers `{ test: true }`, order lists are empty, and balance top-ups, new-card charges and Growth record writes answer 400 test_mode. Webhook endpoints can be managed with either key.'
x-refined-from:
- premierletters-com.json
- premierletters-com-openapi.json