Inter Account Transfers
POST https://api.fraudio.com/v1/transactions/inter-account-transfers
Endpoint Overview​
Our Inter Account Transfers endpoint collects wallet transfers between-, in- and out of merchants' wallet accounts. These types of transactions provide us with more complete profiles of merchants which improves the quality of the Merchant Fraud and/or the AML product for you.
Account Bank Transfers are only applicable under the following circumstances:
- you are using the Merchant Fraud product and/or the AML product
- you have visibility over merchants' wallet accounts
- the wallet transfers are initiated by the merchants (when the transfers are all scheduled and automated by default then there is no need to send wallet transfers to this endpoint)
The inter bank transfers can be sent either individually or in batch.
Request Parameters​
Request parameters in JSON format​
{"data":
[
{
"transactionid": "00000001",
"timestamp": 1646063615,
"transactiontype": "incoming_wallet_transfer",
"sistertransactionid": "00000001",
"merchant": "CFBE1FC6-3069-B390-4287-F0D653ACC3CC",
"walletid": "783067473928",
"originalamount": 1.1,
"currency": "978"
}
]
}
Request parameters: Field Reference Table​
Field | Data Type | Payment Fraud (Issuer) | Payment Fraud (Acquirer / Processor) | Merchant Fraud / AML | Description |
---|---|---|---|---|---|
transactionid | String | n.a. | n.a. | Important | The unique identifier of the transaction event. Every transaction event, so auth , capture , auth_capture , etc., has its own unique ID. |
timestamp | Double | n.a. | n.a. | Important | The UTC time at which the transaction was made. When sending events in realtime, this will usually be 'now'. Only Unix Timestamps are accepted. |
transactiontype | String | n.a. | n.a. | Important | The type of transaction event. Possible values are: auth , capture , auth_capture , refund , void , top_up , incremental_auth , atm or reversal . Details about each possible value below.auth : An authorization is used to reserve funds on the customer's card without yet deducting them.capture : A capture is used to immediately deduct authorised funds (up to the amount auth'd) from a customer's card. A capture should always be linked to at least one authorization via the parenttransactionid .auth_capture : A simultaneous combination of auth and capture in the same transaction, for when there is no need to perform these operations separately.refund : A refund transaction returns credit to a customer's payment method.void : A void transaction is the explicit discarding of authorization of funds.top_up : Increases the available credit of a credit card.incremental_auth : A transaction that increases the authorised amount of a confirmed auth transaction that has not yet been captured.atm : An automated teller machine (atm) transaction.reversal : A reversal annuls the transaction and re-credits the customer's payment method. This happens directly after the transaction has taken place but before the funds have been fully processed.none : Use only when the transactiontype is unknown. |
originalamount | Double | n.a. | n.a. | Important | Amount/value of the transaction in the original currency. Must be a nonnegative value. |
currency | String | n.a. | n.a. | Important | Numerical currency code of the currency used for the transaction (ISO 4217). |
merchant | String | n.a. | n.a. | Important | The name or identifier of the merchant. This field uniquely identifies the merchant, and should not be confused with the MID. Any name or unique identifier is accepted. |
sistertransactionid | String | n.a. | n.a. | Supplementary | If this is an incoming transfer, sistertransactionid is the transactionid for the corresponding outgoing transfer and vice versa. |
walletid | String | n.a. | n.a. | Supplementary | External ID of the merchant wallet. |
Response Parameters​
200 OK Response
{
"created": 2,
"deleted": 0,
"errors": 2,
"ignored": 5,
"received": 0,
"updated": 0
}
Status Code | Status Message | Description | Schema |
---|---|---|---|
200 | OK | Standard response for successful HTTP requests. | 200 OK - Post-auth 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/v1/transactions/inter-account-transfers \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
--data-raw '{"data":[{"sender_transactionid": "sender_transactionid","receiver_transactionid": "receiver_transactionid","transactionid":"00000001","timestamp":1646063615,"transactiontype":"incoming_wallet_transfer","sistertransactionid":"00000001","merchant":"CFBE1FC6-3069-B390-4287-F0D653ACC3CC","walletid":"783067473928","originalamount":1.1,"currency":"978"}]}'
import json
import os
import requests
inter_account_transfers_endpoint = 'https://api.fraudio.com/v1/transactions/inter-account-transfers'
access_token = os.environ['ACCESS_TOKEN']
headers = {'Authorization': f'Bearer {access_token}', 'Content-Type': 'application/json'}
inter_account_transfer = {"data":[{"sender_transactionid": "sender_transactionid","receiver_transactionid": "receiver_transactionid","transactionid":"00000001","timestamp":1646063615,"transactiontype":"incoming_wallet_transfer","sistertransactionid":"00000001","merchant":"CFBE1FC6-3069-B390-4287-F0D653ACC3CC","walletid":"783067473928","originalamount":1.1,"currency":"978"}]}
r = requests.post(inter_account_transfers_endpoint, data=json.dumps(inter_account_transfer), headers=headers)
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 InterAccountTransfers
{
public static void main(String[] args) throws IOException, URISyntaxException, InterruptedException
{
String interAccountTransfersEndpoint = "https://api.fraudio.com/v1/transactions/inter-account-transfers";
String accessToken = System.getenv("ACCESS_TOKEN");
String interAccountTransfer = "{\"data\":[{\"sender_transactionid\": \"sender_transactionid\",\"receiver_transactionid\": \"receiver_transactionid\",\"transactionid\":\"00000001\",\"timestamp\":1646063615,\"transactiontype\":\"incoming_wallet_transfer\",\"sistertransactionid\":\"00000001\",\"merchant\":\"CFBE1FC6-3069-B390-4287-F0D653ACC3CC\",\"walletid\":\"783067473928\",\"originalamount\":1.1,\"currency\":\"978\"}]}";
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(interAccountTransfersEndpoint))
.header("Authorization", String.format("Bearer %s", accessToken))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(interAccountTransfer))
.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 $inter_account_transfers_endpoint = 'https://api.fraudio.com/v1/transactions/inter-account-transfers';
my $access_token = $ENV{"ACCESS_TOKEN"};
my $inter_account_transfer = '{"data":[{"sender_transactionid": "sender_transactionid","receiver_transactionid": "receiver_transactionid","transactionid":"00000001","timestamp":1646063615,"transactiontype":"incoming_wallet_transfer","sistertransactionid":"00000001","merchant":"CFBE1FC6-3069-B390-4287-F0D653ACC3CC","walletid":"783067473928","originalamount":1.1,"currency":"978"}]}';
my $req = HTTP::Request -> new(POST => $inter_account_transfers_endpoint);
$req -> header('Authorization' => "Bearer $access_token", "Content-Type" => "application/json");
$req -> content($inter_account_transfer);
my $ua = LWP::UserAgent -> new;
my $resp = $ua -> request($req);
my $message = $resp -> decoded_content;
print "Received reply: $message";
<?php
$inter_account_transfers_endpoint = 'https://api.fraudio.com/v1/transactions/inter-account-transfers';
$access_token = $_SERVER["ACCESS_TOKEN"];
$inter_account_transfer = '{"data":[{"sender_transactionid": "sender_transactionid","receiver_transactionid": "receiver_transactionid","transactionid":"00000001","timestamp":1646063615,"transactiontype":"incoming_wallet_transfer","sistertransactionid":"00000001","merchant":"CFBE1FC6-3069-B390-4287-F0D653ACC3CC","walletid":"783067473928","originalamount":1.1,"currency":"978"}]}';
$options = [
'http' => [
'header' => "Authorization: Bearer $access_token" .
"Content-Type: application/json",
'method' => 'POST',
'content' => $inter_account_transfer
]
];
$context = stream_context_create($options);
$result = file_get_contents($inter_account_transfers_endpoint, false, $context);
print $result;
?>