Financial Events Enrichment
Send financial events and entity updates to enrich Fraudio's dataset, without requesting an immediate fraud score.
POST https://api.fraudio.com/v2/financial-events/enrichment
Typical request
Use this endpoint for events that don't require a synchronous fraud recommendation, or to update entity context independently of transactions.
The request body contains a top-level events array and a top-level entities array. Events and entities are correlated through refs; there is no per-event entity nesting.
{
"events": [
{
"type": "card_network_transaction",
"id": "auth-resp-001",
"timestamp": 1770004000.123,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"details": {
"mti": "0110",
"transaction_type": "purchase",
"response_code": "00",
"eci": "02",
"avs_result": "Y",
"cvv_result": "M",
"cavv_result": "2"
}
}
],
"entities": []
}
Typical response
This endpoint does not return a fraud score. While it only responds with a simple acknowledgement, Fraudio stores and analyzes these enrichments in the background. Enrichments serve as context for subsequent events, support a data-rich experience in the Portal and enable powerful features for long-term fraud monitoring.
{
"status": "ok"
}
Event types
This endpoint accepts multiple event types using the same request structure.
Below are common event.type values and example payloads.
card_network_transaction (authorization response)
Use MTI 0110 to send the authorization response after a pre-auth scoring call. This enriches Fraudio's dataset
with the outcome of the authorization and any post-auth fields that were not yet available at scoring time
(e.g. event.details.response_code, event.details.eci, event.details.avs_result, event.details.cvv_result, event.details.cavv_result).
Link this event to the original 0100 using parent_event_id and/or lifecycle_rrn.
sender, receiver, and event.details.amount, event.details.currency, event.details.currency_unit are optional if they were already sent on the original 0100 event.
event.details.transaction_type mirrors the value sent on the original card_network_transaction event (e.g. "purchase"). See the Financial Events Screening - Transaction types for the full mapping of transaction_type values and their relationship to ISO 8583 DE003.
If your fraud checks are performed post-authorization, send the 0110 to the Financial Events Screening endpoint instead for scoring. In that case, include sender, receiver, and event.details.amount, event.details.currency, event.details.currency_unit since there is no prior event to inherit them from.
{
"events": [
{
"type": "card_network_transaction",
"id": "auth-resp-001",
"timestamp": 1770004000.123,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"details": {
"mti": "0110",
"transaction_type": "purchase",
"response_code": "00",
"eci": "02",
"avs_result": "Y",
"cvv_result": "M",
"cavv_result": "2"
}
}
],
"entities": []
}
card_network_transaction (reversal advice)
Use this for transaction reversals.
{
"events": [
{
"type": "card_network_transaction",
"id": "reversal-evt-001",
"timestamp": 1770004500,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"sender": { "refs": { "acquirer": "b-7610201" } },
"receiver": { "refs": { "issuer": "b-450901" } },
"details": {
"mti": "0420",
"transaction_type": "purchase",
"currency": "EUR",
"currency_unit": "major",
"amount": 42.1
}
}
],
"entities": [
{ "type": "acquirer", "id": "b-7610201", "bin": "7610201", "name": "Example Acquirer", "country_code": "PRT" },
{ "type": "issuer", "id": "b-450901", "bin": "450901", "name": "Example Issuer", "country_code": "PRT" }
]
}
dispute (pre-arbitration)
Dispute events are typically less complete than transaction events but follow the same event/entities structure. Link them to the original transaction using parent_event_id and/or lifecycle_rrn.
Dispute events can represent different sources:
tc40: Visa fraud notification files (TC40), used to report confirmed or suspected fraud.safe: Mastercard fraud notification files (SAFE), used to report confirmed or suspected fraud.chargeback: Chargeback lifecycle events (1st/2nd chargeback, pre-arbitration, reversals, information supplied).
event.details.dispute_reason_code accepts reason codes from both Visa and Mastercard. Use the scheme-native format — Visa codes use dot notation (e.g. 10.4, 13.1) while Mastercard codes are numeric strings (e.g. 4853, 4863).
When migrating from the legacy v1/transactions/dispute-events payload, you can translate common fields like this:
transactionid→event.parent_event_idmerchant→event.receiver.refs.merchant_business(or include amerchant_businessentity inentities; usemerchant_accountwhen sending the MID / registered MCCs)chargebackid→event.details.dispute_idchargebackreason→event.details.dispute_reason_codereporttype(e.g.1st chargeback,pre-arbitration) →event.details.dispute_stagestatusid→event.details.dispute_statusfraudimportdate→event.details.import_timestamp(timestamp when the dispute/notification was imported)fraudreason→event.details.fraud_reason
{
"events": [
{
"type": "dispute",
"id": "dsp-evt-001",
"timestamp": 1770100000,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"sender": { "refs": { "issuer": "b-450901" } },
"receiver": { "refs": { "merchant_business": "hotel-bristol" } },
"refs": { "acquirer": "b-7610201" },
"details": {
"dispute_type": "chargeback",
"dispute_stage": "pre_arbitration",
"dispute_status": "pending",
"dispute_id": "1003125",
"dispute_reason_code": "10.4",
"fraud_reason": "Suspicious account number used",
"import_timestamp": 1602868410.143105,
"currency": "EUR",
"currency_unit": "major",
"amount": 42.1
}
}
],
"entities": [
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
},
{ "type": "issuer", "id": "b-450901", "bin": "450901", "name": "Example Issuer", "country_code": "PRT" },
{ "type": "acquirer", "id": "b-7610201", "bin": "7610201", "name": "Example Acquirer", "country_code": "PRT" }
]
}
wallet_withdrawal (wallet to bank)
A merchant (or other account holder) withdraws funds from their wallet to their bank account. Note that it is necessary to link the wallet to the merchant, to use this information for MIF/AML monitoring.
{
"events": [
{
"type": "wallet_withdrawal",
"id": "ww-001",
"timestamp": 1770005000,
"sender": {
"refs": {
"wallet": "wallet-893067473928",
"merchant_business": "hotel-bristol"
}
},
"receiver": {
"refs": {
"bank_account": "NL51INGB40123456789876"
}
},
"details": {
"currency": "EUR",
"currency_unit": "major",
"amount": 1500.00
}
}
],
"entities": [
{
"type": "wallet",
"id": "wallet-893067473928",
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "bank_account",
"id": "NL51INGB40123456789876",
"bank_account_number": "NL51INGB40123456789876",
"name": "ING Bank N.V."
}
]
}
wallet_deposit (bank to wallet)
A merchant (or other account holder) deposits funds from their bank account into their wallet. Note that it is necessary to link the wallet to the merchant, to use this information for MIF/AML monitoring.
{
"events": [
{
"type": "wallet_deposit",
"id": "wd-001",
"timestamp": 1770005100,
"sender": {
"refs": {
"bank_account": "NL51INGB40123456789876"
}
},
"receiver": {
"refs": {
"wallet": "wallet-893067473928",
"merchant_business": "hotel-bristol"
}
},
"details": {
"currency": "EUR",
"currency_unit": "major",
"amount": 500.00
}
}
],
"entities": [
{
"type": "bank_account",
"id": "NL51INGB40123456789876",
"bank_account_number": "NL51INGB40123456789876",
"name": "ING Bank N.V."
},
{
"type": "wallet",
"id": "wallet-893067473928",
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
}
]
}
card_network_transaction (payout — OCT)
A merchant (or other wallet holder) transfers funds directly to a card via an Original Credit Transaction (OCT). Uses MTI 0200 with transaction_type: "oct". Note that it is necessary to link the wallet to the merchant, to use this information for MIF/AML monitoring.
{
"events": [
{
"type": "card_network_transaction",
"id": "po-001",
"timestamp": 1770005200,
"sender": {
"refs": {
"wallet": "wallet-893067473928",
"merchant_business": "hotel-bristol"
}
},
"receiver": {
"refs": {
"card": "c67876543"
}
},
"details": {
"mti": "0200",
"transaction_type": "oct",
"currency": "EUR",
"currency_unit": "major",
"amount": 250.00
}
}
],
"entities": [
{
"type": "wallet",
"id": "wallet-893067473928",
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "card",
"id": "c67876543",
"card_token": "67876543",
"last_four_digits": "9876",
"expiry_date": "1127",
"refs": { "issuer": "b-450901", "cardholder": "c4rdh0ld" }
},
{ "type": "issuer", "id": "b-450901", "bin": "450901", "name": "Example Issuer", "country_code": "PRT" },
{ "type": "cardholder", "id": "c4rdh0ld", "name": "Ferdinand Solara", "email": "f.solara@example.com" }
]
}
bank_transfer (bank account to bank account)
Use this for transfers between bank accounts. The direction is expressed through sender and receiver. Include refs.merchant_business on the bank account entity that belongs to the merchant.
{
"events": [
{
"type": "bank_transfer",
"id": "bt-001",
"timestamp": 1770005300,
"sender": {
"refs": {
"bank_account": "DE89370400440532013000"
}
},
"receiver": {
"refs": {
"bank_account": "NL51INGB40123456789876",
"merchant_business": "hotel-bristol"
}
},
"details": {
"currency": "EUR",
"currency_unit": "major",
"amount": 3000.00
}
}
],
"entities": [
{
"type": "bank_account",
"id": "DE89370400440532013000",
"bank_account_number": "DE89370400440532013000",
"name": "Deutsche Bank AG"
},
{
"type": "bank_account",
"id": "NL51INGB40123456789876",
"bank_account_number": "NL51INGB40123456789876",
"name": "ING Bank N.V.",
"refs": { "merchant_business": "hotel-bristol" }
},
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
}
]
}
Other events
All event types supported by the scoring endpoint, are also supported for enrichment. See Financial Events Screening — Event types.
Entity types
Supported entity types are the same as the scoring endpoint. See Financial Events Screening — Entity types.
Entities-only (pre-registration)
Send entity snapshots or updates without any financial events by providing an empty events array.
Use this on registration and whenever entity attributes change. Subsequent screening or enrichment
calls can then reference these entities by id without re-sending full entity payloads.
Keep at least 2 seconds between an entity update and an event that references it (e.g. between merchant registration and the first transaction).
{
"events": [],
"entities": [
{
"type": "card",
"id": "c67876543",
"card_token": "67876543",
"last_four_digits": "9876",
"expiry_date": "1127",
"refs": { "issuer": "b-450901", "cardholder": "c4rdh0ld" }
},
{ "type": "cardholder", "id": "c4rdh0ld", "name": "Ferdinand Solara", "email": "f.solara@example.com" },
{
"type": "merchant_business",
"id": "hotel-bristol",
"name": "Hotel Bristol B.V.",
"country_code": "NLD"
},
{
"type": "merchant_account",
"id": "hotel-bristol-front",
"mid": "8842101000123",
"mccs": ["7011"],
"refs": { "merchant_business": "hotel-bristol" }
},
{ "type": "issuer", "id": "b-450901", "bin": "450901", "name": "Example Issuer", "country_code": "PRT" }
]
}
Request parameters: Field Reference Table
| Field | Data Type | Payment Fraud (Issuer) | Payment Fraud (Acquirer / Processor) | Merchant Fraud / AML | Description |
|---|---|---|---|---|---|
| events[].type | String | Required | Required | Required | Event type to enrich. Examples: card_network_transaction, refund, void, capture, reversal, chargeback, dispute, wallet_withdrawal, wallet_deposit, payout, bank_transfer, wallet_transfer. |
| events[].id | String | Required | Required | Required | Unique identifier of the event. |
| events[].timestamp | Double | Required | Required | Required | UTC time of the event as a Unix timestamp (seconds; may be fractional). |
| events[].parent_event_id | String | Optional | Optional | Optional | Direct parent transaction/event ID for chained events. |
| events[].lifecycle_rrn | String | Optional | Optional | Optional | Lifecycle identifier shared across chained transactions (RRN). |
| events[].details.mti | String | Optional | Optional | Optional | ISO 8583 MTI when applicable. |
| events[].details.transaction_type | String | Optional | Optional | Optional | ISO 8583 DE003 transaction type when applicable. |
| events[].details.currency | String | Optional | Optional | Optional | 3-digit ISO currency code. |
| events[].details.currency_unit | String | Optional | Optional | Optional | major or minor. |
| events[].details.amount | Double | Optional | Optional | Optional | Amount in the currency and unit provided. |
| events[].details.response_code | String | Optional | Optional | Optional | Authorization or financial response code from the issuer/network (for example ISO 8583 DE039). Typical on 0110 / post-auth events. |
| events[].details.eci | String | Optional | Optional | Optional | Electronic Commerce Indicator from 3-D Secure or equivalent authentication. |
| events[].details.avs_result | String | Optional | Optional | Optional | Address Verification System (AVS) result code. |
| events[].details.cvv_result | String | Optional | Optional | Optional | Card verification value (CVV/CVC) check result. |
| events[].details.cavv_result | String | Optional | Optional | Optional | Cardholder Authentication Verification Value (CAVV) or equivalent authentication result. |
| events[].details.sister_transaction_id | String | Optional | Optional | Optional | ID of the counterpart record for the same transfer, used when a single transfer is represented by two records (e.g. one per side). When migrating from v1/transactions/inter-account-transfers, map receiver_transactionid here. |
| events[].details.pos_entry_mode | String | Optional | Optional | Optional | ISO POS entry mode when applicable. |
| events[].details.pos_condition_code | String | Optional | Optional | Optional | ISO POS condition code when applicable. |
| events[].details.mcc | String | Optional | Optional | Optional | Merchant category code as processed on this event/transaction. Distinct from registered MCCs on a merchant_account or sub_merchant entity. |
| events[].sender.refs.card | String | Optional | Optional | Optional | Reference to a card entity when applicable. |
| events[].sender.refs.wallet | String | Optional | Optional | Optional | Reference to a wallet entity when the wallet is the sender (e.g., wallet withdrawal, payout events). |
| events[].sender.refs.merchant_business | String | Optional | Optional | Optional | Reference to a merchant_business entity when the merchant is the initiating party (e.g., wallet withdrawal, payout, chargeback lifecycle). Should be included alongside wallet reference for wallet-based events. |
| events[].sender.refs.bank_account | String | n.a. | n.a. | Optional | Reference to a bank_account entity when the bank account is the sender (e.g., wallet deposit events). |
| events[].receiver.refs.wallet | String | Optional | Optional | Optional | Reference to a wallet entity when the wallet is the receiver (e.g., wallet deposit events). |
| events[].receiver.refs.merchant_business | String | Optional | Optional | Optional | Reference to a merchant_business entity when the merchant is the receiving party. Should be included alongside wallet reference for wallet deposit events. |
| events[].receiver.refs.bank_account | String | n.a. | n.a. | Optional | Reference to a bank_account entity when the bank account is the receiver (e.g., wallet withdrawal events). |
| events[].receiver.refs.acceptor | String | Optional | Optional | Optional | Reference to an acceptor entity when applicable. |
| events[].refs.gateway | String | Optional | Optional | Optional | Reference to the payment gateway (intermediary). |
| events[].refs.acquirer | String | Optional | Optional | Optional | Reference to the acquirer (intermediary). |
| entities[] | Array | Optional | Optional | Optional | Top-level array of entity objects. Entities are correlated to events through refs, not by nesting. |
| entities[].type | String | Optional | Optional | Optional | Entity type, e.g. merchant_business, merchant_account, sub_merchant, card, wallet, acquirer, payfac, etc. |
| entities[].id | String | Optional | Optional | Optional | Stable entity identifier. |
| entities[].name | String | Optional | Optional | Optional | Entity name when available. |
| entities[].country_code | String | Optional | Optional | Optional | Entity country code when available. |
| entities[].limitprofile | String | Optional | Optional | Optional | Merchant limit profile (can be partial update; null to clear). |
| entities[].mccs | Array | Optional | Optional | Optional | Registered / assigned MCC list on a merchant_account or sub_merchant entity. Do not send on merchant_business; use event.details.mcc for the as-processed code on a transaction. |
| entities[].mid | String | Optional | Optional | Optional | Processor- or acquirer-assigned Merchant ID on a merchant_account entity. |
| entities[].terminal_type | String | Optional | Optional | Optional | Cardholder-Activated Terminal (CAT) type on an acceptor entity (e.g. cat1, cat2, cat6, cat9). |
| entities[].type=bank_account | String | n.a. | n.a. | Optional | A bank account entity. Used as sender or receiver in wallet withdrawal and deposit events. The entity id is a stable identifier for the account. |
| entities[].iban | String | n.a. | n.a. | Optional | IBAN (or equivalent national account number) for bank_account entities. |
| entities[].refs.merchant_business | String | n.a. | n.a. | Optional | Reference from another entity to a merchant_business (e.g. wallet or bank account belonging to the merchant). |
Response Parameters
| Status Code | Status Message | Description | Schema |
|---|---|---|---|
200 | OK | Standard response for successful HTTP requests. | 200 OK - Financial Events Enrichment response |
4xx, 500, 501, 502, 503, 504 | error | Various error messages for unsuccessful HTTP requests. | Problem response |
Code Samples
- Shell
- Python
- Java
- Perl
- PHP
curl -X POST 'https://api.fraudio.com/v2/financial-events/enrichment' \
-H 'Content-Type: application/json' \
-H "authorization: Bearer $ACCESS_TOKEN" \
--data-raw '{
"events": [
{
"type": "card_network_transaction",
"id": "auth-resp-001",
"timestamp": 1770004000.123,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"sender": { "refs": { "card": "c67876543" } },
"receiver": { "refs": { "merchant_business": "hotel-bristol" } },
"refs": { "acquirer": "b-7610201", "gateway": "molley" },
"details": { "mti": "0110", "transaction_type": "purchase", "response_code": "00", "eci": "02", "avs_result": "Y", "cvv_result": "M", "cavv_result": "2" }
}
],
"entities": []
}'
import json
import os
import requests
financial_events_enrichment_endpoint = "https://api.fraudio.com/v2/financial-events/enrichment"
access_token = os.environ["ACCESS_TOKEN"]
transaction = {
"events": [
{
"type": "card_network_transaction",
"id": "auth-resp-001",
"timestamp": 1770004000.123,
"lifecycle_rrn": "123456789012",
"parent_event_id": "a12c34def",
"sender": {"refs": {"card": "c67876543"}},
"receiver": {"refs": {"merchant_business": "hotel-bristol"}},
"refs": {"acquirer": "b-7610201", "gateway": "molley"},
"details": {"mti": "0110", "transaction_type": "purchase", "response_code": "00", "eci": "02", "avs_result": "Y", "cvv_result": "M", "cavv_result": "2"},
}
],
"entities": [],
}
headers = {
"authorization": f"Bearer {access_token}",
"Content-Type": "application/json",
}
r = requests.post(financial_events_enrichment_endpoint, headers=headers, data=json.dumps(transaction))
print(r.json())
package com.fraudio;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class FinancialEventsEnrichment {
public static void main(String[] args) throws IOException, URISyntaxException, InterruptedException {
String financialEventsEnrichmentEndpoint = "https://api.fraudio.com/v2/financial-events/enrichment";
String accessToken = System.getenv("ACCESS_TOKEN");
String transaction = "{\"events\":[{\"type\":\"card_network_transaction\",\"id\":\"auth-resp-001\",\"timestamp\":1770004000.123,\"parent_event_id\":\"a12c34def\",\"lifecycle_rrn\":\"123456789012\",\"sender\":{\"refs\":{\"card\":\"c67876543\"}},\"receiver\":{\"refs\":{\"merchant_business\":\"hotel-bristol\"}},\"refs\":{\"acquirer\":\"b-7610201\",\"gateway\":\"molley\"},\"details\":{\"mti\":\"0110\",\"transaction_type\":\"purchase\",\"response_code\":\"00\",\"eci\":\"02\",\"avs_result\":\"Y\",\"cvv_result\":\"M\",\"cavv_result\":\"2\"}}],\"entities\":[]}";
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(financialEventsEnrichmentEndpoint))
.header("authorization", String.format("Bearer %s", accessToken))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(transaction))
.build();
HttpClient client = HttpClient.newHttpClient();
HttpResponse < String > response = client.send(request, HttpResponse.BodyHandlers.ofString());
String responseBody = response.body();
System.out.println("Response Code: " + response.statusCode() + "\nResponse Body: " + responseBody);
}
}
use LWP::UserAgent;
use HTTP::Request::Common;
my $financial_events_enrichment_endpoint = 'https://api.fraudio.com/v2/financial-events/enrichment';
my $access_token = $ENV{"ACCESS_TOKEN"};
my $transaction = '{"events":[{"type":"card_network_transaction","id":"auth-resp-001","timestamp":1770004000.123,"parent_event_id":"a12c34def","lifecycle_rrn":"123456789012","sender":{"refs": {"card":"c67876543"}},"receiver":{"refs": {"merchant_business":"hotel-bristol"}},"refs": {"acquirer":"b-7610201","gateway":"molley"},"details":{"mti":"0110","transaction_type":"purchase","response_code":"00","eci":"02","avs_result":"Y","cvv_result":"M","cavv_result":"2"}}],"entities":[]}';
my $req = HTTP::Request -> new(POST => $financial_events_enrichment_endpoint);
$req -> header('authorization' => "Bearer $access_token", "Content-Type" => "application/json");
$req -> content($transaction);
my $ua = LWP::UserAgent -> new;
my $resp = $ua -> request($req);
my $message = $resp -> decoded_content;
print "Received reply: $message";
<?php
$financial_events_enrichment_endpoint = "https://api.fraudio.com/v2/financial-events/enrichment";
$access_token = $_SERVER["ACCESS_TOKEN"];
$transaction =
"{\"events\":[{\"type\":\"card_network_transaction\",\"id\":\"auth-resp-001\",\"timestamp\":1770004000.123,\"parent_event_id\":\"a12c34def\",\"lifecycle_rrn\":\"123456789012\",\"sender\":{\"refs\":{\"card\":\"c67876543\"}},\"receiver\":{\"refs\":{\"merchant_business\":\"hotel-bristol\"}},\"refs\":{\"acquirer\":\"b-7610201\",\"gateway\":\"molley\"},\"details\":{\"mti\":\"0110\",\"transaction_type\":\"purchase\",\"response_code\":\"00\",\"eci\":\"02\",\"avs_result\":\"Y\",\"cvv_result\":\"M\",\"cavv_result\":\"2\"}}],\"entities\":[]}";
$options = [
"http" => [
"header" =>
"authorization: Bearer $access_token" .
"Content-Type: application/json",
"method" => "POST",
"content" => $transaction,
],
];
$context = stream_context_create($options);
$result = file_get_contents($financial_events_enrichment_endpoint, false, $context);
print $result;
?>