> This page is for API, version 2026-01-01 (Stable) (default).
> For other versions, use one of these documentation indexes:
> - 2026-01-01 (Stable) (default): https://developer.deel.com/api/stable/llms.txt
> - Beta: https://developer.deel.com/api/beta/llms.txt
> - Deprecated: https://developer.deel.com/api/deprecated/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.deel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.deel.com/_mcp/server.

# Create an IC contract

> Create an Independent Contractor contract with its pay rate and invoice cycle, then confirm it in Deel.

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](/api/authentication).
* The `id` of the legal entity that contracts the worker, from [`GET /legal-entities`](/api/reference/endpoints/legal-entities/get-legal-entities).
* The `id` of the worker's team, from [`GET /teams`](/api/reference/endpoints/organizations/get-teams-v-2026-01-01).
* The contractor's name and email address, the country and start date, and the pay rate.

> **Warning**
>
> 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`](/api/reference/endpoints/contracts/create-ic-contract). The reference lists every field.

**`Request`**

```bash Request
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
      }
    }
  }'
```

**`Response (201 Created, abbreviated)`**

```json Response (201 Created, abbreviated)
{
  "data": {
    "id": "3ykwp2x",
    "type": "ongoing_time_based",
    "title": "Senior Backend Engineer",
    "client": {
      "team": {
        "id": "a4933266-09ac-4276-b869-5d86ab8ee42f",
        "name": "Engineering"
      },
      "legal_entity": {
        "id": "9d808eca-f23e-4b01-aea0-457fcaeeca60",
        "name": "Acme Corporation",
        "type": "company"
      }
    },
    "worker": {
      "first_name": "Jane",
      "last_name": "Doe",
      "expected_email": "jane.doe@example.com"
    },
    "job_title": "Senior Backend Engineer",
    "start_date": "2026-12-01T00:00:00.000Z",
    "external_id": "EMP-9904",
    "compensation_details": {
      "scale": "monthly",
      "amount": "8000.00",
      "frequency": "monthly",
      "currency_code": "GBP"
    },
    "created_at": "2026-11-02T10:24:08.000Z"
  }
}
```

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`](/api/reference/endpoints/lookups/get-job-titles) instead of `job_title.name`.
* A state or province: send `state_code` with a code from [`GET /lookups/countries`](/api/reference/endpoints/lookups/get-countries).

> **Tip**
>
> 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}`](/api/reference/endpoints/contracts/get-contract). Replace `{contract_id}` with the `id` from the previous step.

**`Request`**

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

**`Response (200 OK, abbreviated)`**

```json Response (200 OK, abbreviated)
{
  "data": {
    "id": "3ykwp2x",
    "type": "ongoing_time_based",
    "title": "Senior Backend Engineer",
    "worker": {
      "first_name": "Jane",
      "last_name": "Doe",
      "expected_email": "jane.doe@example.com"
    },
    "external_id": "EMP-9904",
    "compensation_details": {
      "scale": "monthly",
      "amount": "8000.00",
      "frequency": "monthly",
      "cycle_end": 31,
      "cycle_end_type": "DAY_OF_MONTH",
      "currency_code": "GBP"
    }
  }
}
```

> **Check**
>
> `type` is `ongoing_time_based` and `worker.expected_email` is `jane.doe@example.com`.

## Handle errors

| Status            | Cause                                                                                                    | Fix                                                                                                                                |
| ----------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `400 Bad Request` | A required field is missing or invalid, for example `meta.documents_required` or an invoice cycle field. | Send every field that [`POST /contracts`](/api/reference/endpoints/contracts/create-ic-contract) requires for the contract `type`. |
| `403 Forbidden`   | The token is missing a scope from [Prerequisites](#prerequisites).                                       | Create a token with every scope the task uses. See [Authentication](/api/authentication).                                          |

## Next steps

#### [Hiring](/api/contractors/hiring)

Move the contract from creation to an active contractor.

#### [Sign a contract](/api/reference/endpoints/contractor-hiring/create-contract-signature)

Sign the contract on behalf of your organization.

#### [Send contract to worker](/api/reference/endpoints/contractor-hiring/create-contract-invitation)

Email the contractor an invitation to sign the contract.