transfer_account_balance_m Sample Call and Response
This example shows a client transferring the entire balance from one account to another account, based on the transfer_account_balance_m method defined in plsql_m_r73.yml.
This example covers a single balance transfer between two existing accounts, targeting one master plan instance on the destination account. It does not cover partial balance transfers or transfers involving more than two accounts.
Sample call
{
"rest_call": "transfer_account_balance_m",
"output_format": "json",
"client_no": 4471,
"auth_key": "b92f6e1c8a3d4f0e9b7c2a1d5e6f8091",
"source_account_no": 500213,
"target_account_no": 500987,
"target_master_plan_instance_no": 3391027,
"client_receipt_id": "XFER-2026-0724-01"
}
The rest_call and output_format fields form the envelope added by the REST layer; they are not part of the method's own argument list in the yml. This example identifies the source account with source_account_no rather than the alternative source_client_acct_id, and the target account with target_account_no rather than the alternative target_client_acct_id. The target_master_plan_instance_no field is also required and identifies which master plan instance on the target account receives the debit for the source account's balance; this example uses the numeric identifier rather than the alternative target_client_master_plan_instance_id. The optional client_receipt_id gives the client a way to correlate this transfer with its own internal records.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"error_details": [],
"account_balance_transfer_details": [
{
"source_master_plan_instance_no": 3288410,
"destination_master_plan_instance_no": 3391027,
"transaction_id": 660154,
"balance_transfer_amount": 212.45
}
]
}
An error_code of zero with an error_msg of "OK" indicates the transfer succeeded. The account_balance_transfer_details array lists each master plan instance balance that was moved from the source account to the target account; a source account with more than one master plan instance carrying a balance would return one entry per master plan instance. Only one representative entry is shown here. The error_details array is left empty because no errors occurred.