Skip to content

Branch

This endpoint lists branches

POST https://sandbox.reggora.io/lender/branch

ParameterDefaultDescription
limit50Number of branches to return in page
offset0Number of branches to skip for paginated results
AttributeDescriptionType
branch_identifierUnique identifierstring
nameBranch namestring
addressStreet addressstring
cityCitystring
stateStatestring
zipZipcodestring
branch_classificationOptions: [‘retail’, ‘wholesale’]string
is_joint_ventureBoolean / Default is Falsebool
contact_phone_numberPhone numberstring
contact_emailEmail addressstring
loan_officersList of loan officersDict
parent_branch_identifierThe branch identifier of the parentnullable string
exists_in_hierarchyFlag if branch is in the lender hierarchybool
Status CodeMessage
400Invalid integration header
400User is not in a lender.

Errors not encapsulated in this custom error list can be interpreted as standard REST RFC errors.

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/branch', headers=headers)
{
"data": [
{
"branch_id": "5d6ecfdb69655808d5b3d012",
"branch_identifier": "test_branch_1",
"name": "test branch",
"address": "123 Main St",
"city": "Boston",
"state": "MA",
"zip": "90210",
"branch_classification": "retail",
"is_joint_venture": false,
"contact_phone_number": "555-555-5555",
"contact_email": "email@testreggora.com",
"loan_officers": [],
"parent_branch_identifier": "test_branch_2",
"exists_in_hierarchy": true
}
],
"status": 200
}

This endpoint creates a branch

POST https://sandbox.reggora.io/lender/branch

ParameterDescriptionRequired
branch_identifierUnique identifierTrue
nameBranch nameFalse
addressStreet addressFalse
branch_classificationOptions: [‘retail’, ‘wholesale’]False
is_joint_ventureBoolean / Default is FalseFalse
cityCityFalse
stateStateFalse
ZIPZipcodeFalse
contact_phone_numberPhone numberFalse
contact_emailEmail addressFalse
parent_branch_identifierUnique identifier of parentFalse
AttributeDescriptionType
branch_identifierUnique identifierstring
nameBranch namestring
addressStreet addressstring
cityCitystring
stateStatestring
ZIPZipcodestring
branch_classificationOptions: [‘retail’, ‘wholesale’]string
is_joint_ventureBoolean / Default is Falsebool
contact_phone_numberPhone numberstring
contact_emailEmail addressstring
loan_officersList of loan officersDict
parent_branch_identifierThe branch identifier of the parentnullable string
exists_in_hierarchyFlag if branch is in the lender hierarchybool
Status CodeMessage
400Invalid integration header
400User is not in a lender.
400Parent branch with branch_identifier: <{parent_branch_identifier}> does not exist in hierarchy.
400Hierarchy relationship invalid - loop detected. Parent branch <{parent_branch_identifier}> is the child branch of <{existing_branch.branch_identifier}>.
404Branch <branch_identifier> not found.
409Active branch with branch_identifier: <{branch_identifier}> already exists.
500Error creating branch with branch_identifier: <{branch_identifier}>.

Errors not encapsulated in this custom error list can be interpreted as standard REST RFC errors.

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
"branch_identifier" : "Location 123456",
"name" : "New Branch",
"address" : "822 Main St",
"branch_classification" : "retail",
"is_joint_venture": False,
"city" : "Boston",
"state" : "MA",
"ZIP" : "06201",
"contact_phone_number" : "555-555-5555",
"contact_email" : "user@reggorapartner.com",
"parent_branch_identifier": "ParentBranch202"
}
response = requests.post('https://sandbox.reggora.io/lender/branch', headers=headers)
{
"data": {
"branch": {
"branch_id": "5d6ecfdb69655808d5b3d012",
"branch_identifier": "test_branch_1",
"name": "test branch",
"address": "123 Main St",
"city": "Boston",
"state": "MA",
"ZIP": "90210",
"branch_classification": "retail",
"is_joint_venture": false,
"contact_phone_number": "555-555-5555",
"contact_email": "email@testreggora.com",
"loan_officers": [],
"parent_branch_identifier": "test_branch_2",
"exists_in_hierarchy": true
}
},
"status": 201
}

This endpoint soft deletes a branch

DELETE https://sandbox.reggora.io/lender/branch/<branch_identifier>

ParameterDescription
branch_identiferThe unique identifier of the branch.
Status CodeMessage
400Invalid integration header
400User is not in a lender.
400Unable to delete branch <{branch_identifier}> — it is a parent branch.
404Branch <branch_identifier> not found.
500Error deleting branch with branch_identifier: <branch_identifier>.

Errors not encapsulated in this custom error list can be interpreted as standard REST RFC errors.

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.delete('https://sandbox.reggora.io/lender/branch/<branch_identifier>', headers=headers)
{
"success": "Branch <branch_identifier> has been deleted.",
"status": 200
}

This endpoint soft deletes a branch and reassigns the loan officers to a target branch specified in the body of the request.

DELETE https://sandbox.reggora.io/lender/branch/<branch_identifier>/reassign

