# Add document to a Trade Finance application Attaches a previously uploaded document to the business's Trade Finance application. Note that you must upload the document using the endpoint. Endpoint: POST /v1/businesses/{business_id}/trade_finance_applications/{id}/documents Version: 1.0 ## Path parameters: - `business_id` (string, required) ID of the business that submitted the application. - `id` (string, required) ID of the Trade Finance application. ## Request fields (application/json): - `document_id` (string, required) The ID of the uploaded document Example: "5004c4c8f24b4c4990a646b740647e09cdoc" - `type` (string, required) MIME type of the file Enum: "pdf/bwa_susa", "pdf/complete_annual_statements", "pdf/signed_contract", "xml/credit_summary", "xml/creditreform_wirtschaftsauskunft" ## Response 400 fields (application/json): - `title` (string) Example: "Failed to build pagination headers." - `status` (string) Example: "400" - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `detail` (string) Example: "Cannot connect to database." - `code` (string) Example: "build_pagination_headers_failure" ## Response 403 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.source` (object,null) Optional computer-friendly error source description Example: {"message":"is_required","field":"name"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required" - `errors.backtrace` (array,null) Optional array of backtrace lines ## Response 404 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.source` (object,null) Optional computer-friendly error source description Example: {"message":"is_required","field":"name"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required" - `errors.backtrace` (array,null) Optional array of backtrace lines