Create an IC contract
Create an Independent Contractor (IC) contract that sets the contractor’s pay rate and invoice cycle.
Prerequisites
- An organization token with the
organizations:read,contracts:write, andcontracts:readscopes. See Authentication. - The
idof the legal entity that contracts the worker, fromGET /legal-entities. - The
idof the worker’s team, fromGET /teams. - The contractor’s name and email address, the country and start date, and the pay rate.
Treat the token like a password. Store it in an environment variable or a secrets manager, never in source code.
Create the contract
Send the contract details
Send the contract details to POST /contracts. The reference lists every field.
Set meta.documents_required to true to have the contractor upload the compliance documents their country’s labor laws require.
Change the request where your contract differs:
- Another contract type: set
typetopay_as_you_go_time_based,payg_tasks, orpayg_milestones. Each type requires different fields. - A saved payment policy: send
compensation_details.payment_policy_idinstead offrequency,cycle_end,cycle_end_type,payment_due_type, andpayment_due_days. - A predefined job title: send
job_title.idfromGET /lookups/job-titlesinstead ofjob_title.name. - A state or province: send
state_codewith a code fromGET /lookups/countries.
Save the contract id. You need it to verify the contract, sign it, and invite the contractor.
Verify the result
Retrieve the contract with GET /contracts/{contract_id}. Replace {contract_id} with the id from the previous step.
type is ongoing_time_based and worker.expected_email is jane.doe@example.com.