Add external Id
Add an external Id to a Deel contract. You can use this to add a Deel contract’s refernece Id in your platform. External Id can be passed as a query parameter in List contract endpoint to find this contract later.
Token scopes: contracts:write
Authentication
AuthorizationBearer
## Authentication
Deel API uses API tokens to authenticate requests. A bearer token is required to authenticate all API requests.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
``` curl -X GET 'api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ```
### Generating Access Tokens 1. Navigate to **Apps & Perks > Developer Center**. 2. Click on the “Generate New Token” button. 3. In the popup, click “Generate Token” button to generate a new token. Your newly generated token is visible on the screen. 4. Make sure to copy and save your token once is generated. You won't be able to see it again!
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/
Path parameters
contract_id
Deel contract id.
Request
Contract object that needs to be created
data
Response
Successful operation.
id
Unique identifier for the contract.
type
Type of a contract.
title
Title of the contract.
client
status
Status of a contract in Deel workflow.
worker
created_at
Date and time when the contract was created.
signatures
start_date
Date and time when the contract starts.
updated_at
Date and time when the contract was updated.
invitations
is_archived
Flag to indicate if the contract is archived.
special_clause
Special clause of the contract.
termination_date
Date and time when the contract ends.
quote
EOR quote approved by Deel.
job_title
Job title associated with the contract.
seniority
Seniority describes level of expertise at a job e.g. junior.
external_id
External identifier of the contract.
who_reports
Who reports the hours.
cost_centers
List of cost centers associated with the contract.
custom_fields
notice_period
Notice period in days.
scope_of_work
Scope of work of the contract.
work_schedule
Defines a work schedule including working days, hours, and employment details
employment_type
Type of employment.
Allowed values:
contract_template
Contract template details.
work_statement_id
The unique identifier of the associated work statement.
employment_details
compensation_details