Skip to navigation

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, and contracts:read scopes. See Authentication.
  • The id of the legal entity that contracts the worker, from GET /legal-entities.
  • The id of the worker’s team, from GET /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

1

Send the contract details

Send the contract details to POST /contracts. The reference lists every field.

curl --request POST 'https://api.letsdeel.com/rest/contracts' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"type": "ongoing_time_based",
"title": "Senior Backend Engineer",
"country_code": "GB",
"start_date": "2026-12-01",
"external_id": "EMP-9904",
"meta": {
"documents_required": true
},
"client": {
"legal_entity": { "id": "9d808eca-f23e-4b01-aea0-457fcaeeca60" },
"team": { "id": "a4933266-09ac-4276-b869-5d86ab8ee42f" }
},
"worker": {
"first_name": "Jane",
"last_name": "Doe",
"expected_email": "jane.doe@example.com"
},
"job_title": { "name": "Senior Backend Engineer" },
"compensation_details": {
"scale": "monthly",
"amount": 8000,
"currency_code": "GBP",
"frequency": "monthly",
"cycle_end": 31,
"cycle_end_type": "DAY_OF_MONTH",
"payment_due_type": "REGULAR",
"payment_due_days": 5
}
}
}'

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 type to pay_as_you_go_time_based, payg_tasks, or payg_milestones. Each type requires different fields.
  • A saved payment policy: send compensation_details.payment_policy_id instead of frequency, cycle_end, cycle_end_type, payment_due_type, and payment_due_days.
  • A predefined job title: send job_title.id from GET /lookups/job-titles instead of job_title.name.
  • A state or province: send state_code with a code from GET /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.

curl --request GET 'https://api.letsdeel.com/rest/contracts/{contract_id}' \
--header 'Authorization: Bearer YOUR_API_TOKEN'

type is ongoing_time_based and worker.expected_email is jane.doe@example.com.

Handle errors

StatusCauseFix
400 Bad RequestA required field is missing or invalid, for example meta.documents_required or an invoice cycle field.Send every field that POST /contracts requires for the contract type.
403 ForbiddenThe token is missing a scope from Prerequisites.Create a token with every scope the task uses. See Authentication.

Next steps