Create a transaction
curl --request POST \
--url http://localhost/api/api/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_currency_id": "<string>",
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"populate_buckets": [],
"cp_a_id": "<string>",
"cp_b_id": "<string>",
"alt_currency_id": "<string>",
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}
'import requests
url = "http://localhost/api/api/transactions"
payload = {
"transaction_currency_id": "<string>",
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"populate_buckets": [],
"cp_a_id": "<string>",
"cp_b_id": "<string>",
"alt_currency_id": "<string>",
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transaction_currency_id: '<string>',
client_transaction_id: '<string>',
transaction_type: '<string>',
transaction_timestamp: '2023-11-07T05:31:56Z',
amount: 123,
populate_buckets: [],
cp_a_id: '<string>',
cp_b_id: '<string>',
alt_currency_id: '<string>',
cp_a_country: '<string>',
cp_b_country: '<string>',
cp_a_bank: '<string>',
cp_b_bank: '<string>',
amount_in_alt_currency: 123,
payment_mode: '<string>',
purpose_of_transfer: '<string>',
notes: '<string>'
})
};
fetch('http://localhost/api/api/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/api/api/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transaction_currency_id' => '<string>',
'client_transaction_id' => '<string>',
'transaction_type' => '<string>',
'transaction_timestamp' => '2023-11-07T05:31:56Z',
'amount' => 123,
'populate_buckets' => [
],
'cp_a_id' => '<string>',
'cp_b_id' => '<string>',
'alt_currency_id' => '<string>',
'cp_a_country' => '<string>',
'cp_b_country' => '<string>',
'cp_a_bank' => '<string>',
'cp_b_bank' => '<string>',
'amount_in_alt_currency' => 123,
'payment_mode' => '<string>',
'purpose_of_transfer' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/api/api/transactions"
payload := strings.NewReader("{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/api/api/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/api/transactions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"bucket_loading_status": "Transaction loaded into [ORDINARY] and requested buckets",
"cp_a": {
"client_subject_id": "<string>",
"subject_name": "<string>",
"unique_identification_number": "<string>",
"account_holder": true,
"address": "<string>",
"customer_segment": "<string>",
"date_and_place_of_birth": "<string>",
"country_of_birth_or_incorporation": "<string>",
"nationality": "<string>",
"account_type": "<string>",
"account_type_ii": "<string>",
"account_opening_date": "<string>",
"account_opening_date_ii": "<string>",
"customer_aml_risk_rating": "<string>",
"customer_account": "<string>",
"customer_account_ii": "<string>",
"customer_opening_date": "<string>",
"source_of_funds": "<string>",
"average_monthly_income": "<string>",
"cif_status": "<string>",
"occupation": "<string>",
"industry": "<string>",
"purpose_of_account": "<string>",
"contact_number": "<string>",
"email_address": "<string>",
"risk_assessment_score": "<string>",
"created_by": 123,
"modified_by": 123
},
"cp_b": {
"client_subject_id": "<string>",
"subject_name": "<string>",
"unique_identification_number": "<string>",
"account_holder": true,
"address": "<string>",
"customer_segment": "<string>",
"date_and_place_of_birth": "<string>",
"country_of_birth_or_incorporation": "<string>",
"nationality": "<string>",
"account_type": "<string>",
"account_type_ii": "<string>",
"account_opening_date": "<string>",
"account_opening_date_ii": "<string>",
"customer_aml_risk_rating": "<string>",
"customer_account": "<string>",
"customer_account_ii": "<string>",
"customer_opening_date": "<string>",
"source_of_funds": "<string>",
"average_monthly_income": "<string>",
"cif_status": "<string>",
"occupation": "<string>",
"industry": "<string>",
"purpose_of_account": "<string>",
"contact_number": "<string>",
"email_address": "<string>",
"risk_assessment_score": "<string>",
"created_by": 123,
"modified_by": 123
},
"transaction_currency": {
"currency": "<string>",
"alphabetic_code": "<string>",
"active_indicator": true,
"numeric_code": "<string>"
},
"alt_currency": {
"currency": "<string>",
"alphabetic_code": "<string>",
"active_indicator": true,
"numeric_code": "<string>"
},
"modified_by": {
"id": 123
},
"created_by": {
"id": 123
},
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}Transactions
Create a transaction
POST
/
api
/
transactions
Create a transaction
curl --request POST \
--url http://localhost/api/api/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_currency_id": "<string>",
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"populate_buckets": [],
"cp_a_id": "<string>",
"cp_b_id": "<string>",
"alt_currency_id": "<string>",
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}
'import requests
url = "http://localhost/api/api/transactions"
payload = {
"transaction_currency_id": "<string>",
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"populate_buckets": [],
"cp_a_id": "<string>",
"cp_b_id": "<string>",
"alt_currency_id": "<string>",
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transaction_currency_id: '<string>',
client_transaction_id: '<string>',
transaction_type: '<string>',
transaction_timestamp: '2023-11-07T05:31:56Z',
amount: 123,
populate_buckets: [],
cp_a_id: '<string>',
cp_b_id: '<string>',
alt_currency_id: '<string>',
cp_a_country: '<string>',
cp_b_country: '<string>',
cp_a_bank: '<string>',
cp_b_bank: '<string>',
amount_in_alt_currency: 123,
payment_mode: '<string>',
purpose_of_transfer: '<string>',
notes: '<string>'
})
};
fetch('http://localhost/api/api/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/api/api/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transaction_currency_id' => '<string>',
'client_transaction_id' => '<string>',
'transaction_type' => '<string>',
'transaction_timestamp' => '2023-11-07T05:31:56Z',
'amount' => 123,
'populate_buckets' => [
],
'cp_a_id' => '<string>',
'cp_b_id' => '<string>',
'alt_currency_id' => '<string>',
'cp_a_country' => '<string>',
'cp_b_country' => '<string>',
'cp_a_bank' => '<string>',
'cp_b_bank' => '<string>',
'amount_in_alt_currency' => 123,
'payment_mode' => '<string>',
'purpose_of_transfer' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/api/api/transactions"
payload := strings.NewReader("{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/api/api/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/api/transactions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_currency_id\": \"<string>\",\n \"client_transaction_id\": \"<string>\",\n \"transaction_type\": \"<string>\",\n \"transaction_timestamp\": \"2023-11-07T05:31:56Z\",\n \"amount\": 123,\n \"populate_buckets\": [],\n \"cp_a_id\": \"<string>\",\n \"cp_b_id\": \"<string>\",\n \"alt_currency_id\": \"<string>\",\n \"cp_a_country\": \"<string>\",\n \"cp_b_country\": \"<string>\",\n \"cp_a_bank\": \"<string>\",\n \"cp_b_bank\": \"<string>\",\n \"amount_in_alt_currency\": 123,\n \"payment_mode\": \"<string>\",\n \"purpose_of_transfer\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"bucket_loading_status": "Transaction loaded into [ORDINARY] and requested buckets",
"cp_a": {
"client_subject_id": "<string>",
"subject_name": "<string>",
"unique_identification_number": "<string>",
"account_holder": true,
"address": "<string>",
"customer_segment": "<string>",
"date_and_place_of_birth": "<string>",
"country_of_birth_or_incorporation": "<string>",
"nationality": "<string>",
"account_type": "<string>",
"account_type_ii": "<string>",
"account_opening_date": "<string>",
"account_opening_date_ii": "<string>",
"customer_aml_risk_rating": "<string>",
"customer_account": "<string>",
"customer_account_ii": "<string>",
"customer_opening_date": "<string>",
"source_of_funds": "<string>",
"average_monthly_income": "<string>",
"cif_status": "<string>",
"occupation": "<string>",
"industry": "<string>",
"purpose_of_account": "<string>",
"contact_number": "<string>",
"email_address": "<string>",
"risk_assessment_score": "<string>",
"created_by": 123,
"modified_by": 123
},
"cp_b": {
"client_subject_id": "<string>",
"subject_name": "<string>",
"unique_identification_number": "<string>",
"account_holder": true,
"address": "<string>",
"customer_segment": "<string>",
"date_and_place_of_birth": "<string>",
"country_of_birth_or_incorporation": "<string>",
"nationality": "<string>",
"account_type": "<string>",
"account_type_ii": "<string>",
"account_opening_date": "<string>",
"account_opening_date_ii": "<string>",
"customer_aml_risk_rating": "<string>",
"customer_account": "<string>",
"customer_account_ii": "<string>",
"customer_opening_date": "<string>",
"source_of_funds": "<string>",
"average_monthly_income": "<string>",
"cif_status": "<string>",
"occupation": "<string>",
"industry": "<string>",
"purpose_of_account": "<string>",
"contact_number": "<string>",
"email_address": "<string>",
"risk_assessment_score": "<string>",
"created_by": 123,
"modified_by": 123
},
"transaction_currency": {
"currency": "<string>",
"alphabetic_code": "<string>",
"active_indicator": true,
"numeric_code": "<string>"
},
"alt_currency": {
"currency": "<string>",
"alphabetic_code": "<string>",
"active_indicator": true,
"numeric_code": "<string>"
},
"modified_by": {
"id": 123
},
"created_by": {
"id": 123
},
"client_transaction_id": "<string>",
"transaction_type": "<string>",
"transaction_timestamp": "2023-11-07T05:31:56Z",
"amount": 123,
"cp_a_country": "<string>",
"cp_b_country": "<string>",
"cp_a_bank": "<string>",
"cp_b_bank": "<string>",
"amount_in_alt_currency": 123,
"payment_mode": "<string>",
"purpose_of_transfer": "<string>",
"notes": "<string>"
}Authorizations
CustomAuthenticationcookieAuth
JWT token obtained from AWS Cognito or custom authentication service
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
A ModelSerializer that takes an additional fields argument that
controls which fields should be displayed.
Minimum string length:
1Required string length:
1 - 255Required string length:
1 - 255Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Maximum string length:
60Maximum string length:
60Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Response
201 - application/json
A ModelSerializer that takes an additional fields argument that
controls which fields should be displayed.
bucket_loading_status
string
default:Transaction loaded into [ORDINARY] and requested buckets
required
read-only
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
255Maximum string length:
255Maximum string length:
60Maximum string length:
60Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255⌘I
