Upload a document to a stipulation
POST/applications/:applicationId/creditors/:creditorId/stipulations
Accepts PDF, PNG, JPEG, HEIC, TIFF and DOCX, detected from file contents. Maximum decoded size is 25 MiB. Only a clean virus scan permits storage in S3 and dispatch of the income or funding document command.
Choosing where the document goes. Name the stipulation whenever the lender has asked for the document. Name a document type only for a document the lender has not asked for:
stipulationId— preferred, and used whenever it is present. An entry from the stipulation list whoseacceptsUploadsis true. Other stipulations return 400. A bank connection stipulation (INCOME/BANK_ACCOUNT) is completed only by the applicant connecting their bank account; upload aBANK_STATEMENTincome document instead, which is filed under its own stipulation.typewithdocumentType— for a document nobody has asked for yet, as the portal allows. The document is filed under the applicant's existing stipulation of that type when there is one, and otherwise creates it. ForINCOME,documentTypeisPAYSTUB,LETTER_OF_EMPLOYMENT,NOTICE_OF_ASSESSMENTorBANK_STATEMENT, or omit it and give atitlefor any other income document. ForFUNDING,documentTypeis thesubTypethe list reports (CONTRACT,PROOF_OF_IDENTITY,REFERENCES,PRE_AUTHORIZED_DEBIT,PROOF_OF_INSURANCE,VEHICLE_REGISTRATION,SALES_AGREEMENT,LOAN_AGREEMENT,CREDIT_APPLICATION,CARFAX,VEHICLE_HISTORY_CHECKLIST,CUSTOMER_IDENTIFICATION_FORM,IDV_REPORT,EXTENDED_SERVICE_CONTRACT,GAP_INSURANCE,GPS,LIFE_INSURANCE,AH_INSURANCE), orOTHERwith atitle. A stipulation created this way appears in the stipulation list once the projection catches up.
Who can upload what. A retailer, or the creditor that owns the application, can upload income and funding documents. A creditor the application was submitted to can upload income documents when it has income analysis; those go to its own analysis.
Submitting to the lender. The uploaded document is also sent to the lender unless submitToLender is false. When it cannot be sent — the lender takes documents only in its own portal, or the caller may not submit — the upload still succeeds, with submittedToLender false and the reason in submitError. Passing submitToLender: true explicitly as a caller that may not submit returns 403 and stores nothing.
Request
Responses
- 201
- 400
- 403
- 404
- 413
- 500
Clean document stored and attachment command completed
Invalid base64, unsupported document type or stipulation, an applicant that is not on the application, rejected scan, or domain validation failure
Access denied
Application, creditor application or stipulation not found
Decoded file exceeds 25 MiB
Scanner, storage or command processing failed