Postiz Billing API

The Billing API from Postiz — 20 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).
Business capability
Subscription Billing & Revenue Management BC-4250

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /billing/check/{id} Check a billing ID · Billing controller check id #
Ask an LLM
“How do I look up a billing ID?”
“Can I check a billing record by its ID?”
Tell an agent
Check billing ID {id}.
Look up the billing record for {id}.
GET /billing/check-discount Check whether a discount is applied · Billing controller check discount #
Ask an LLM
“Is a discount currently applied to my account?”
“How do I check my discount status?”
Tell an agent
Check whether a discount is applied.
Show my current discount status.
POST /billing/apply-discount Apply a discount to an account · Billing controller apply discount #
Ask an LLM
“How do I apply a discount to a customer's account?”
“Can I add a discount to an account?”
Tell an agent
Apply a discount to this account.
Add a discount to the account.
POST /billing/finish-trial End a trial period · Billing controller finish trial #
Ask an LLM
“How do I end a customer's trial early?”
“Can I finish a trial and start billing?”
Tell an agent
Finish the trial period.
End the trial and start billing.
GET /billing/is-trial-finished Check whether a trial has finished · Billing controller is trial finished #
Ask an LLM
“Has the trial period ended?”
“Is the trial finished yet?”
Tell an agent
Check whether the trial is finished.
Tell me if the trial has ended.
POST /billing/embedded Create an embedded billing portal · Billing controller embedded #
Ask an LLM
“How do I generate an embedded billing portal link?”
“Can I create a billing portal for a customer?”
Tell an agent
Create an embedded billing portal.
Generate a billing portal link.
POST /billing/subscribe Subscribe a customer to billing · Billing controller subscribe #
Ask an LLM
“How do I subscribe a customer to billing?”
“Can I start a customer's subscription?”
Tell an agent
Subscribe this customer to billing.
Start a customer's subscription.
GET /billing/portal Open the billing portal to change payment · Billing controller modify payment #
Ask an LLM
“How do I let a customer change their payment method?”
“Can I open the billing portal for payment changes?”
Tell an agent
Open the billing portal so the customer can modify payment.
Take me to the billing portal to change payment.
GET /billing Get the current billing details · Billing controller get current billing #
Ask an LLM
“What are my current billing details?”
“Can I see the account's billing status?”
Tell an agent
Show my current billing details.
Get the account's billing status.
POST /billing/cancel Cancel billing · Billing controller cancel #
Ask an LLM
“How do I cancel billing for an account?”
“Can I stop billing altogether?”
Tell an agent destructive · confirm first
Cancel billing.
Stop billing for this account.
POST /billing/prorate Prorate a billing change · Billing controller prorate #
Ask an LLM
“How do I prorate a billing change?”
“Can I adjust billing to the next period?”
Tell an agent
Prorate this billing change.
Adjust billing to the next period.
GET /billing/charges List billing charges · Billing controller get charges #
Ask an LLM
“What charges have been billed?”
“Can I see the account's billing charges?”
Tell an agent
List the billing charges.
Show the account's charges.
POST /billing/refund-charges Refund billing charges · Billing controller refund charges #
Ask an LLM
“How do I refund a customer's charges?”
“Can I issue a refund on billing charges?”
Tell an agent destructive · confirm first
Refund the billing charges.
Issue a refund on the account's charges.
POST /billing/cancel-subscription Cancel a subscription · Billing controller cancel subscription #
Ask an LLM
“How do I cancel a customer's subscription?”
“Can I end a subscription early?”
Tell an agent destructive · confirm first
Cancel the subscription.
End the customer's subscription.
GET /billing/coupon-info Get coupon information · Billing controller coupon info #
Ask an LLM
“What does a coupon cover?”
“Can I see the details of a coupon?”
Tell an agent
Show coupon information.
Get the details of this coupon.
POST /billing/apply-coupon Apply a coupon · Billing controller apply coupon #
Ask an LLM
“How do I apply a coupon to an account?”
“Can I add a coupon to a customer?”
Tell an agent
Apply a coupon to this account.
Add a coupon to the customer.
POST /billing/cancel-coupon Remove a coupon · Billing controller cancel coupon #
Ask an LLM
“How do I remove a coupon from an account?”
“Can I cancel a coupon?”
Tell an agent destructive · confirm first
Cancel the coupon.
Remove the coupon from the account.
GET /billing/chatbase-refund/preview Preview a refund · Billing controller chatbase refund preview #
Ask an LLM
“Can I preview a refund before issuing it?”
“What would a refund look like?”
Tell an agent
Preview the refund.
Show me what a refund would look like.
POST /billing/chatbase-refund Issue a refund · Billing controller chatbase refund #
Ask an LLM
“How do I issue a refund?”
“Can I refund a charge now?”
Tell an agent destructive · confirm first
Issue the refund.
Refund the charge now.
POST /billing/add-subscription Add a subscription to an account · Billing controller add subscription #
Ask an LLM
“How do I add a subscription to an account?”
“Can I attach a subscription to a customer?”
Tell an agent
Add a subscription to this account.
Attach a subscription to the customer.

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/postiz:postiz-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