ParameterDescription
branch_identiferThe unique identifier of the branch.
Status CodeMessage
400Invalid integration header
400User is not in a lender.
400Unable to delete branch <{branch_identifier}> — it is a parent branch.
400Missing ‘target_branch_identifier’ in the body to reassign loan officers to.
404Branch <branch_identifier> not found.
404Target branch not found for target_branch_identifier: <target_branch_identifier>.
500Error deleting branch with branch_identifier: <branch_identifier>.

Errors not encapsulated in this custom error list can be interpreted as standard REST RFC errors.

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
"target_branch_identifier" : "branch_identifier_123",
}
response = requests.delete('https://sandbox.reggora.io/lender/branch/<branch_identifier>/reassign', headers=headers)
{
"success": "Branch <branch_identifier> has been deleted.",
"status": 200
}

This endpoint updates a branch

PUT https://sandbox.reggora.io/lender/branch/<branch_identifier>?update_hierarchy=false

ParameterDescription
branch_identiferThe unique identifier of the branch.
ParameterDescription
update_hierarchyAn optional boolean that determines whether or not to update branch hierarchy. Defaults to False.
AttributeDescriptionType
branch_identifierUnique identifierstring
nameBranch namestring
addressStreet addressstring
cityCitystring
stateStatestring
ZIPZipcodestring
branch_classificationOptions: [‘retail’, ‘wholesale’]string
is_joint_ventureBoolean / Default is Falsebool
contact_phone_numberPhone numberstring
contact_emailEmail addressstring
loan_officersList of loan officersDict
parent_branch_identifierThe branch identifier of the parentnullable string
exists_in_hierarchyFlag if branch is in the lender hierarchybool
AttributeDescriptionType
idUnique identifierstring
emailEmail addressstring
firstnameFirst Namestring
lastnameLast Namestring
phone_numberPhone numberstring
createdDate Created UTCstring
Status CodeMessage
400Invalid integration header
400User is not in a lender.
400Parent branch with branch_identifier: <{parent_branch_identifier}> does not exist in hierarchy.
400Missing ‘parent_branch_identifier’ in the body to update the hierarchy relationship.
400Hierarchy relationship invalid - loop detected. Parent branch <{parent_branch_identifier}> is the child branch of <{existing_branch.branch_identifier}>.
404Branch <branch_identifier> not found.
500Error updating branch with branch_identifier: <{branch_identifier}>.

Errors not encapsulated in this custom error list can be interpreted as standard REST RFC errors.

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.put('https://sandbox.reggora.io/lender/branch/<branch_identifier>?update_hierarchy=false', headers=headers)
{
"data": {
"branch": {
"branch_id": "5d6ecfdb69655808d5b3d012",
"branch_identifier": "test_branch_1",
"name": "test branch",
"address": "123 Main St",
"city": "Boston",
"state": "MA",
"ZIP": "90210",
"branch_classification": "retail",
"is_joint_venture": false,
"contact_phone_number": "555-555-5555",
"contact_email": "email@testreggora.com",
"loan_officers": [
{
"id": "6373c8fcd74957d911629dcf",
"email": "email@testreggora.com",
"firstname": "Homer",
"lastname": "Simpson",
"phone_number": "1234567890",
"created": "2022-11-15 17:15:50.307000"
}
],
"parent_branch_identifier": "test_branch_2",
"exists_in_hierarchy": true
}
},
"status": 200
}

This endpoint fetches a branch

GET https://sandbox.reggora.io/lender/branch/<branch_identifier>

ParameterDescription
branch_identiferThe unique identifier of the branch.
AttributeDescriptionType
branch_identifierUnique identifierstring
nameBranch namestring
addressStreet addressstring
cityCitystring
stateStatestring
ZIPZipcodestring
branch_classificationOptions: [‘retail’, ‘wholesale’]string
is_joint_ventureBoolean / Default is Falsebool
contact_phone_numberPhone numberstring
contact_emailEmail addressstring
loan_officersList of loan officersDict
parent_branch_identifierThe branch identifier of the parentnullable string
exists_in_hierarchyFlag if branch is in the lender hierarchybool
AttributeDescriptionType
idUnique identifierstring
emailEmail addressstring
firstnameFirst Namestring
lastnameLast Namestring
phone_numberPhone numberstring
createdDate Created UTCstring
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/branch/<branch_identifier>', headers=headers)
{
"data": {
"branch": {
"branch_id": "5d6ecfdb69655808d5b3d012",
"branch_identifier": "test_branch_1",
"name": "test branch",
"address": "123 Main St",
"city": "Boston",
"state": "MA",
"ZIP": "90210",
"branch_classification": "retail",
"is_joint_venture": false,
"contact_phone_number": "555-555-5555",
"contact_email": "email@testreggora.com",
"loan_officers": [
{
"id": "6373c8fcd74957d911629dcf",
"email": "email@testreggora.com",
"firstname": "Homer",
"lastname": "Simpson",
"phone_number": "1234567890",
"created": "2022-11-15 17:15:50.307000"
}
],
"parent_branch_identifier": "test_branch_2",
"exists_in_hierarchy": true
}
},
"status": 200
}