Hive Civilization Trade Finance API

The trade-finance API from Hive Civilization — 6 operation(s) for trade-finance.

Operations 6

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

POST /v1/trade/invoice Create a cross-border SMB trade invoice · Post Invoice #
Ask an LLM
“How do I invoice a cross-border supplier payment in USDT with a platform fee shown up front?”
“Which Incoterms and settlement chains can a trade invoice use?”
Tell an agent
Create an invoice for {amount_usdt} USDT from buyer {buyer_address} to supplier {supplier_address} in {supplier_country}, PO {purchase_order_ref}.
Invoice {amount_usdt} for {currency_pair} under {incoterm}, settling on {expected_settlement_chain}.
GET /v1/trade/invoice/{invoice_id} Get a trade invoice and its route · Get Invoice Route #
Ask an LLM
“What is the status and payment route of a specific trade invoice?”
“Can I look up one invoice's payable address?”
Tell an agent
Get trade invoice {invoice_id}.
Show the settlement route for invoice {invoice_id}.
POST /v1/trade/invoice/{invoice_id}/dispute Open a dispute on a trade invoice · Post Invoice Dispute #
Ask an LLM
“Can I dispute a trade invoice if the goods or freight went wrong?”
“Is a dispute routed to arbitration or just recorded on the invoice?”
Tell an agent
Dispute invoice {invoice_id} because {reason}.
Open a dispute on {invoice_id} for {reason} with evidence at {evidence_uri}.
GET /v1/trade/fees View the trade finance fee schedule · Get Fees #
Ask an LLM
“What fees apply to cross-border trade invoices compared with a wire?”
“Where is the public trade fee schedule?”
Tell an agent
Show the trade finance fee schedule.
Get the platform fees for cross-border invoices.
GET /v1/trade/listing Get the trade finance agent listing · Get Listing #
Ask an LLM
“What does the trade finance service's agent marketplace listing say?”
“Can I fetch the HiveAgent listing record for trade finance?”
Tell an agent
Get the trade finance agent listing.
Show the HiveAgent listing for cross-border invoicing.
GET /v1/trade/invoices List all trade invoices · Get Invoices #
Ask an LLM
“Which trade invoices are in the registry?”
“Can operations see every invoice at once?”
Tell an agent
List all trade invoices.
Show every invoice in the trade registry.

Documentation

Specifications

Other Resources

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/thehiveryiq-com:thehiveryiq-com-trade-finance-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

thehiveryiq-com-trade-finance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Trade Finance API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: trade-finance
paths:
  /v1/trade/invoice:
    post:
      tags:
      - trade-finance
      summary: Post Invoice
      description: 'Create a new SMB cross-border invoice.


        The buyer (US/EU SMB) gets a payable address (canonical Safe Treasury)

        and a deterministic platform fee.'
      operationId: post_invoice_v1_trade_invoice_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceCreateBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Post Invoice V1 Trade Invoice Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/trade/invoice/{invoice_id}:
    get:
      tags:
      - trade-finance
      summary: Get Invoice Route
      operationId: get_invoice_route_v1_trade_invoice__invoice_id__get
      parameters:
      - name: invoice_id
        in: path
        required: true
        schema:
          type: string
          title: Invoice Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Invoice Route V1 Trade Invoice  Invoice Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/trade/invoice/{invoice_id}/dispute:
    post:
      tags:
      - trade-finance
      summary: Post Invoice Dispute
      description: 'Open a dispute on an invoice.


        If `hivemorph.hive_law` is wired with a freight/insurance arbitration

        template, route there. Otherwise record a stub dispute on the invoice

        record and return the freight/insurance pattern reference for follow-up.


        This avoids a fake on-chain arbitration receipt — it''s either real

        HiveLaw routing or a documented stub (RAILS_RULES.md spirit, applied to

        arbitration: no mocks).'
      operationId: post_invoice_dispute_v1_trade_invoice__invoice_id__dispute_post
      parameters:
      - name: invoice_id
        in: path
        required: true
        schema:
          type: string
          title: Invoice Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_trade_finance__routes__DisputeBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Post Invoice Dispute V1 Trade Invoice  Invoice Id  Dispute Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/trade/fees:
    get:
      tags:
      - trade-finance
      summary: Get Fees
      description: Public fee schedule. Used by SMB CFOs comparing to their wire fee.
      operationId: get_fees_v1_trade_fees_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Fees V1 Trade Fees Get
  /v1/trade/listing:
    get:
      tags:
      - trade-finance
      summary: Get Listing
      description: Returns the HiveAgent listing record. Idempotent re-list.
      operationId: get_listing_v1_trade_listing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Listing V1 Trade Listing Get
  /v1/trade/invoices:
    get:
      tags:
      - trade-finance
      summary: Get Invoices
      description: List all invoices in the registry (debug / ops surface).
      operationId: get_invoices_v1_trade_invoices_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Invoices V1 Trade Invoices Get
components:
  schemas:
    InvoiceCreateBody:
      properties:
        buyer_address:
          type: string
          title: Buyer Address
          description: Buyer wallet (EVM hex or Solana base58)
        supplier_address:
          type: string
          title: Supplier Address
          description: Supplier wallet (EVM hex or Solana base58)
        amount_usdt:
          type: number
          maximum: 250000.0
          exclusiveMinimum: 0.0
          title: Amount Usdt
        currency_pair:
          type: string
          title: Currency Pair
          description: e.g. 'USD->VND'
        incoterm:
          type: string
          title: Incoterm
          description: FOB / CIF / EXW
        expected_settlement_chain:
          type: string
          title: Expected Settlement Chain
          description: base / ethereum / solana
        purchase_order_ref:
          type: string
          title: Purchase Order Ref
        supplier_country:
          type: string
          maxLength: 2
          minLength: 2
          title: Supplier Country
          description: ISO-3166 alpha-2 code
        settlement_asset:
          type: string
          title: Settlement Asset
          description: USDT (default) or USDC
          default: USDT
        hs_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Hs Code
          description: Optional Harmonized System code
      type: object
      required:
      - buyer_address
      - supplier_address
      - amount_usdt
      - currency_pair
      - incoterm
      - expected_settlement_chain
      - purchase_order_ref
      - supplier_country
      title: InvoiceCreateBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    hivemorph__hive_trade_finance__routes__DisputeBody:
      properties:
        reason:
          type: string
          title: Reason
          description: Free-form dispute reason
        evidence_uri:
          anyOf:
          - type: string
          - type: 'null'
          title: Evidence Uri
          description: Optional link to evidence
      type: object
      required:
      - reason
      title: DisputeBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)