Deel: Get the case document request
Deel immigration.getCaseDocumentRequest: arguments, response, policy and SDK examples.
← Immigration operations · Get started
Operation deel.immigration_getcasedocumentrequest_v2026_11_10
Provider route: GET /immigration/cases/{case_id}/document-request. 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"]["getCaseDocumentRequest"]>[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.getCaseDocumentRequest(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_document_request(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 the case document request — 200 response body |
Referenced models: Get the case document request — 200 response body
Schemas
Section titled “Schemas”Get the case document request — 200 response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | Model | Required within parent | Expand Get the case document request — 200 response body — data |
Referenced models: Get the case document request — 200 response body — data
Get the case document request — 200 response body — data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
created_at | string | Required within parent | UTC timestamp when the request was created. Format: date-time |
description | string | Required within parent | Instructions for the document, as plain text. |
document | JSON | Required within parent | The document uploaded for the request. Null while none is uploaded. |
document (anyOf 1) | Model | Alternative | Expand Get the case document request — 200 response body — data / document / status: IN REVIEW, APPROVED, REJECTED |
document (anyOf 2) | null | Alternative | |
id | string | Required within parent | The unique identifier of the document request. Format: uuid |
immigration_document_requirement_id | JSON | Required within parent | |
immigration_document_requirement_id (anyOf 1) | string | Alternative | The immigration document requirement the request fulfils. |
immigration_document_requirement_id (anyOf 2) | null | Alternative | The immigration document requirement the request fulfils. |
name | string | Required within parent | What document is requested. |
previous_rejected_document | JSON | Required within parent | The document rejected before this request was opened again. |
previous_rejected_document (anyOf 1) | Model | Alternative | Expand Get the case document request — 200 response body — data / previous_rejected_document / status: PENDING, IN REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED |
previous_rejected_document (anyOf 2) | null | Alternative | |
status | string | Required within parent | Progress of the request. Known values: PENDING, IN_REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED |
updated_at | string | Required within parent | UTC timestamp when the request was last updated. Format: date-time |
Referenced models: Get the case document request — 200 response body — data / document / status: IN REVIEW, APPROVED, REJECTED, Get the case document request — 200 response body — data / previous_rejected_document / status: PENDING, IN REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED
Get the case document request — 200 response body — data / document / status: IN REVIEW, APPROVED, REJECTED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The document uploaded for the request. Null while none is uploaded. |
expiration_date | JSON | Required within parent | |
expiration_date (anyOf 1) | string | Alternative | When the document expires. |
expiration_date (anyOf 2) | null | Alternative | When the document expires. |
id | string | Required within parent | The unique identifier of the document. |
name | string | Required within parent | Name of the document. |
status | string | Required within parent | Status of the document. Known values: IN_REVIEW, APPROVED, REJECTED |
Get the case document request — 200 response body — data / previous_rejected_document / status: PENDING, IN REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The document rejected before this request was opened again. |
id | JSON | Required within parent | |
id (anyOf 1) | string | Alternative | The unique identifier of the rejected document. |
id (anyOf 2) | null | Alternative | The unique identifier of the rejected document. |
rejection_note | JSON | Required within parent | |
rejection_note (anyOf 1) | string | Alternative | Details on the rejection. |
rejection_note (anyOf 2) | null | Alternative | Details on the rejection. |
rejection_reason | JSON | Required within parent | |
rejection_reason (anyOf 1) | string | Alternative | Why the document was rejected. |
rejection_reason (anyOf 2) | null | Alternative | Why the document was rejected. |
status | string | Required within parent | Status of the rejected request. Known values: PENDING, IN_REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: deel.immigration_getcasedocumentrequest_v2026_11_10. Catalog operation: immigration_getcasedocumentrequest_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"}