Getting Started
Ledger Balances
Transactions
Identities
Record Transaction
POST
/
transactions
curl --request POST \
--url http://localhost:5001/transactions \
--header 'Content-Type: application/json' \
--data '{
"amount": 74000,
"reference": "reference",
"sources": [
{
"identifier": "bln_f2073f6b-905a-4e3e-b5a2-8d1b3dc2fb7f",
"distribution": "10%",
"narration": "Monthly contribution"
},
{
"identifier": "bln_64c50fb5-32d5-4f78-9f4a-e8b01aaf025d",
"distribution": "20000",
"narration": "Monthly contribution"
},
{
"identifier": "bln_7d98dfe9-5c3e-4c9b-b96a-65f6d9f7b89b",
"distribution": "left",
"narration": "Monthly contribution"
}
],
"destinations": [
{
"identifier": "bln_f2073f6b-905a-4e3e-b5a2-8d1b3dc2fb7f",
"distribution": "20%",
"narration": "For groceries"
},
{
"identifier": "bln_64c50fb5-32d5-4f78-9f4a-e8b01aaf025d",
"distribution": "10000",
"narration": "For electricity bills"
},
{
"identifier": "bln_7d98dfe9-5c3e-4c9b-b96a-65f6d9f7b89b",
"distribution": "left",
"narration": "For savings"
}
],
"currency": "NGN",
"source": "@inflighttest6",
"destination": "@inflighttest7",
"allow_over_draft": true,
"inflight": true
}'
{
"amount": 74000,
"id": "txn_d0440bb5-e2c2-4937-bb4c-e91b50b7df22",
"allow_overdraft": true,
"infligt": true,
"source": "@inflighttest6",
"destination": "@inflighttest7",
"reference": "reference",
"currency": "NGN",
"description": "",
"status": "INFLIGHT",
"hash": "89ba8954cd8e9215feed757be7cebe0a3ec9440be22139a5ba6a0499a52f4593",
"group_ids": null,
"created_at": "0001-01-01T00:00:00Z",
"scheduled_for": "0001-01-01T00:00:00Z"
}
Body
application/json
Response
201 - application/json; charset=utf-8
Created
Was this page helpful?
curl --request POST \
--url http://localhost:5001/transactions \
--header 'Content-Type: application/json' \
--data '{
"amount": 74000,
"reference": "reference",
"sources": [
{
"identifier": "bln_f2073f6b-905a-4e3e-b5a2-8d1b3dc2fb7f",
"distribution": "10%",
"narration": "Monthly contribution"
},
{
"identifier": "bln_64c50fb5-32d5-4f78-9f4a-e8b01aaf025d",
"distribution": "20000",
"narration": "Monthly contribution"
},
{
"identifier": "bln_7d98dfe9-5c3e-4c9b-b96a-65f6d9f7b89b",
"distribution": "left",
"narration": "Monthly contribution"
}
],
"destinations": [
{
"identifier": "bln_f2073f6b-905a-4e3e-b5a2-8d1b3dc2fb7f",
"distribution": "20%",
"narration": "For groceries"
},
{
"identifier": "bln_64c50fb5-32d5-4f78-9f4a-e8b01aaf025d",
"distribution": "10000",
"narration": "For electricity bills"
},
{
"identifier": "bln_7d98dfe9-5c3e-4c9b-b96a-65f6d9f7b89b",
"distribution": "left",
"narration": "For savings"
}
],
"currency": "NGN",
"source": "@inflighttest6",
"destination": "@inflighttest7",
"allow_over_draft": true,
"inflight": true
}'
{
"amount": 74000,
"id": "txn_d0440bb5-e2c2-4937-bb4c-e91b50b7df22",
"allow_overdraft": true,
"infligt": true,
"source": "@inflighttest6",
"destination": "@inflighttest7",
"reference": "reference",
"currency": "NGN",
"description": "",
"status": "INFLIGHT",
"hash": "89ba8954cd8e9215feed757be7cebe0a3ec9440be22139a5ba6a0499a52f4593",
"group_ids": null,
"created_at": "0001-01-01T00:00:00Z",
"scheduled_for": "0001-01-01T00:00:00Z"
}