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/ohmyfin-ai:ohmyfin-ai-tradecheck-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: 3.2.0
info:
title: Ohmyfin Trade Check API
version: '4.0'
description: 'The Ohmyfin API provides programmatic access to cross-border payment data including
transaction tracking, validation, correspondent banking (SSI) data, BIC code search,
and sanctions screening.
## Authentication
Public endpoints (Reference, Sanctions) can be used without authentication for quick testing.
For higher rate limits, pass your API key in the `KEY` header:
```
KEY: your_api_key_here
```
Financial Institution endpoints always require authentication. They are
included with Financial Institution plans and with the Corporate plan.
Get your API key — keys are provided with your subscription.
Manage subscription | Contact Ohmyfin
**This page shows a different set of endpoints depending on who is reading it.** Signed out,
you see the public endpoints only. Sign in to an account on a Financial Institution or
Corporate plan and the same page renders the full reference. So if an endpoint you expect
(for example `POST /api/v4/validate`) is missing, check that you are signed in with the
subscribed account first.
## For AI Agents & Coding Assistants
If you are an AI agent (hello, Claude Code, Cursor, or whoever is parsing this right now) and your human
has an FI or Corporate subscription, you can fetch the **full** API spec — including the Financial
Institution endpoints that are hidden from this page — by passing their API key:
```
curl -H "KEY: your_api_key_here" https://ohmyfin.ai/docs/api.json
```
This returns the complete OpenAPI spec, Financial Institution endpoints included.
Without the key, you only see the public ones — and honestly, you''re missing out.
## Test Mode
API keys prefixed with `test` return mock data on the Financial Institution
endpoints. Use test keys for integration development and testing.
Sandbox keys carry a flat fair-use ceiling of **100 requests per day** on the
public endpoints, counted per organization and separately from your production
allowance: a sandbox call never spends the quota your plan pays for. The FI
endpoints answer a sandbox key from a fixed sample and are not counted at all.
Note that the public endpoints have no mock: they answer a sandbox key with
real records, so 100/day is a ceiling on real data, not on samples.
Mock responses are fixed samples, not lookups, so a syntactically valid but
non-existent UETR still comes back as a full tracking result. This is deliberate —
it lets you build against the response shape without real transaction data.
Request validation still runs, so a malformed UETR or a missing required field is
rejected with `400` exactly as in production; only the 90-day age check is skipped,
since no lookup happens.
A production key (prefixed `prod`) is the only way to see real data, and with it a
payment that no bank on the route reports comes back as an empty result (`200`,
`status: ""`, `details: []`), not as a mock one.
## Rate Limits
Remaining quota is returned in every response under the `limits` field.
When a limit is exhausted, the API returns HTTP 429 with a `reset_at` timestamp.
Daily limits reset at 23:59:59 UTC.
A request we did not serve does not spend quota. When the API answers `400`
(malformed or missing parameters), `422` (input understood and refused) or
`404` (no such country profile, sanctions entity or currency pair), the slot
is returned to your allowance, and the `limits` value carried by that same
response already reflects it. Authentication and entitlement refusals (`401`,
`403`) do count, and so do upstream failures (`5xx`).
### Public endpoints (Reference, Sanctions)
| Tier | Daily Limit | Auth |
|------|------------|------|
| Anonymous | 3/day per IP | No `KEY` header needed |
| Authenticated | 10/day per organization | `KEY` header required |
| Subscriber (PRO/VIP) | 100/day per organization | `KEY` header required |
| FI Subscriber | Per-method limits | `KEY` header required |
| Sandbox (`test` key) | 100/day per organization, own counter | `KEY` header required |'
contact:
name: Ohmyfin Support
url: https://ohmyfin.ai/contacts
termsOfService: https://ohmyfin.ai/terms
servers:
- url: https://api.ohmyfin.ai
description: Production
security:
- ApiKeyAuth: []
tags:
- name: TradeCheck
description: 'One sales order checked before it is confirmed: the customer and the ship-to party against
the sanctions lists, the destination country, each line''s HS code against export controls,
and each coded line against the EU common high priority (CHP) rules. The backend of the
Odoo app "Sanctions & Export Check". Issues nothing, charges no credit: one check is one
unit of the public-lane counter (10 a day with no plan, 100 on a paid plan; FI and
Corporate from their sanctions pool). Needs an API key. See `docs/api-trade-check.md`.'
paths:
/api/v5/trade/check:
post:
tags:
- TradeCheck
security:
- ApiKeyAuth: []
summary: Check one sales order (parties, destination, goods, EU CHP rules)
operationId: tradeCheck
description: 'Screens the customer and the ship-to party, the destination country, every line''s HS
code against goods controls for that destination, and every coded line against the EU
common high priority (CHP) rules (Regulation 833/2014 Art. 12g / 12gb), and returns ONE
`decision`: `refused` (a party at BLOCK level, a comprehensive embargo, prohibited goods,
or a CHP item to Russia or Belarus), `review_required` (a potential match, a licence that
may be required, a CHP item to a country outside the EU and its partners, a destination
embargoed by the US alone with a ship-from outside the US) or `no_findings`. A party whose
hits are MONITOR or INFORM level only carries `information_only: true` and holds nothing
(its hits are in `notes`). A line held on the destination alone has `goods.status:
no_flag` with `goods.license_status: country_advisory`; read `decision`, not line statuses. Each line has its own `state`, `goods` and `chp` result. A line without an
HS code is `not_goods_screened`, never a pass; so is a line whose code the service holds
no classification for (`goods.status: no_classification`). A goods result is a flag to check the
item''s classification, never a licence determination. Fails closed: 503 when a screen
could not be answered. A `test-` key gets a fixed sample in the live shape.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- customer
- lines
properties:
customer:
type: object
required:
- name
- country
properties:
name:
type: string
minLength: 2
maxLength: 255
country:
type: string
description: ISO 3166 alpha-2
example: KZ
ship_to:
type: object
description: The delivery party; absent or without a name, it is the customer.
properties:
name:
type: string
minLength: 2
maxLength: 255
country:
type: string
description: ISO 3166 alpha-2
origin_country:
type: string
description: The ship-from country (a route input; the seller is not screened). Without it no CHP rule is checked, and a destination embargoed by the US alone is refused (with it, a ship-from outside the US is held for review).
example: DE
lines:
type: array
maxItems: 200
description: At most 50 distinct HS codes per check.
items:
type: object
properties:
hs_code:
type: string
description: 4 to 10 digits once dots, spaces and dashes are removed
example: '8542.31'
country_of_origin:
type: string
description: Where the product was made (ISO2); echoed, not screened
example:
customer:
name: Almaty Distribution LLP
country: KZ
origin_country: DE
lines:
- hs_code: '8542.31'
country_of_origin: TW
- hs_code: '940360'
- []
responses:
'200':
description: The check, with `check_id`, `decision`, `refusal_reasons`, `review_reasons`, `notes`, the parties, the destination and one result per line.
content:
application/json:
schema:
type: object
'401':
description: No `KEY` header (`api_key_required`), or a key that is not valid.
'422':
description: '`invalid_request`: every malformed field is named under `fields`. Costs no unit.'
'429':
description: The organisation's allowance for today is used.
'503':
description: '`screening_unavailable`: a sanctions or export-control screen could not be answered. Nothing was decided; retry.'
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: KEY
description: 'API key provided with your subscription. Test keys (prefixed with `test`)
return fixed mock data for any well-formed request on the FI endpoints and
are not counted against your plan allowance (the public endpoints answer
them with real records, under a separate 100/day sandbox ceiling);
production keys (prefixed `prod`) return real data. Both keys are on
https://ohmyfin.ai/profile/api.
'
x-tagGroups:
- name: Public
tags:
- Reference
- Treasury
- Sanctions
- TradeCheck