Skip to main content

Add Document

The add-document endpoint gives users the ability to upload documents to our platform and securely store them to specific account numbers and document types.

POST
/account-api/v1/add-document

File Restrictions

The below restrictions are placed on the file that is being uploaded to the API:

  • Maximum File Size 10 MB
  • Allowed File Types: .pdf, .jpg, .jpeg, .bmp, .png, .tiff, .tif

Request

Request Headers

KeyValue
Content-Typemultipart/form-data

Request Body

To upload a document, your request should include form data with the following attributes:

AttributeTypeRequiredDescription
documentTypeNametext✔️The type of document being uploaded.
referencetext✔️A reference or note related to the document file.
accountNumbertext✔️The account number associated with the document.
commentstextInformation for user's reference.
displayNametextInformation that will be displayed for reference.
filefile✔️The document file to upload.*

Response

The data attribute of the JSON response contains details about the uploaded document:

AttributeData TypeDescription
documentIdstringUnique identifier for the document.
subNumberstringSub Number of the account that owns the document
repCodestringRep code of the account that owns the document
accountNumberstringThe account number associated with the document.
displayNamestringInformation that will be displayed for reference.
createdDatestringDate the document was stored to StoneX.
updatedDatestringDate the document was updated to StoneX.
statusstringThe approval status of the document is stored in StoneX.