Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
BrickId | Guid | Not used. | ||
Account | Guid | This is the system Id of the account which the withdrawal concerns. | True | 2.20.1 |
Amount | Decimal | This is the amount which should be withdrawn from the account. Negative amount is not allowed. Example: 1000 | True | 2.20.1 |
CashCurrencyCode | String | This the ISO-currency code of the withdrawal. Example: SEK | True | 2.20.1 |
ExternalReference | String | This can be any combination of characters which is used by the sender to link information between BFS and external systems Example: 465465456 (as the transaction ID of the external system) | True | 2.20.1 |
TransferReceiver | Guid | The BFS-id of the TransferReceiver. From version 2.20.1 you will only be able to use transfer receivers of type BankGiro andĀ DirectBankDomestic | True | 2.20.1 |
OrderNo | string | (NOT USED AS INPUT) Used to identify the order that was created from this object when receiving the response from calling the method. | 2.20.1 |
Name | Type | Description | Available from version |
---|---|---|---|
//Create two withdrawals with the CreateDirectBankWithdrawalOrders method var client = new BFSServiceReference.bfsapiSoapClient(); var credentials = new BFSServiceReference.Credentials() { UserName = bfsusername, //Username of administrative user in your instance of BFS Password = bfspassword, //Password of the administrative user in your instance of BFS }; var response = client.CreateDirectBankWithdrawalOrders(new BFSServiceReference.CreateDirectBankWithdrawalOrderRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Entities = new[] { new DirectBankWithdrawalOrder() { Account = Guid("2c9ca11e-22a4-4715-b13a-cbb7eca5ee65"), Amount = 100, CashCurrencyCode= "SEK", ExternalReference = "Test1", TransferReceiver = new Guid("28dcb516-1a64-42d6-a886-b83bde5e81bf") }, new DirectBankWithdrawalOrder() { Account = Guid("e7dd5b20-1909-47d8-9d2e-12b0835d3d96"), Amount = 110, CashCurrencyCode= "SEK", ExternalReference = "Test2", TransferReceiver = new Guid("28dcb516-1a64-42d6-a886-b83bde5e81bf") } } }); foreach (var c in response.Entities) { Console.WriteLine("OrderNo of the created order: " + c.OrderNo); } |