Platforms
Retrieve a file
Retrieve information about a previously uploaded file.
Please note that the sub-domain – https://files.checkout.com – is slightly different to Checkout.com's other endpoints. See the <a href="https://checkout.com/docs/platforms/onboarding/api/full/upload-a-file" target="_blank">documentation</a> for more information.
get/entities/{entityId}/files/{fileId}
Request
- Base URLhttps://files.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesfiles, files:retrieve
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"id": "file_6lbss42ezvoufcb2beo76rvwly",
"status": "invalid",
"status_reasons": [
"InvalidMimeType"
],
"size": 1024,
"mime_type": "application/pdf",
"uploaded_on": "2020-12-01T15:01:01.0000000+00:00",
"purpose": "identity_verification",
"_links": {
"download": {
"href": "https://s3.eu-west-1.amazonaws.com/mp-files-api-clean-prod/ent_ociwguf5a5fe3ndmpnvpnwsi3e/file_6lbss42ezvoufcb2beo76rvwly?X-Amz-Expires=3600&x-amz-security-token=some_token"
},
"self": {
"href": "https://files.checkout.com/files/file_6lbss42ezvoufcb2beo76rvwly"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.