# Create EOR Contract — Deel

> Create an EOR (employer of record) contract quote in Deel to hire a full-time employee in a country where your company doesn't have a legal entity. Use Get EOR Hiring Guide first to understand mandatory fields and compliance requirements…

- Key: `deel-create-eor-contract`
- Type: Action (Write)
- Version: 0.0.2
- App: Deel (`deel`) — https://pipedream.com/apps/deel.md
- This page (HTML): https://pipedream.com/apps/deel/actions/create-eor-contract
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/deel/actions/create-eor-contract/create-eor-contract.mjs

## Description

Create an EOR (employer of record) contract quote in Deel to hire a full-time employee in a country where your company doesn't have a legal entity. Use **Get EOR Hiring Guide** first to understand mandatory fields and compliance requirements for the target country. `employee_nationality` and `employment_country` must be ISO 3166-1 alpha-2 codes (e.g., `DE`, `US`). `employment_type` must be one of: `Full-time`, `Part-time`. `seniority_id` is a numeric seniority level: `1`=Junior, `2`=Mid, `3`=Senior, `4`=Lead, `5`=Principal/Staff, `6`=Director, `7`=Head of Dept, `8`=VP, `9`=SVP, `34`=Not applicable. `scope_of_work` must be at least 100 characters long. [See the documentation](https://developer.deel.com/api/reference/endpoints/eor-contract/create-eor-contract)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `clientTeamId` | `string` | Yes | The ID of the client team (department) for this contract. Retrieve from your Deel organization settings. |
| `clientLegalEntityId` | `string` | Yes | The ID of the client legal entity (company) for this contract. Retrieve from your Deel organization settings. |
| `jobTitle` | `string` | Yes | The employee's job title (e.g., Paleobotanist, Software Engineer). |
| `seniorityId` | `integer` | No | Numeric seniority level: 1=Junior, 2=Mid, 3=Senior, 4=Lead, 5=Principal/Staff, 6=Director, 7=Head of Dept, 8=VP, 9=SVP, 34=Not applicable. |
| `employeeFirstName` | `string` | Yes | The employee's first (given) name. |
| `employeeLastName` | `string` | Yes | The employee's last (family) name. |
| `employeeEmail` | `string` | Yes | The employee's personal email address. |
| `employeeNationality` | `string` | Yes | ISO 3166-1 alpha-2 country code of the employee's nationality (e.g., DE, US). |
| `employmentCountry` | `string` | Yes | ISO 3166-1 alpha-2 country code where the employee will work (e.g., DE, US). |
| `employmentType` | `string` | No | One of: Full-time, Part-time. |
| `startDate` | `string` | Yes | The employment start date in ISO 8601 format (e.g., 2026-09-01). |
| `scopeOfWork` | `string` | Yes | Description of the employee's role and responsibilities. Must be at least 100 characters long. |
| `workVisaRequired` | `boolean` | No | Set to true if the employee requires a work visa. Default: false. |
| `probationPeriodDays` | `integer` | No | Probation period in days (e.g., 0, 30, 90). Required for some countries. |
| `compensationCurrency` | `string` | Yes | ISO 4217 currency code for compensation (e.g., EUR, USD). |
| `compensationSalary` | `string` | No | Annual salary amount (e.g., 80000). Provide this or Hourly Rate, not both. |
| `compensationHourlyRate` | `string` | No | Hourly rate amount. Provide this or Annual Salary, not both. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "deel",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "deel-create-eor-contract",
  arguments: {
    clientTeamId: "Client Team ID",
    clientLegalEntityId: "Client Legal Entity ID",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "deel-create-eor-contract",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    deel: { authProvisionId: "apn_xxxxxxx" },
    clientTeamId: "Client Team ID",
    clientLegalEntityId: "Client Legal Entity ID",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "deel-create-eor-contract",
    "configured_props": {
      "deel": { "authProvisionId": "apn_xxxxxxx" },
      "clientTeamId": "Client Team ID",
      "clientLegalEntityId": "Client Legal Entity ID"
    }
  }'
```

---

- App: https://pipedream.com/apps/deel.md · All apps: https://pipedream.com/apps
