Varoriya AI Billing API

Buy VaroCoins via Thai PromptPay QR (Omise).

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).

Operations 3

GET /v1/billing/packages VaroCoin top-up packages #
POST /v1/billing/topup Create a top-up (PromptPay QR) #
GET /v1/billing/topup/{charge_id} Poll top-up status #

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

varoriya-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Varoriya Com Billing API
  version: 1.0.0
  contact:
    name: Varoriya
    url: https://varoriya.com
  description: 'Operations tagged Billing across 2 of this provider''s published API definitions: openapi.yaml, varoriya-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.varoriya.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Billing
  description: Buy VaroCoins via Thai PromptPay QR (Omise).
paths:
  /v1/billing/packages:
    get:
      tags:
      - Billing
      summary: VaroCoin top-up packages
      description: The buyable VaroCoin packages (coins + price in THB).
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Packages
          content:
            application/json:
              example:
                currency: THB
                packages:
                - index: 1
                  coins: 15000
                  price_baht: 150
                - index: 2
                  coins: 60000
                  price_baht: 550
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getV1BillingPackages
      x-operation-id-source: derived
    servers:
    - url: https://api.varoriya.com
      description: Production
  /v1/billing/topup:
    post:
      tags:
      - Billing
      summary: Create a top-up (PromptPay QR)
      description: 'Create a Thai PromptPay charge for a package and get a QR to scan. Pass

        either `package` (1-based index from `GET /v1/billing/packages`) or the

        `coins` amount of a package. Pay by scanning `qr_url`; a base64

        `qr_png_b64` (PNG) is also returned for inline display. Coins are

        credited automatically within seconds — poll

        `GET /v1/billing/topup/{charge_id}`.'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                package:
                  type: integer
                  description: 1-based package index.
                coins:
                  type: integer
                  description: Coin amount of a package (alternative to package).
            examples:
              by-package:
                summary: By package index
                value:
                  package: 1
              by-coins:
                summary: By coin amount
                value:
                  coins: 15000
      responses:
        '200':
          description: Charge created (pending)
          content:
            application/json:
              example:
                success: true
                order_id: 4712233
                charge_id: chrg_test_5xxxxxxxxxxxxxxxxxx
                qr_url: https://api.omise.co/charges/chrg_.../documents/docu_.../downloads/...
                amount_baht: 150
                coins: 15000
                package_index: 1
                expires_at: '2026-08-11T12:00:00Z'
                status: pending
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: postV1BillingTopup
      x-operation-id-source: derived
    servers:
    - url: https://api.varoriya.com
      description: Production
  /v1/billing/topup/{charge_id}:
    get:
      tags:
      - Billing
      summary: Poll top-up status
      description: 'Check whether a top-up has been paid. When `status: paid`, the coins

        have been credited and `coins_balance` is the new balance.'
      security:
      - bearerAuth: []
      parameters:
      - in: path
        name: charge_id
        required: true
        schema:
          type: string
        example: chrg_test_5xxxxxxxxxxxxxxxxxx
      responses:
        '200':
          description: Status
          content:
            application/json:
              examples:
                pending:
                  summary: Not paid yet
                  value:
                    status: pending
                paid:
                  summary: Paid & credited
                  value:
                    status: paid
                    coins: 15000
                    coins_balance: 32794
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getV1BillingTopupByChargeId
      x-operation-id-source: derived
    servers:
    - url: https://api.varoriya.com
      description: Production
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: invalid_api_key
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'unsupported_quality (allowed: 1K, 2K)'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your generation key: varo_gk_xxxxxxxx'
x-refined-from:
- openapi.yaml
- varoriya-com-openapi.yml