Deel: Get a case
Deel immigration.getCase: arguments, response, policy and SDK examples.
← Immigration operations · Get started
Operation deel.immigration_getcase_v2026_11_10
Provider route: GET /immigration/cases/{case_id}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/deel with npm, or alter-sdk-deel with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { DeelIntegration } from "@alter-ai/deel";
async function execute(input: Parameters<DeelIntegration["immigration"]["getCase"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new DeelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.immigration.getCase(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_deel import DeelIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = DeelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.immigration.get_case(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.case_id | string | Required within parent | Format: uuid |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-Beta | string | Required within parent | Default: true One of: true |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Get a case — 201 response body |
Referenced models: Get a case — 201 response body
Schemas
Section titled “Schemas”2 more schemas are linked from the tables above, on the schema pages.
Get a case — 201 response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | Model | Required within parent | Expand Get a case — 201 response body — data |
Referenced models: Get a case — 201 response body — data
Get a case — 201 response body — data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
applicant | JSON | Required within parent | The worker the case is for. |
applicant (anyOf 1) | Model | Alternative | Expand Get a case — 201 response body — data applicant The worker the case is for |
applicant (anyOf 2) | null | Alternative | |
business_trip | JSON | Required within parent | The business trip of a business visa case. Null for other cases. |
business_trip (anyOf 1) | Model | Alternative | Expand Get a case — 201 response body — data business trip end date, reason, start date |
business_trip (anyOf 2) | null | Alternative | |
case_type | Model | Required within parent | Expand Get a case — 201 response body — data case type The case type the case was opened with. |
citizenships | array | Required within parent | ISO 3166-1 alpha-2 codes of the worker citizenships known to the case. |
citizenships[] | string | Each item | |
closed_at | JSON | Required within parent | |
closed_at (anyOf 1) | string | Alternative | UTC timestamp when the case was closed. Null while the case is not closed. Format: date-time |
closed_at (anyOf 2) | null | Alternative | UTC timestamp when the case was closed. Null while the case is not closed. Format: date-time |
closure | JSON | Required within parent | Why the case was closed. Null while the case is not closed. |
closure (anyOf 1) | Model | Alternative | Expand Get a case — 201 response body — data closure note, reason |
closure (anyOf 2) | null | Alternative | |
contract_id | JSON | Required within parent | |
contract_id (anyOf 1) | string | Alternative | The contract the case was opened for. |
contract_id (anyOf 2) | null | Alternative | The contract the case was opened for. |
contract_type | JSON | Required within parent | |
contract_type (anyOf 1) | string | Alternative | Type of contract behind the case, for example EOR, COR, CONTRACTOR, DIRECT_EMPLOYEE, PWAC. New values may be added. |
contract_type (anyOf 2) | null | Alternative | Type of contract behind the case, for example EOR, COR, CONTRACTOR, DIRECT_EMPLOYEE, PWAC. New values may be added. |
converted_to_case_id | JSON | Required within parent | |
converted_to_case_id (anyOf 1) | string | Alternative | The case this case was converted into, when it was. |
converted_to_case_id (anyOf 2) | null | Alternative | The case this case was converted into, when it was. |
country_code | string | Required within parent | ISO 3166-1 alpha-2 code of the destination country. |
created_at | string | Required within parent | UTC timestamp when the case was created. Format: date-time |
estimated_completion_date | JSON | Required within parent | |
estimated_completion_date (anyOf 1) | string | Alternative | Date the case is expected to be completed. Format: date |
estimated_completion_date (anyOf 2) | null | Alternative | Date the case is expected to be completed. Format: date |
filing_type | JSON | Required within parent | Whether the case is an initial filing, a renewal or another filing. |
filing_type (anyOf 1) | string | Alternative | Whether the case is an initial filing, a renewal or another filing. Known values: INITIAL, RENEWAL, CHANGE_OF_EMPLOYER, REFILING |
filing_type (anyOf 2) | null | Alternative | |
full_status | string | Required within parent | Status of the case including how a closed case ended. Known values: OPEN, ON_HOLD, CLOSED_POSITIVELY, CLOSED_NEGATIVELY, CLOSED_NEUTRALLY |
id | string | Required within parent | The unique identifier of the case. Format: uuid |
is_onboarding | boolean | Required within parent | Whether the case is part of the worker onboarding. |
parent_case_id | JSON | Required within parent | |
parent_case_id (anyOf 1) | string | Alternative | The case of the main applicant when this is a dependent case. |
parent_case_id (anyOf 2) | null | Alternative | The case of the main applicant when this is a dependent case. |
reference_id | JSON | Required within parent | |
reference_id (anyOf 1) | string | Alternative | Human-readable reference of the case. Null for cases opened before references existed. |
reference_id (anyOf 2) | null | Alternative | Human-readable reference of the case. Null for cases opened before references existed. |
sponsoring_entity_id | JSON | Required within parent | |
sponsoring_entity_id (anyOf 1) | string | Alternative | Legal entity sponsoring the visa when the client sponsors it. |
sponsoring_entity_id (anyOf 2) | null | Alternative | Legal entity sponsoring the visa when the client sponsors it. |
sponsorship | JSON | Required within parent | Who sponsors the visa. Null when unknown or not applicable. |
sponsorship (anyOf 1) | string | Alternative | Who sponsors the visa. Null when unknown or not applicable. Known values: DEEL, CLIENT, NO_SPONSORSHIP |
sponsorship (anyOf 2) | null | Alternative | |
status | string | Required within parent | Current status of the case. Known values: OPEN, CLOSED, ON_HOLD |
updated_at | string | Required within parent | UTC timestamp when the case was last updated. Format: date-time |
visa_category | JSON | Required within parent | Visa category of the case. Null when the case is not about a visa. |
visa_category (anyOf 1) | string | Alternative | Visa category of the case. Null when the case is not about a visa. Known values: BUSINESS_VISA, WORK_PERMIT_VISA |
visa_category (anyOf 2) | null | Alternative | |
visa_management_fee | JSON | Required within parent | The monthly visa management fee that applies to the case after it is completed. Null when no fee applies to the case or it could not be determined. |
visa_management_fee (anyOf 1) | Model | Alternative | Expand Get a case — 201 response body — data / visa_management_fee / fee_type: FULL IMMIGRATION MANAGEMENT FEE |
visa_management_fee (anyOf 2) | null | Alternative | |
visa_type | JSON | Required within parent | The visa type of the case. Null while none is chosen. |
visa_type (anyOf 1) | Model | Alternative | Expand Get a case — 201 response body — data visa type id, name |
visa_type (anyOf 2) | null | Alternative | |
work_type | string | Required within parent | The kind of immigration work the case covers. |
Referenced models: Get a case — 201 response body — data case type, Get a case — 201 response body — data visa type id, name, Get a case — 201 response body — data applicant The worker the case is for, Get a case — 201 response body — data business trip end date, reason, start date, Get a case — 201 response body — data closure note, reason, Get a case — 201 response body — data / visa_management_fee / fee_type: FULL IMMIGRATION MANAGEMENT FEE
Get a case — 201 response body — data case type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The case type the case was opened with. |
id | string | Required within parent | The unique identifier. |
name | string | Required within parent | The display name. |
Get a case — 201 response body — data visa type id, name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The visa type of the case. Null while none is chosen. |
id | string | Required within parent | The unique identifier. |
name | string | Required within parent | The display name. |
Get a case — 201 response body — data applicant The worker the case is for
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The worker the case is for. |
name | JSON | Required within parent | |
name (anyOf 1) | string | Alternative | Full name of the worker. |
name (anyOf 2) | null | Alternative | Full name of the worker. |
worker_id | string | Required within parent | The unique identifier of the worker. |
Get a case — 201 response body — data business trip end date, reason, start date
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The business trip of a business visa case. Null for other cases. |
end_date | JSON | Required within parent | |
end_date (anyOf 1) | string | Alternative | Last day of the trip. Format: date |
end_date (anyOf 2) | null | Alternative | Last day of the trip. Format: date |
reason | JSON | Required within parent | |
reason (anyOf 1) | string | Alternative | Why the worker travels. |
reason (anyOf 2) | null | Alternative | Why the worker travels. |
start_date | JSON | Required within parent | |
start_date (anyOf 1) | string | Alternative | First day of the trip. Format: date |
start_date (anyOf 2) | null | Alternative | First day of the trip. Format: date |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: deel.immigration_getcase_v2026_11_10. Catalog operation: immigration_getcase_v2026_11_10. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["immigration:read", "worker:read"]
Pinned headers: {"X-Version": "2026-11-10"}