Body
-
company_name string
The contractor's business name.
-
custom_metadata object
Set of key-value pairs that you can attach to an object. Used to store additional information about the contractor in a structured format.
-
The contractor's email address.
-
The contractor's first name.
-
The contractor's last name.
-
middle_name string
The contractor's middle name.
-
phone string
The contractor's phone number.
-
tax_identification string
The contractor's tax identification number. For example, an employer identification number (EIN) if the contractor operates as a corporate entity or a social security number if the contractor operates as a sole proprietor.
POST
/api/v1/contractors
curl \
-X POST https://api.1099policy.com/api/v1/contractors \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","phone":"415-474-9088","address":{"line1":"1 Kearny St","region":"CA","locality":"San Francisco","postalcode":94104},"last_name":"Parker","first_name":"Joe","company_name":"Acme Co.","custom_metadata":{"campaign":"Red Bull"},"tax_identification":"12-3456789"}'
Request example
{
"email": "[email protected]",
"phone": "415-474-9088",
"address": {
"line1": "1 Kearny St",
"region": "CA",
"locality": "San Francisco",
"postalcode": 94104
},
"last_name": "Parker",
"first_name": "Joe",
"company_name": "Acme Co.",
"custom_metadata": {
"campaign": "Red Bull"
},
"tax_identification": "12-3456789"
}
Response examples (201)
{
"address": {
"country": "null",
"line1": "92 Geary St",
"line2": "null",
"locality": "San Francisco",
"postalcode": 94114,
"region": "CA"
},
"company_name": "Acme Co.",
"created": 1646818364,
"custom_metadata": {
"campaign": "Red Bull"
},
"email": "[email protected]",
"first_name": "Joe",
"id": "cn_Ehb3bYa",
"last_name": "Parker",
"middle_name": "null",
"phone": "415-474-9088",
"withhold_premium": false
}