Sprixen Billing API

The Billing API from Sprixen — 7 operation(s) for billing.

GitHub OpenAPI

Operations 7

GET /v1/billing/status Get subscription status and credit balance #
POST /v1/billing/create-checkout Create Stripe Checkout session for Pro upgrade #
POST /v1/billing/checkout Create Stripe Checkout session (alias for /billing/create-checkout) #
POST /v1/billing/portal Create Stripe Billing Portal session #
POST /v1/billing/buy-credits Create Stripe Checkout session for credit pack purchase #
GET /v1/billing/credit-packs Get available credit pack options with pricing #
POST /v1/billing/webhook Stripe webhook handler #

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/sprixen-com:sprixen-com-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

sprixen-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sprixen Billing API
  description: Sprixen AI Game Asset Generator, REST API & MCP Server
  version: '1.0'
  contact: {}
servers:
- url: https://api.sprixen.com
  description: Production
- url: http://localhost:8080
  description: Local Development
tags:
- name: Billing
paths:
  /v1/billing/status:
    get:
      operationId: BillingController_getStatus
      summary: Get subscription status and credit balance
      parameters: []
      responses:
        '200':
          description: Subscription status returned
      tags:
      - Billing
      security:
      - bearer: []
  /v1/billing/create-checkout:
    post:
      operationId: BillingController_createCheckout
      summary: Create Stripe Checkout session for Pro upgrade
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCheckoutDto'
      responses:
        '201':
          description: Checkout URL returned
      tags:
      - Billing
      security:
      - bearer: []
  /v1/billing/checkout:
    post:
      operationId: BillingController_createCheckoutAlias
      summary: Create Stripe Checkout session (alias for /billing/create-checkout)
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCheckoutDto'
      responses:
        '201':
          description: Checkout URL returned
      tags:
      - Billing
      security:
      - bearer: []
  /v1/billing/portal:
    post:
      operationId: BillingController_createPortal
      summary: Create Stripe Billing Portal session
      parameters: []
      responses:
        '201':
          description: Portal URL returned
      tags:
      - Billing
      security:
      - bearer: []
  /v1/billing/buy-credits:
    post:
      operationId: BillingController_buyCredits
      summary: Create Stripe Checkout session for credit pack purchase
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuyCreditsDto'
      responses:
        '201':
          description: Checkout URL returned
      tags:
      - Billing
      security:
      - bearer: []
  /v1/billing/credit-packs:
    get:
      operationId: BillingController_getCreditPacks
      summary: Get available credit pack options with pricing
      parameters: []
      responses:
        '200':
          description: Credit packs returned
      tags:
      - Billing
  /v1/billing/webhook:
    post:
      operationId: BillingController_handleWebhook
      summary: Stripe webhook handler
      description: Do not call this directly — it is called by Stripe
      parameters:
      - name: stripe-signature
        required: true
        in: header
        schema:
          type: string
      responses:
        '200':
          description: Webhook processed
      tags:
      - Billing
components:
  schemas:
    CreateCheckoutDto:
      type: object
      properties:
        successUrl:
          type: string
          example: http://localhost:3000/billing/success
          description: URL to redirect after successful payment
        cancelUrl:
          type: string
          example: http://localhost:3000/billing/cancel
          description: URL to redirect if checkout is cancelled
    BuyCreditsDto:
      type: object
      properties:
        pack:
          type: string
          example: '200'
          description: 'Credit pack size: 50, 150, 200, or 500'
          enum:
          - '50'
          - '150'
          - '200'
          - '500'
        successUrl:
          type: string
          example: http://localhost:3000/billing/success
          description: URL to redirect after successful payment
        cancelUrl:
          type: string
          example: http://localhost:3000/billing/cancel
          description: URL to redirect if checkout is cancelled
      required:
      - pack
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Sprixen API key (spx_live_...)
      name: Authorization
      in: header
    cookie:
      type: apiKey
      in: cookie
      name: sprixen_session