Audience:
Upload required documents
Generate an upload URL and send the supporting documents required to complete a France capital deposit case.
This page explains how to upload documents for steps 2 and 8 of a multi-step process. Refer to the guide to deposit capital in France for the whole process.
Step 1: Generate upload URL
Use the generateCapitalDepositDocumentUploadUrl mutation to generate an upload URL.
- Call the
generateCapitalDepositDocumentUploadUrlmutation. - Enter all required information:
documentId,capitalDepositCaseId, andfilename. - Add the
GenerateCapitalDepositDocumentUploadUrlSuccessPayloadwith theuploadUrl. - Add other optional messages to the payload, either for validation or in case of rejection.
mutation generateUploadUrl {
generateCapitalDepositDocumentUploadUrl(
input: {
documentId: "$YOUR_DOCUMENT_ID"
capitalDepositCaseId: "$YOUR_CAPITALDEPOSITCASE_ID"
filename: "$FILE_NAME"
}
) {
... on GenerateCapitalDepositDocumentUploadUrlSuccessPayload {
uploadUrl
}
}
}
Step 2: Retrieve generated URL from payload
Retrieve the generated uploadUrl in the payload.
The uploadUrl is only valid for seven days, after which you'd need to generate a new URL.
{
"data": {
"generateCapitalDepositDocumentUploadUrl": {
"uploadUrl": "$YOUR_UPLOAD_URL"
}
}
}
Step 3: Send HTTP PUT request
Send an HTTP PUT request to the uploadUrl with a Content-Type: multipart/form-data header.
Supported formats: .pdf, .png, .jpg
curl --upload-file $YOUR_FILE https://$UPLOAD_URL
Step 4: Repeat
Repeat steps 1-3 to upload additional documents, as needed.
You can also change the documents you already uploaded as long as the document status remains Uploaded.