Billease Trx API

The Trx API from Billease — 4 operation(s) for trx.

Operations 5

GET /trx/refund/{refundId} GET /trx/refund/{refund_id} #
POST /trx/transaction Create transaction #
GET /trx/transaction/{trxId} GET /trx/transaction/{trx_id} #
GET /trx/{id}/{id} GET /trx/{id}/history #
POST /trx/{id}/{id} Refund items #

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/billease-trx-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

billease-trx-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Billease Trx API
  version: '2026-09-28'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-09-28: 10 operation(s) read from 10 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Billease has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 9
    pages-with-code: 1
    pages-read: 10
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-09-28'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.billease.ph/api-trx
  - https://docs.billease.ph/api-callback
  - https://docs.billease.ph/api-products
  - https://docs.billease.ph/integration/api-specification
  - https://docs.billease.ph/redocusaurus/plugin-redoc-0.yaml
  - https://docs.billease.ph/redocusaurus/plugin-redoc-1.yaml
  - https://docs.billease.ph/redocusaurus/plugin-redoc-2.yaml
  - https://docs.billease.ph/integration/deals/intro
  - https://docs.billease.ph/integration/deals/product-sync
  - https://docs.billease.ph/integration/deals/transaction-orders
servers:
- url: https://trx-test.billease.ph
security:
- bearer: []
tags:
- name: Trx
paths:
  /trx/refund/{refundId}:
    get:
      operationId: get_trx_refund_refundId
      tags:
      - Trx
      summary: GET /trx/refund/{refund_id}
      description: Poll the status of a refund using the refund_id returned by POST /trx/{id}/refund.
      x-source: https://docs.billease.ph/integration/deals/transaction-orders
      parameters:
      - name: refundId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /trx/transaction:
    post:
      operationId: post_trx_transaction
      tags:
      - Trx
      summary: Create transaction
      x-source: https://docs.billease.ph/api-callback
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostTrxTransactionRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTrxTransactionResponse'
      x-evidence:
        kind: documentation
  /trx/transaction/{trxId}:
    get:
      operationId: get_trx_transaction_trxId
      tags:
      - Trx
      summary: GET /trx/transaction/{trx_id}
      description: Read‑only endpoint for manual debugging to check whether a transaction order reached the merchant; any 2xx means the order exists.
      x-source: https://docs.billease.ph/integration/deals/transaction-orders
      parameters:
      - name: trxId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /trx/{id}/{id}:
    get:
      operationId: get_trx_id_id
      tags:
      - Trx
      summary: GET /trx/{id}/history
      description: Retrieve the full timestamped sequence of a transaction.
      x-source: https://docs.billease.ph/integration/deals/transaction-orders
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
        collapsed_from: 2 example path(s) differing only at id
    post:
      operationId: post_trx_id_id
      tags:
      - Trx
      summary: Refund items
      description: This operation refunds one or more items from the transaction.
      x-source: https://docs.billease.ph/api-trx
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostTrxIdIdRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTrxIdIdResponse'
      x-evidence:
        kind: documentation
        collapsed_from: 2 example path(s) differing only at id
components:
  schemas:
    PostTrxIdIdResponse:
      type: object
      properties:
        refund_id:
          type: string
          description: Refund identifier
        refund_time:
          type: string
          description: Time of refund
        status:
          type: string
          description: Refund status
    PostTrxTransactionRequest:
      type: object
      properties:
        order_id:
          type: string
          description: Order ID. Echo it back on every POST /trx/{id}/update call.
        trx_id:
          type: string
          description: Transaction ID (UUID). It also goes in the path of the delivery-status update calls.
        product_id:
          type: string
          description: Your product id, the same id you send us on POST /products/sync.
        amount:
          type: number
          description: Amount paid by the customer, in major currency units.
        currency:
          type: string
          description: Currency.
        created:
          type: string
          description: Timestamp when the transaction order creation was initiated on partner side.
        customer:
          type: object
          description: Recipient of the goods, and where they ship.
        sender:
          type: object
          description: The buyer, when the goods were purchased for someone else.
      required:
      - order_id
      - trx_id
      - product_id
      - amount
      - currency
      - created
      - customer
    PostTrxTransactionResponse:
      type: object
      properties:
        status:
          type: string
          description: OK
        in_stock:
          type: integer
          description: Remaining stock count.
    PostTrxIdIdRequest:
      type: object
      properties:
        items:
          type: array
          description: Array of integers non-empty unique Array of ids
        reason_refund:
          type: string
          description: Refund reason
        amount:
          type: number
          description: Amount to be refunded
  securitySchemes:
    bearer:
      type: http
      scheme: bearer