curl --request POST \
--url https://api.dev.ecos.gcservices.io/payments/payment-order/v1/payments/fetch-bank-details \
--header 'Content-Type: application/json' \
--data '
{
"identificationNumber": "12232",
"identificationType": "ROUTING_NUMBER",
"bankName": "Bank One",
"branchCode": "Branch One",
"country": "US",
"customFields": {}
}
'{
"bankCode": "001",
"federalReserveDistrict": "Boston",
"address": {
"country": "USA",
"streetName": "1st Street",
"townName": "New York",
"phoneNumber": "+1-800-555-1234",
"countrySubDivision": "Ontario",
"postalCode": "10001",
"buildingNumber": "123",
"subDepartment": "Loan Processing",
"type": "POSTAL",
"department": "Retail Banking",
"addressLine": "Main Office Tower",
"primary": true
},
"serviceSupportType": [
"CRDT",
"ACK",
"RMT"
],
"customFields": {
"key": "{}"
},
"bankName": "US Bank NA",
"sortCode": "12-34-56",
"network": [
"Wire",
"ACH",
"FedNow"
],
"branchCode": "Branch One",
"identification": "123456789",
"participantName": "Name One",
"bic": "BOFA",
"transferSupportType": [
"ACH",
"WIRE"
],
"status": "ACTIVE"
}Returns bank details.
curl --request POST \
--url https://api.dev.ecos.gcservices.io/payments/payment-order/v1/payments/fetch-bank-details \
--header 'Content-Type: application/json' \
--data '
{
"identificationNumber": "12232",
"identificationType": "ROUTING_NUMBER",
"bankName": "Bank One",
"branchCode": "Branch One",
"country": "US",
"customFields": {}
}
'{
"bankCode": "001",
"federalReserveDistrict": "Boston",
"address": {
"country": "USA",
"streetName": "1st Street",
"townName": "New York",
"phoneNumber": "+1-800-555-1234",
"countrySubDivision": "Ontario",
"postalCode": "10001",
"buildingNumber": "123",
"subDepartment": "Loan Processing",
"type": "POSTAL",
"department": "Retail Banking",
"addressLine": "Main Office Tower",
"primary": true
},
"serviceSupportType": [
"CRDT",
"ACK",
"RMT"
],
"customFields": {
"key": "{}"
},
"bankName": "US Bank NA",
"sortCode": "12-34-56",
"network": [
"Wire",
"ACH",
"FedNow"
],
"branchCode": "Branch One",
"identification": "123456789",
"participantName": "Name One",
"bic": "BOFA",
"transferSupportType": [
"ACH",
"WIRE"
],
"status": "ACTIVE"
}Idempotent Request Key.
Timestamp.
Type of the payment.
API Key to authorize the api.
Unique identifier for the bank code of which the details are retreived.
"12232"
Type of the bank code used to search for the bank's address.
ROUTING_NUMBER, IBAN, SWIFT_CODE, BANK_BRANCH_CODE, BBAN, OTHERS Name of the financial institution.
"Bank One"
Branch code of the financial institution.
"Branch One"
Country name that can be obtained from the United Nations (ISO 3166, Alpha-2 code)- https://www.iban.com/country-codes.
"US"
OK.
Routing number of the participant.
"123456789"
Name of the financial institution.
"US Bank NA"
Unique identifier of the financial institution.
"001"
Branch code of the financial institution.
"Branch One"
Unique identifier of the financial institution for routing the payment predominantly used in the UK.
"12-34-56"
Unique identifier of the financial institution.
"BOFA"
Retrieve either the ACH or wire transfer information from the bank. Default value is ACH.
["ACH", "WIRE"]Services that are accepted by the financial instituion.
["CRDT", "ACK", "RMT"]Any of the twelve unique Federal Reserve that officially identifies Districts by number and Reserve Bank city.
"Boston"
Name of the RTP Participant.
"Name One"
Network supportedt.
["Wire", "ACH", "FedNow"]Status of the financial institution.
ACTIVE, INACTIVE Show child attributes
Information that locates and identifies a specific address.
POSTAL, POBOX, RESIDENTIAL, PERMANENT, TEMPORARY, BUSINESS Flag denoting whether this is the primary postal address of the person/party.
true
Flag denoting whether this is the primary postal address of the person/party.
"Retail Banking"
Identification of a sub-division of a large organisation or building. ISO20022
"Loan Processing"
Information that locates and identifies a specific address, as defined by postal services,presented in free format text. ISO20022
"Main Office Tower"
Number that identifies the position of a building on a street. ISO20022
"123"
Name of a street or thoroughfare. ISO20022
"1st Street"
Name of a built-up area, with defined boundaries, and a local government. ISO20022
"New York"
Name of a built-up area, with defined boundaries, and a local government ISO20022
"10001"
Identifies the name of a country subdivision such as state, region, county.
"Ontario"
Country name that can be obtained from the United Nations (ISO 3166, Alpha-2 code).
"USA"
Phone number of the financial institute.
"+1-800-555-1234"
{
"country": "USA",
"streetName": "1st Street",
"townName": "New York",
"phoneNumber": "+1-800-555-1234",
"countrySubDivision": "Ontario",
"postalCode": "10001",
"buildingNumber": "123",
"subDepartment": "Loan Processing",
"type": "POSTAL",
"department": "Retail Banking",
"addressLine": "Main Office Tower",
"primary": true
}