const BASE_URL = "https://api.herondata.io";
const BROKER_API_KEY = 'bft_xxxxxxxxx';
const response = await fetch(
`${BASE_URL}/broker_submissions/${submissionHeronId}/update_information`,
{
method: 'POST',
headers: {
'x-api-key': `${BROKER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
company_legal_business_name: 'ABC Company LLC',
company_email: '[email protected]',
company_phone_number: '555-123-4567',
federal_tax_id: '12-3456789',
amount_requested: 100000,
annual_revenue: 500000,
industry_type: 'Restaurant',
business_start_date: '2018-05-15',
company_physical_address: {
line_1: '123 Main St',
city: 'New York',
state: 'NY',
zip: '10001',
},
owner_1: {
first_name: 'John',
last_name: 'Doe',
email_address: '[email protected]',
mobile_phone: '555-987-6543',
ownership_percentage: 75,
date_of_birth: '1985-03-20',
},
}),
}
);
const updatedInfo = await response.json();