...
Name | Type | Description | Mandatory | Available from version | ||
---|---|---|---|---|---|---|
BrickId | Guid | This is the unique id of the account that should be updated | Yes | |||
OwnerAccountLabel | string | This is the label/title of the account. | ||||
AccountStatus | int? | 1=Open 2=Closed 4=Hidden (hidden on customer front end) The value given here will be used to update the database | ||||
AllocationProfile | Guid? | This is the unique id of an allocation profile record. | ||||
ExternalReference | string | The value given here will be used to update the database | ||||
RequestReference | string | An external reference that's provided by the requester. Can be used to map the returned BrickId on requesters side. | ||||
InsuranceOwner | Guid? | Only available if addon Insurance Accounts is enabled. | 2.07 | |||
Insured | Guid? | Only available if addon Insurance Accounts is enabled. | 2.07 | |||
InsurancePayer | Guid? | Only available if addon Insurance Accounts is enabled. | 2.07 | |||
ContactLegalEntity | Guid? | 2.07 | ||||
CustomFields | Object[] | CustomFields is an array of CustomField objects. Each CustomField consists of two strings, FieldName and Value. There are no datatypes associated with these properties, they are just a way for api-users to add custimized data to the object. | 2.09 | |||
FirstPaymentAge | Integer | The age of the person when the first payout should start | 2.09 | |||
FirstPaymentDate | DateTime | First date for payout | 2.09 | |||
PaymentIntervalKey | String | Interval for payouts | 2.09 | |||
PaymentLength | Integer | Number of total payouts | 2.09 | |||
Payouts | Integer | Number of payouts that has been processed | 2.09 | |||
PayoutsLeft | Integer | Remaining number of payouts | 2.09 | |||
HighWaterMark | Decimal | High water mark for account | 2.12 | |||
ResellerNo | string | Customer number of the reseller that is to be accosiated with the account | 2.14 |
Outputs
Name | Type | Description | Available from version |
---|---|---|---|
Entities | Array | All accounts in the request is returned along with each accounts BrickId, OwnerAccountLabel, AccountStatus,AllocationProfile,ExternalReference,RequestReference and array of Errors per account |
Code examples
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
//Update an account with the UpdateAccount 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.UpdateAccounts(new BFSServiceReference.UpdateAccountsRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Fields = new UpdateAccountFields() { OwnerAccountLabel = true, }, Entities = new [] { new UpdateAccount() { BrickId = bnuseraccountid, OwnerAccountLabel = "Test2", }, }, }); foreach (var c in response.Entities) { Console.WriteLine(c.BrickId + "," + c.OwnerAccountLabel + "," + response.Message); } |
...
Blog Posts | ||||||
---|---|---|---|---|---|---|
|