Post Bank Accounts

POST

/public/v3/customers/{customer_id}/account_collections

Creates customer Bank Accounts. You need to create Bank Accounts before posting Balances or Transactions

Please obtain the right bank_slug from Banks endpoint

Parameters

ParameterData typeRequired?Description
customer_idstringyesCustomer ID

Query parameters

none

Request Body Parameters

ParameterData typeRequired?Description
accountsarrayyesArray of accounts
currencystringyesCurrency code (compatible with ISO 4217)
namestringyesAccount name
bank_slugstringyesSlug of the associated bank
typeenumyesAllowed:(Business, Personal)
sub_typeenumyesAllowed:(ChargeCard, CreditCard, CurrentAccount, EMoney, Loan, Mortgage, PrePaidCard, Savings)
numberstringyesAccount number

Response Body Parameters

ParameterData typeRequired?Description
successstringyesAdditional information about save status

Request example

1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl --location --request POST 'https://api.friendlyscore.com/public/v3/customers/{customer_id}/account_collections' --header 'Content-Type: application/json' --data-raw '{ "accounts": [ { "currency": "GBP", "name": "Personal Bank Account *2868", "bank_slug": "barclays", "type": "Personal", "sub_type": "CurrentAccount", "number": "123-123-123-123" } ] }

Response example:

1 2 3 { "success": "Saved" }

Was this article helpful?

Friendly Score UK Ltd.

52 Brook Street 1st Floor, Mayfair

London W1K 5DS

Call us on +44 20 3709 6726

Company registered in England

Company number 09168668, ICO ZA111687

VAT registration number 206 9758 80

Authorised and Regulated by the Financial Conduct Authority. (FRN: 781963)