Upload Merchant Documents via API
Merchant boarding documents, required by underwriting, can be provided by using notes, noteDocuments, and files API endpoints.
Steps to upload documents via API:
Create a
note
and associate it with anentity
(the newly created merchant’s entity).POST /notes Content-Type: application/json { "entity": <entity ID>, "type": "note", "note": "Sample description of note" }
Â
Create a
noteDocument
and associate it with the previously creatednote
.POST /noteDocuments Content-Type: application/json { "note": <note ID from step 1>, "type": <file type>, "documentType": <document type>, "description": "Description of file" }
Â
Upload a
file
for the previously creatednoteDocument
.POST /files/noteDocuments/<noteDocument id from step 2> Content-Type: multipart/form-data Body: form-data name: Document Name filename: <Selected File>
Â
Valid file and document type field values are as follows:
File Types | Document Types |
---|---|
|
|
Â