Sandbox
Update a sandbox company's data
Deductions
Documents
Management
Sandbox
- POSTCreate a new Sandbox Connection
- POSTCreate a new sandbox account
- PUTUpdate a sandbox account
- GETGet configurations for sandbox jobs
- PUTUpdate configurations for sandbox jobs
- POSTAdd a new sandbox payment
- PUTUpdate sandbox individual
- PUTUpdate sandbox employment
- POSTAdd new individuals to a sandbox company
- PUTUpdate a sandbox company's data
- POSTEnqueue a new sandbox job
Development Guides
Sandbox
Update a sandbox company's data
PUT
/
sandbox
/
company
import Finch from '@tryfinch/finch-api';
const client = new Finch({
accessToken: 'My Access Token',
});
async function main() {
const company = await client.sandbox.company.update({
accounts: [{}],
departments: [{}],
ein: 'ein',
entity: {},
legal_name: 'legal_name',
locations: [
{
city: 'city',
country: 'country',
line1: 'line1',
line2: 'line2',
postal_code: 'postal_code',
state: 'state',
},
],
primary_email: 'dev@stainless.com',
primary_phone_number: 'primary_phone_number',
});
console.log(company.accounts);
}
main();
{
"legal_name": "<string>",
"entity": {
"type": "llc",
"subtype": "s_corporation"
},
"primary_email": "jsmith@example.com",
"primary_phone_number": "<string>",
"departments": [
{
"name": "<string>",
"parent": {
"name": "<string>"
}
}
],
"ein": "<string>",
"locations": [
{
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"source_id": "<string>"
}
],
"accounts": [
{
"routing_number": "<string>",
"account_name": "<string>",
"institution_name": "<string>",
"account_type": "checking",
"account_number": "<string>"
}
]
}
Authorizations
Please use your Access Token
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
import Finch from '@tryfinch/finch-api';
const client = new Finch({
accessToken: 'My Access Token',
});
async function main() {
const company = await client.sandbox.company.update({
accounts: [{}],
departments: [{}],
ein: 'ein',
entity: {},
legal_name: 'legal_name',
locations: [
{
city: 'city',
country: 'country',
line1: 'line1',
line2: 'line2',
postal_code: 'postal_code',
state: 'state',
},
],
primary_email: 'dev@stainless.com',
primary_phone_number: 'primary_phone_number',
});
console.log(company.accounts);
}
main();
{
"legal_name": "<string>",
"entity": {
"type": "llc",
"subtype": "s_corporation"
},
"primary_email": "jsmith@example.com",
"primary_phone_number": "<string>",
"departments": [
{
"name": "<string>",
"parent": {
"name": "<string>"
}
}
],
"ein": "<string>",
"locations": [
{
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"source_id": "<string>"
}
],
"accounts": [
{
"routing_number": "<string>",
"account_name": "<string>",
"institution_name": "<string>",
"account_type": "checking",
"account_number": "<string>"
}
]
}