Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.case_idstringRequired within parentFormat: uuid
headersobjectRequired within parentAdditional keys: not allowed
headers.X-BetastringRequired within parentDefault: true
One of: true

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get the case document request — 200 response body

Referenced models: Get the case document request — 200 response body

Get the case document request — 200 response body
FieldTypePresenceDescription and constraints
$objectRoot
dataModelRequired within parentExpand 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
FieldTypePresenceDescription and constraints
$objectRoot
created_atstringRequired within parentUTC timestamp when the request was created.
Format: date-time
descriptionstringRequired within parentInstructions for the document, as plain text.
documentJSONRequired within parentThe document uploaded for the request. Null while none is uploaded.
document (anyOf 1)ModelAlternativeExpand Get the case document request — 200 response body — data / document / status: IN REVIEW, APPROVED, REJECTED
document (anyOf 2)nullAlternative
idstringRequired within parentThe unique identifier of the document request.
Format: uuid
immigration_document_requirement_idJSONRequired within parent
immigration_document_requirement_id (anyOf 1)stringAlternativeThe immigration document requirement the request fulfils.
immigration_document_requirement_id (anyOf 2)nullAlternativeThe immigration document requirement the request fulfils.
namestringRequired within parentWhat document is requested.
previous_rejected_documentJSONRequired within parentThe document rejected before this request was opened again.
previous_rejected_document (anyOf 1)ModelAlternativeExpand 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)nullAlternative
statusstringRequired within parentProgress of the request.
Known values: PENDING, IN_REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED
updated_atstringRequired within parentUTC 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
FieldTypePresenceDescription and constraints
$objectRootThe document uploaded for the request. Null while none is uploaded.
expiration_dateJSONRequired within parent
expiration_date (anyOf 1)stringAlternativeWhen the document expires.
expiration_date (anyOf 2)nullAlternativeWhen the document expires.
idstringRequired within parentThe unique identifier of the document.
namestringRequired within parentName of the document.
statusstringRequired within parentStatus 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
FieldTypePresenceDescription and constraints
$objectRootThe document rejected before this request was opened again.
idJSONRequired within parent
id (anyOf 1)stringAlternativeThe unique identifier of the rejected document.
id (anyOf 2)nullAlternativeThe unique identifier of the rejected document.
rejection_noteJSONRequired within parent
rejection_note (anyOf 1)stringAlternativeDetails on the rejection.
rejection_note (anyOf 2)nullAlternativeDetails on the rejection.
rejection_reasonJSONRequired within parent
rejection_reason (anyOf 1)stringAlternativeWhy the document was rejected.
rejection_reason (anyOf 2)nullAlternativeWhy the document was rejected.
statusstringRequired within parentStatus of the rejected request.
Known values: PENDING, IN_REVIEW, REJECTED, COMPLETED, FAILED, PROCESSING, ARCHIVED

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"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.