Pomerado Billing API
The billing API from Pomerado — 4 operation(s) for billing.
The billing API from Pomerado — 4 operation(s) for billing.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pomerado-ai:pomerado-ai-billing-api"
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.
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: 3.2.0
info:
title: Pomerado Billing API
version: '1'
description: Run and build website tools, follow their jobs, and manage logins, API keys and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth token or a Dashboard session as a Bearer token.
servers:
- url: https://api.pomerado.ai
tags:
- name: Billing
x-group: Billing
paths:
/v1/billing:
get:
operationId: billing.get
tags:
- Billing
summary: Get your subscription
description: Returns your Personal account's plan and Premium subscription, any free Premium period from a redeemed code (promotion), and what checkout and the billing portal offer.
responses:
'200':
description: Your subscription
content:
application/json:
schema:
$ref: '#/components/schemas/Billing'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: billing_unavailable, forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: read
x-pomerado-callers:
- session
- oauth
- api_key
x-pomerado-permission: identity
x-pomerado-key-permission: billing:manage
/v1/billing/checkout:
post:
operationId: billing.checkout
tags:
- Billing
summary: Start a Premium checkout
description: 'Returns a Stripe Checkout link where the person subscribes their Personal account to Premium, monthly or yearly.
- Premium starts once Stripe confirms payment.
- An account already on Premium gets its Settings page instead, and one with a subscription gets the billing portal.
- An open checkout for the other interval is kept unless replace_existing is true; the link is then a Settings page that asks to replace it.'
requestBody:
required: false
content:
application/json:
schema:
type: object
required: []
properties:
interval:
type: string
enum:
- monthly
- yearly
description: Default monthly
replace_existing:
type: boolean
description: Replace an open checkout for the other interval instead of answering a page that asks to (default false)
additionalProperties: false
responses:
'200':
description: The page to open
content:
application/json:
schema:
$ref: '#/components/schemas/BillingLink'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: billing_unavailable, forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: request_too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: write
x-pomerado-callers:
- session
- oauth
- api_key
x-pomerado-permission: identity
x-pomerado-key-permission: billing:manage
/v1/billing/portal:
post:
operationId: billing.portal
tags:
- Billing
summary: Open the billing portal
description: Returns a Stripe billing portal link where the person manages their Premium subscription, payment method and invoices. An account that never started a checkout has no portal and gets not_found.
responses:
'200':
description: The page to open
content:
application/json:
schema:
$ref: '#/components/schemas/BillingLink'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: billing_unavailable, forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: write
x-pomerado-callers:
- session
- oauth
- api_key
x-pomerado-permission: identity
x-pomerado-key-permission: billing:manage
/v1/billing/redeem:
post:
operationId: billing.redeem
tags:
- Billing
summary: Redeem a free Premium code
description: Redeems a code for free Premium on your Personal account, such as 6 months of Premium with no card. An account already paying through Stripe gets the free months after its paid period, with nothing charged; Stripe bills again by itself afterwards. A code is single use, and an account gets each offer once; repeating your own redemption answers the same. An unknown, used, revoked or expired code, or an offer the account already had, is invalid_code; five of those in an hour wait an hour (redeem_throttled). While a free period runs another code is promotion_already_active and stays unused.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- code
properties:
code:
type: string
description: The code as sent, such as ABCD-EFGH-JKMN-PQRS; case, dashes and spaces are ignored, and I and L read as 1, O as 0
minLength: 1
maxLength: 64
additionalProperties: false
responses:
'200':
description: The free Premium period
content:
application/json:
schema:
$ref: '#/components/schemas/BillingRedeemed'
'400':
description: invalid_code, invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthorized, reauthentication_required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: billing_unavailable, forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: promotion_already_active, billing_attention_needed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: request_too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: redeem_throttled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: not_configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: temporarily_unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearer: []
x-pomerado-effect: write
x-pomerado-callers:
- session
- oauth
- api_key
x-pomerado-permission: identity
x-pomerado-key-permission: billing:manage
components:
schemas:
Billing:
type: object
required:
- plan
- status
- interval
- current_period_end
- live
- portal
- checkout
- yearly_switch
- promotion
properties:
plan:
type: string
enum:
- free
- premium
status:
type: string
enum:
- free
- active
- trialing
- canceling
- past_due
- payment_failed
description: 'canceling: Premium until current_period_end, then Free. past_due: still Premium while a failed payment is retried. payment_failed: the first payment failed, so still Free'
interval:
anyOf:
- type: string
enum:
- monthly
- yearly
- type: 'null'
current_period_end:
anyOf:
- type: string
- type: 'null'
description: 'When the current period ends: the next renewal, the end of a trial, or when Premium ends'
live:
type: boolean
description: False when Stripe couldn't be read, so this is the last stored subscription
portal:
type: boolean
description: The billing portal can open
checkout:
type: object
required:
- monthly
- yearly
properties:
monthly:
type: boolean
yearly:
type: boolean
additionalProperties: false
description: Which Premium intervals checkout offers
yearly_switch:
type: object
required:
- available
- scheduled
- needs_support
properties:
available:
type: boolean
description: A monthly subscription can switch to yearly at its next renewal
scheduled:
anyOf:
- type: object
required:
- schedule_id
- starts_at
properties:
schedule_id:
type: string
starts_at:
type: string
additionalProperties: false
- type: 'null'
needs_support:
type: boolean
description: The subscription has a scheduled change Pomerado didn't make; contact support
additionalProperties: false
promotion:
anyOf:
- $ref: '#/components/schemas/PromotionSummary'
- type: 'null'
description: The free Premium period from a redeemed code, while it runs; else null
additionalProperties: false
PromotionSummary:
type: object
required:
- offer_name
- ends_at
- billing_resumes_at
properties:
offer_name:
type: string
description: The offer, such as 6 months of Premium
ends_at:
type: string
description: When the free Premium period ends (ISO 8601)
billing_resumes_at:
anyOf:
- type: string
- type: 'null'
description: When Stripe bills again (ISO 8601), for an account that also pays through Stripe; else null
additionalProperties: false
BillingRedeemed:
type: object
required:
- status
- promotion
properties:
status:
type: string
enum:
- redeemed
promotion:
$ref: '#/components/schemas/PromotionSummary'
additionalProperties: false
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- retryable
- docs_url
properties:
code:
type: string
message:
type: string
retryable:
type: boolean
docs_url:
type: string
details:
type: object
required: []
properties: {}
additionalProperties:
$id: /schemas/unknown
additionalProperties: false
additionalProperties: false
BillingLink:
type: object
required:
- url
properties:
url:
type: string
description: The page to open in a browser
additionalProperties: false
securitySchemes:
bearer:
type: http
scheme: bearer