Latamref x402 sellers API

Endpoints aimed at other x402 sellers, notably cross-border VAT determination for digital sales.

GitHub OpenAPI

Operations 1

POST /v1/vat/determine Cross-border VAT treatment of a digital-services sale (EU, UK, South Africa)… #

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/latamref-dev:latamref-dev-x402-sellers-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

latamref-dev-x402-sellers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: latamref — Latin American government reference data x402…
  version: 1.0.0
  description: 'Latin American government reference data for 22 countries as cited JSON: central-bank policy rates, VAT/GST and VAT registration thresholds, CPI, corporate, personal and withholding tax, social contributions, minimum wages, statutory interest, official FX rates, filing deadlines and public holidays (coverage varies by country). Every value carries its official source URL and last-confirmed date. Single facts $0.003; country brief (every series for one country) $0.01; cross-country compare (one series, up to 10 countries) $0.02; tax-ID and VAT-number checks $0.003; computed answers (VAT, income tax, working days, minimum-wage check) $0.01-$0.02. Pay per call in USDC on Base via x402 or MPP, no signup, or by card with credit packs or monthly plans on one key valid across all 7 regional services. Free tier: GET /catalog, plus a free email key with 50 answer calls a day, commercial use allowed. Finished answers, one cited dossier per call (supported countries vary per job; others are refused free): cost this hire (wage-floor verdict, contributions, employer cost) $0.50; charge this sale (which VAT applies, net/VAT/gross) $0.50; charge this sale certified (plus a signed VAT-rate extract) $0.75; invoice due date and statutory late interest $0.40; country evidence pack (brief plus signed extracts) $0.25; hire compare $0.75 for 2 countries, $1.00 for 3-5; next filings (VAT, PAYE, corporate-tax due dates rolled for holidays) $0.35; invoice check (VAT right or wrong, overdue interest, tax-ID format) $0.60.


    Free trial: 3 successful calls per day per IP, shared across POST /v1/answers/* and POST /v1/jobs/*. No header needed (X-Free-Trial: 1 is accepted but not required); an empty-body POST gets the normal x402 402 and does not use the trial; a CoinbaseBazaarDiscovery user-agent also gets that 402 and does not use the trial (the user-agent is not a credential); once used up, the 402 carries free_trial_resets_at. MCP answer tools use the trial automatically when no api_key is passed. Every series of the evaluation country is free. Card credit (same per-call price as x402): /pricing.'
  x-guidance: 'GET /v1/{country}/{series} returns the current value of a reference series — e.g. GET /v1/br/policy-rate. Countries: ar, bb, bo, br, bz, cl, co, cr, do, ec, gt, gy, hn, jm, mx, ni, pa, pe, py, sv, tt, uy. Series: policy-rate, vat, vat-registration-threshold, minimum-wage, public-holidays, cpi, corporate-tax, withholding-tax, statutory-interest, income-tax, social-contributions, fx-reference, filing-deadlines. Append /history for past values. GET /v1/all returns every series for every country in one call. GET /catalog (free) lists all available series with freshness metadata, each with the official source it is cited to. If you are an x402/API seller making a cross-border digital sale, POST /v1/vat/determine tells you which jurisdiction''s VAT applies, who accounts for it, and the registration trigger — cited to the statute (EU, UK, South Africa), and it handles the wallet-only unidentified-buyer case. Payment is x402 (USDC on Base) per call; no signup or API keys needed. Retention: GET /v1/changes (free; past moves and freshness), GET /v1/calendar (free; reverify_by is derived from last_confirmed + update_cycle_days; next_effective_known only when current.effective_to is set; status unknown omits any next date; notes are never parsed; not an MPC, budget, or wage-review date), and POST /alerts (register free) are how a paying agent watches a value after the first paid call. Do not re-buy a series to find out whether it moved. GET /v1/calendar is not a promised future gazette.'
  contact:
    name: afriref API support
    email: api@3l-groupconsulting.co.za
    url: https://latamref.dev/pricing
    x-agentcash-owner: fou53506
  termsOfService: https://latamref.dev/terms
servers:
- url: https://latamref.dev
security:
- x402Payment: []
- apiKey: []
tags:
- name: x402 sellers
  description: Endpoints aimed at other x402 sellers, notably cross-border VAT determination for digital sales.
paths:
  /v1/vat/determine:
    post:
      operationId: determineCrossBorderVat
      summary: Cross-border VAT treatment of a digital-services sale (EU, UK, South Africa)…
      description: 'Cited VAT rules for a seller-country to buyer-country digital-services sale: place of supply, who accounts, rate basis, registration trigger, reporting. Wallet-only buyers use flagged B2C defaults; unverified combinations are refused free (422), never guessed.'
      tags:
      - x402 sellers
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.050000'
        protocols:
        - x402: {}
        - mpp:
            method: evm
            intent: charge
            currency: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
            network: eip155:8453
      security:
      - x402: []
      - x402Payment: []
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                seller_country:
                  type: string
                  description: ISO 3166-1 alpha-2 (EL accepted for Greece, UK for United Kingdom)
                buyer_country:
                  type: string
                  description: ISO 3166-1 alpha-2
                buyer_type:
                  type: string
                  enum:
                  - B2B
                  - B2C
                  - unknown
                  description: Default unknown — treated as B2C and flagged in the response
              required:
              - seller_country
              - buyer_country
      responses:
        '200':
          description: The applied rule (place of supply, who accounts, rate basis, registration trigger, reporting) with statutory citation, classification workings, destination-liability companion where applicable, e-services definition, ViDA forward-flag and disclaimer
        '400':
          description: Invalid body (free — validated before payment)
        '402':
          description: Payment Required
        '405':
          description: Wrong method (free) — use POST
        '422':
          description: Combination outside the verified ruleset (free, labeled — never guessed, never charged)
      x-description-full: 'Regulatory information with citations, for x402/API sellers: place of supply, who accounts for the VAT, rate basis, registration/threshold trigger and reporting mechanism for a seller-country → buyer-country digital-services sale. Unknown buyers (wallet-address only) are resolved under B2C-default rules and explicitly flagged; combinations outside the verified ruleset are refused FREE (422) before payment — never guessed, never charged.'
components:
  securitySchemes:
    x402Payment:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: x402 (USDC on Base). Call without this header, receive HTTP 402 carrying the price and payment details, then retry with the signed payment payload in X-PAYMENT. No signup, no account, no key. Per-operation prices are in the x-payment-info extension and at https://latamref.dev/pricing.
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Prepaid credit bought by card (from $10) at https://latamref.dev/pricing, or a free key by email at https://latamref.dev/free-key (50 calls a day on answer endpoints, commercial use allowed). Send the key on every call. How the two payment rails charge: both rails charge the same US-dollar price per call. By card, prepaid credit is worth $0.001 per credit on the $10, $25 and $100 packs and each successful call debits its endpoint price in credits (a $0.003 value is 3 credits, a $0.002 holidays call is 2, an alert delivery after the free trial is 50, a $0.10 certified extract is 100); over x402, every call pays the price quoted in its own 402 challenge, $0.002 to $1.00 depending on the endpoint (listed at https://latamref.dev/pricing). Failed or refused calls are not charged on either rail. Keys bought before 12 October 2026 keep their original one-credit-per-call terms, and keys bought from 12 to 16 October keep $0.005 credits. Use this instead of x402 if you want an invoice.'
    x402:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: 'x402 v2 (USDC on Base, network eip155:8453): call without payment, receive HTTP 402 with the v2 PAYMENT-REQUIRED challenge, retry with the signed payload in PAYMENT-SIGNATURE. The challenge is v2 only, so a client must read v2; X-PAYMENT is also accepted as the payment header. No signup, no key.'
x-example-urls:
- https://latamref.dev/catalog
- https://latamref.dev/v1/calendar
- https://latamref.dev/public/br/holidays
- https://latamref.dev/v1/br/policy-rate
- https://latamref.dev/v1/br/policy-rate/history
- https://latamref.dev/v1/all