Node.js client library for 1099Policy platform.
Node 8, 10 or higher.
Install the package with:
npm install ten99policy
To use the 1099Policy API you need to authenticate requests using API keys. Sign up for a developer account to view and manage your API keys from the the 1099Policy Dashboard. 1099Policy Dashboard
const Ten99Policy = require('ten99policy');
const ten99policy = new Ten99Policy({
'key': 't9sk_test_...',
})
// create a contractor
ten99policy.contractors.create({
company_name: "John & Friends",
first_name: "John",
last_name: "Doe",
email: "example@gmail.com",
phone: "415-111-1111",
tax_identification: "123-456789",
address:{
line1: "2211 Mission St",
line2: "",
locality: "San Francisco,",
region: "CA",
postalcode: "94110"
}
})
.then(message => console.log(message))
.catch(error => console.error(error));