POST /files
GET /files
GET /files/{file_id}
GET /files/{file_id}/external_links
POST /files/{file_id}/external_links
POST /files/{file_id}/upload
GET /files/{file_id}/download
GET /files/{file_id}/external_link/{external_link_id}
Finix's File Upload endpoint allows platforms and sellers to upload documents and request files to complete verification with Finix's underwriting team.
Related Guides: Uploading Files to Finix, Reject Codes
Before uploading a file, you need to create a File
resource.
Once created, you can upload your file to the new File
resource.
Single File object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -d ' { "display_name": "My Drivers License", "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk", "tags": { "key_1": "value_1" }, "type": "DRIVERS_LICENSE_FRONT" }'
{- "id": "FILE_abki8bFEjq51eZ5w2pYFik",
- "created_at": "2022-08-16T18:50:25.770825Z",
- "updated_at": "2022-08-16T18:50:25.807321Z",
- "application_id": "APgPDQrLD52TYvqazjHJJchM",
- "display_name": "license_file",
- "extension": null,
- "identity_id": null,
- "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk",
- "linked_type": "MERCHANT",
- "platform_id": "PLm5E6FbtCZ5vjpCaKhq5PwN",
- "status": "REQUIRES_UPLOAD",
- "tags": {
- "test_key_100": "test_val_100"
}, - "type": "DRIVERS_LICENSE_FRONT"
}
List all the File
resources you've created.
sort | string Specify key to be used for sorting the collection. |
after_cursor | string Return every resource created after the cursor value. |
limit | integer The numbers of items to return. Example: limit=10 |
id | string Filter by |
created_at.gte | string Filter where Example: created_at.gte=2022-09-27T11:21:23 |
created_at.lte | string Filter where Example: created_at.lte=2022-09-27T11:21:23 |
updated_at.gte | string Filter where |
updated_at.lte | string Filter where |
before_cursor | string Return every resource created before the cursor value. |
tags.key | string Filter by the |
tags.value | string Filter by the value of a |
List of File objects
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "files": [
- {
- "id": "FILE_abki8bFEjq51eZ5w2pYFik",
- "created_at": "2022-08-16T18:50:25.770825Z",
- "updated_at": "2022-08-16T18:50:25.807321Z",
- "application_id": "APgPDQrLD52TYvqazjHJJchM",
- "display_name": "license_file",
- "extension": "png",
- "identity_id": null,
- "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk",
- "linked_type": "MERCHANT",
- "platform_id": "PLm5E6FbtCZ5vjpCaKhq5PwN",
- "status": "UPLOADED",
- "tags": {
- "test_key_100": "test_val_100"
}, - "type": "DRIVERS_LICENSE_FRONT"
}, - {
- "id": "FILE_eCecW4LCMMfY7nfnBrKpX8",
- "created_at": "2022-10-11T21:19:46.273063Z",
- "updated_at": "2022-10-11T21:19:46.296136Z",
- "application_id": "APgPDQrLD52TYvqazjHJJchM",
- "display_name": "My Drivers License",
- "extension": null,
- "identity_id": null,
- "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk",
- "linked_type": "MERCHANT",
- "platform_id": "PLm5E6FbtCZ5vjpCaKhq5PwN",
- "status": "REQUIRES_UPLOAD",
- "tags": {
- "key_1": "value_1"
}, - "type": "DRIVERS_LICENSE_FRONT"
}
]
}, - "page": {
- "limit": 10,
- "next_cursor": "FILE_abki8bFEjq51eZ5w2pYFik"
}
}
Retrieve the details of a File
resource.
Single File object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_abki8bFEjq51eZ5w2pYFik \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "FILE_abki8bFEjq51eZ5w2pYFik",
- "created_at": "2022-08-16T18:50:25.770825Z",
- "updated_at": "2022-08-16T18:50:25.807321Z",
- "application_id": "APgPDQrLD52TYvqazjHJJchM",
- "display_name": "license_file",
- "extension": null,
- "identity_id": null,
- "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk",
- "linked_type": "MERCHANT",
- "platform_id": "PLm5E6FbtCZ5vjpCaKhq5PwN",
- "status": "REQUIRES_UPLOAD",
- "tags": {
- "test_key_100": "test_val_100"
}, - "type": "DRIVERS_LICENSE_FRONT"
}
List the previously created external_links
for a File
.
sort | string Specify key to be used for sorting the collection. |
after_cursor | string Return every resource created after the cursor value. |
limit | integer The numbers of items to return. Example: limit=10 |
id | string Filter by |
created_at.gte | string Filter where Example: created_at.gte=2022-09-27T11:21:23 |
created_at.lte | string Filter where Example: created_at.lte=2022-09-27T11:21:23 |
updated_at.gte | string Filter where |
updated_at.lte | string Filter where |
before_cursor | string Return every resource created before the cursor value. |
tags.key | string Filter by the |
tags.value | string Filter by the value of a |
List of external_link objects
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_bJecqoRPasStEPVpvKHtgA/external_links \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "external_links": [
- {
- "id": "EL_sVv61JP93htzDFTtNhbsdd",
- "created_at": "2022-05-24T06:50:51.94704Z",
- "duration": null,
- "expired": true,
- "expires_at": "2022-05-24T07:05:51.934426Z",
- "file_id": "FILE_bJecqoRPasStEPVpvKHtgA",
- "tags": { },
- "type": "UPLOAD",
- "user_id": "USsRhsHYZGBPnQw8CByJyEQW"
}, - {
- "id": "EL_dh5YS66GePpkeSVyL4VdBL",
- "created_at": "2022-03-22T01:07:05.074313Z",
- "duration": null,
- "expired": true,
- "expires_at": "2022-03-22T01:22:05.070415Z",
- "file_id": "FILE_bJecqoRPasStEPVpvKHtgA",
- "tags": { },
- "type": "UPLOAD",
- "user_id": "USsRhsHYZGBPnQw8CByJyEQW"
}
]
}, - "page": {
- "limit": 10,
- "next_cursor": "EL_dh5YS66GePpkeSVyL4VdBL"
}
}
Create an external_link
resource to share with users so they can upload files directly from their browser. For more info, see Uploading files to Finix.
Single external_link object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_bJecqoRPasStEPVpvKHtgA/external_links \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -d ' { "duration": 15, "type": "UPLOAD" }'
{- "id": "EL_dh5YS66GePpkeSVyL4VdBL",
- "created_at": "2022-03-22T01:07:05.074313Z",
- "duration": null,
- "expired": true,
- "expires_at": "2022-03-22T01:22:05.070415Z",
- "file_id": "FILE_bJecqoRPasStEPVpvKHtgA",
- "tags": { },
- "type": "UPLOAD",
- "user_id": "USsRhsHYZGBPnQw8CByJyEQW"
}
Upload files directly with a multipart/form-data
request.
Single File object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_bJecqoRPasStEPVpvKHtgA/upload \ -H "Content-Type: multipart/form-data" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -F file=string
{- "id": "FILE_abki8bFEjq51eZ5w2pYFik",
- "created_at": "2022-08-16T18:50:25.770825Z",
- "updated_at": "2022-08-16T18:50:25.807321Z",
- "application_id": "APgPDQrLD52TYvqazjHJJchM",
- "display_name": "license_file",
- "extension": null,
- "identity_id": null,
- "linked_to": "MU2n7BSovtwYsWYZF6rBnnzk",
- "linked_type": "MERCHANT",
- "platform_id": "PLm5E6FbtCZ5vjpCaKhq5PwN",
- "status": "REQUIRES_UPLOAD",
- "tags": {
- "test_key_100": "test_val_100"
}, - "type": "DRIVERS_LICENSE_FRONT"
}
Download a file that was uploaded to a File
resource.
Example response
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_bJecqoRPasStGPVpvKHtgA/download \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "total": 0,
- "_embedded": {
- "errors": [
- {
- "code": "UNKNOWN",
- "logref": {
- "logref": "string"
}, - "message": "string",
- "_links": {
- "self": {
- "href": "string"
}, - "source": {
- "href": "string"
}
}
}
]
}
}
Fetch a previously created external_link
resource.
Single external_link object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/files/FILE_bJecqoRPasStEPVpvKHtgA/external_links/EL_dh5YS66GePpkeSVyL4VdBL \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "EL_dh5YS66GePpkeSVyL4VdBL",
- "created_at": "2022-03-22T01:07:05.074313Z",
- "duration": null,
- "expired": true,
- "expires_at": "2022-03-22T01:22:05.070415Z",
- "file_id": "FILE_bJecqoRPasStEPVpvKHtgA",
- "tags": { },
- "type": "UPLOAD",
- "user_id": "USsRhsHYZGBPnQw8CByJyEQW"
}