# Link a document to a business fronting loan or fronting factoring application Links a document resource to a business fronting loan or fronting factoring application. Use this endpoint to upload the required documents for a fronting loan or fronting factoring, such as signed contracts, credit risk reports, or invoices. You must add the and in the request body. Note that you must make a separate API call for each document. Endpoint: PUT /v1/businesses/{business_id}/fronting_loan_applications/{application_id}/documents Version: 1.0 ## Path parameters: - `business_id` (string, required) The ID of the business applying for a fronting loan or fronting factoring. - `application_id` (string, required) The ID of the business fronting loan or fronting factoring application. ## Request fields (application/json): - `document_id` (string, required) The unique ID of the document resource. Example: "69ec2a9d8dbaf5ea1b13124098a34ea3cdoc" - `document_type` (string, required) The type of the document. Example: "SIGNED_CONTRACT" ## Response 400 fields (application/json): - `code` (string) Example: "build_pagination_headers_failure" - `detail` (string) Example: "Cannot connect to database." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "400" - `title` (string) Example: "Failed to build pagination headers." ## Response 403 fields (application/json): - `code` (string) Example: "unauthorized_action" - `detail` (string) Example: "Unauthorized action is not allowed." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "403" - `title` (string) Example: "Unauthorized Action" ## Response 404 fields (application/json): - `code` (string) Example: "model_not_found" - `detail` (string) Example: "Couldn't find 'Account' for id 'DE24112233445566'." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "404" - `title` (string) Example: "Model Not Found"