postiz-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Postiz Swagger file Billing API
  description: API description
  version: '1.0'
  contact: {}
servers: []
tags:
- name: Billing
paths:
  /billing/check/{id}:
    get:
      operationId: BillingController_checkId
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller check id
      x-summary-source: derived
  /billing/check-discount:
    get:
      operationId: BillingController_checkDiscount
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller check discount
      x-summary-source: derived
  /billing/apply-discount:
    post:
      operationId: BillingController_applyDiscount
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller apply discount
      x-summary-source: derived
  /billing/finish-trial:
    post:
      operationId: BillingController_finishTrial
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller finish trial
      x-summary-source: derived
  /billing/is-trial-finished:
    get:
      operationId: BillingController_isTrialFinished
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller is trial finished
      x-summary-source: derived
  /billing/embedded:
    post:
      operationId: BillingController_embedded
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingSubscribeDto'
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller embedded
      x-summary-source: derived
  /billing/subscribe:
    post:
      operationId: BillingController_subscribe
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingSubscribeDto'
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller subscribe
      x-summary-source: derived
  /billing/portal:
    get:
      operationId: BillingController_modifyPayment
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller modify payment
      x-summary-source: derived
  /billing:
    get:
      operationId: BillingController_getCurrentBilling
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller get current billing
      x-summary-source: derived
  /billing/cancel:
    post:
      operationId: BillingController_cancel
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller cancel
      x-summary-source: derived
  /billing/prorate:
    post:
      operationId: BillingController_prorate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingSubscribeDto'
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller prorate
      x-summary-source: derived
  /billing/charges:
    get:
      operationId: BillingController_getCharges
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller get charges
      x-summary-source: derived
  /billing/refund-charges:
    post:
      operationId: BillingController_refundCharges
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller refund charges
      x-summary-source: derived
  /billing/cancel-subscription:
    post:
      operationId: BillingController_cancelSubscription
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller cancel subscription
      x-summary-source: derived
  /billing/coupon-info:
    get:
      operationId: BillingController_couponInfo
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller coupon info
      x-summary-source: derived
  /billing/apply-coupon:
    post:
      operationId: BillingController_applyCoupon
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminApplyCouponDto'
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller apply coupon
      x-summary-source: derived
  /billing/cancel-coupon:
    post:
      operationId: BillingController_cancelCoupon
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller cancel coupon
      x-summary-source: derived
  /billing/chatbase-refund/preview:
    get:
      operationId: BillingController_chatbaseRefundPreview
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Billing
      summary: Billing controller chatbase refund preview
      x-summary-source: derived
  /billing/chatbase-refund:
    post:
      operationId: BillingController_chatbaseRefund
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller chatbase refund
      x-summary-source: derived
  /billing/add-subscription:
    post:
      operationId: BillingController_addSubscription
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Billing
      summary: Billing controller add subscription
      x-summary-source: derived
components:
  schemas:
    AdminApplyCouponDto:
      type: object
      properties: {}
    BillingSubscribeDto:
      type: object
      properties: {}