> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction Monitoring API: Sending Transactions

> Send bank, card, crypto and custom events to the Transaction Monitoring API ingest endpoint and get the AML rule outcome in the response.

`POST /api/v1/ingest/` takes one transaction per request. The `type` field picks the payload shape; the rest of the body is that shape.

| `type` | Use it for | Required fields |
| - | - | - |
| `BANK_PAYMENT` | Bank transfers, deposits and withdrawals by account (SEPA, SWIFT, Faster Payments, ACH and others) | `amount`, `currency`, `subject` |
| `CREDIT_CARD` | Card payments, refunds and payouts | `amount`, `currency`, `subject` |
| `CRYPTO_TRANSFER` | On-chain transfers in or out of a customer's wallet | `amount`, `currency`, `subject` |
| `CUSTOM_EVENT` | Anything that is not a payment: logins, profile changes, withdrawal requests | `eventType`, `subject` |

Every field of every type is in the [ingest API reference](https://documentation.idenfy.com/api-reference/transaction-monitoring/ingest/submit-a-transaction-or-event-for-monitoring.md).

## Who is who: subject, counterparty, direction

* **`subject`** is always **your customer**, the person or company you are monitoring. `subject.id` (your own customer id) is required: suspensions, velocity rules and per-customer history all key on it.
* **`counterparty`** is the other side: the payee, the payer, the merchant, or the other wallet.
* **`direction`** says which way the money moved *for your customer*: `OUTBOUND` (the default, money left them) or `INBOUND` (money reached them).

So a deposit and a withdrawal are sent the same way, with your customer as the subject and a different `direction`. A refund is a positive `amount` with `direction: "INBOUND"`.

```json theme={"system"}
{
  "type": "BANK_PAYMENT",
  "externalId": "wd-88213",
  "transactionAt": "2026-11-23T14:05:00Z",
  "direction": "OUTBOUND",
  "amount": "4800.00",
  "currency": "EUR",
  "reference": "Invoice 2026-118",
  "paymentScheme": "SEPA_INSTANT",
  "subject": {
    "id": "cust-42",
    "type": "PERSON",
    "name": "Jane Doe",
    "country": "LT",
    "paymentMethod": { "account": "LT121000011101001000", "bic": "HABALT22" }
  },
  "counterparty": {
    "id": "acct-77",
    "type": "COMPANY",
    "name": "ACME Ltd",
    "country": "DE",
    "paymentMethod": { "account": "DE89370400440532013000" }
  },
  "device": { "ipAddress": "203.0.113.24", "ipCountry": "LT" },
  "customFields": { "channel": "mobile", "loyaltyTier": "gold" }
}
```

Send everything you hold. Rules can only match on what you send: country on both parties enables cross-border rules, `device` enables IP rules, and `name` enables sanctions screening of the parties.

## The response

Rules run before the response returns, so the `202 Accepted` already carries the final outcome:

```json theme={"system"}
{ "transactionId": "5b0f6c2e-8d0a-4f7e-9a51-1f3c2d7e9b10", "status": "BLOCKED" }
```

| `status` | Meaning | What your system should do |
| - | - | - |
| `PASSED` | No rule matched | Proceed |
| `FLAGGED` | A rule matched; an analyst will review afterwards | Proceed |
| `BLOCKED` | A blocking rule matched | Hold the payment until an analyst decides (see below) |
| `REJECTED` | Refused outright, for example the customer or counterparty is suspended | Refuse the payment. Final |
| `FAILED` | Evaluation could not complete | Treat by your own risk policy, for example hold and retry later |

An analyst's later decision on a `BLOCKED` or `FLAGGED` transaction arrives as the [`transaction.status_changed`](https://documentation.idenfy.com/transaction-monitoring/webhooks) webhook: `ALLOWED` releases it, `REJECTED` refuses it. Ingest itself never returns `ALLOWED`.

```mermaid theme={"system"}
%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'Inter, sans-serif', 'fontSize': '11px', 'primaryColor': '#734BFB', 'primaryTextColor': '#ffffff', 'primaryBorderColor': '#5A2FE0', 'lineColor': '#9B7BFC', 'edgeLabelBackground': '#5A2FE0', 'edgeTextColor': '#ffffff'}}}%%
flowchart LR
    I("`Ingest`") -->|no rule matched| P("`PASSED`")
    I -->|rule matched| F("`FLAGGED`")
    I -->|blocking rule matched| B("`BLOCKED`")
    I -->|party suspended| R("`REJECTED`")
    I -->|evaluation error| X("`FAILED`")
    F -->|analyst releases| A("`ALLOWED`")
    B -->|analyst releases| A
    F -->|analyst refuses| R
    B -->|analyst refuses| R
```

## Formats and validation

| Field | Rule |
| - | - |
| JSON keys | camelCase in responses. Requests accept camelCase or snake\_case |
| `amount` | Decimal **string**, zero or more, up to 8 decimal places. Never a float |
| `currency` | Exactly 3 letters, for example `EUR`. See the note on crypto below |
| Countries | ISO 3166-1 alpha-2, for example `LT` |
| `transactionAt` | ISO 8601 with a timezone. Defaults to when we received it. Refused if more than 5 minutes in the future; past timestamps are accepted |
| Card numbers | Masked only, for example `411111******1111`. A value that looks like a full card number is refused, so a full PAN never reaches us |
| `customFields` | Flat object, at most 50 keys of up to 100 characters, values up to 2000 characters. Keys you declare under **Developer → Custom fields** (Integrations permission) or with `POST /api/v1/custom-fields/` are validated and matchable by rules; other keys are stored as sent but rules cannot match them |
| `description` | Up to 2000 characters, shown to analysts |

Amounts in other currencies are converted into your reporting currency with the European Central Bank's daily reference rate before rules compare them.

> [!WARNING]
>
> **Crypto transfers:** send the transfer's **fiat value** in `amount` and `currency` (for example `"amount": "1250.00", "currency": "EUR"`), and the asset under `crypto` (`asset`, `network`, `txHash`). A ticker such as `BTC` is accepted in `currency`, but the ECB publishes no rate for it, so the transaction has no reporting-currency amount and amount-based rules cannot match it. Four-letter tickers such as `USDT` are refused.

## Retries and duplicates

> [!WARNING]
>
> `externalId` is **not** an idempotency key. Sending the same body twice creates two transactions, runs your rules twice, and bills twice.

If a request times out and you do not know whether it was stored, check before resending:

```bash theme={"system"}
curl "https://ivs-tx-monitoring.idenfy.com/api/v1/ingest/transactions/?search=wd-88213&search_field=external_id" \
  -H "X-API-Key: $TM_API_KEY"
```

Resend only if the list is empty. A `4xx` response (other than `429`) means nothing was stored; fix the request rather than retrying it unchanged.

## Reading transactions back

| Endpoint | Returns |
| - | - |
| `GET /api/v1/ingest/transactions/` | What this key sent, newest first, as a plain array. Filter by `status`, `type`, `created_from`, `created_to`, amounts and `search` |
| `GET /api/v1/ingest/transactions/{transactionId}/` | One transaction, as you sent it |
| `GET /api/v1/transactions/{transactionId}/rules/` | The rules it matched |

Lists page with `skip` and `limit` (default 50, at most 200).

## Suspended parties

A customer or counterparty under an active [party suspension](https://documentation.idenfy.com/api-reference/transaction-monitoring/party-suspensions/suspend-a-party.md) has every new transaction `REJECTED` without rules running. Suspensions are set by rules, by analysts in the dashboard, or with `POST /api/v1/party-suspensions/`, and lifted with a reason.


## Related topics

- [Transaction Monitoring API](https://documentation.idenfy.com/transaction-monitoring/overview.md)
- [Transaction Monitoring API Webhooks](https://documentation.idenfy.com/transaction-monitoring/webhooks.md)
- [Transaction Monitoring Dashboard: Transactions](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/transactions.md)
- [Transaction Monitoring API Authentication](https://documentation.idenfy.com/transaction-monitoring/authentication.md)
- [Transaction Monitoring API Quickstart](https://documentation.idenfy.com/transaction-monitoring/quickstart.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.