The attachments
parameter of the Add Attachments endpoint should contain these fields as key/value pairs.
fileName
required
string
The filename of the attachment.
Pattern: String
Example: "WalMart_receipt.gif"
category
required
string
The category for the attachment: Accountholder
, Association
, Internal
, Supporting Documentation
Pattern: String
Example: "Supporting Documentation"
label
required
string
User-provided string to describe the attachment.
Pattern: String
Example: "Receipt from 3/24"
documentStream
required
string
Base64-encoded file.
Pattern: Base 64-encoded string
Example: "PHRhYmxlIGNsYXNzPSJxdm9Cb2R5Q29udGVudCI+PHRyPjx0ZD4gPCEtLXF2b0JvZHlDb250ZW50"
Example string for attachments
attachments
[{"fileName": "filename1.png", "category": "Supporting Documentation", "label": "receipt1", "documentStream": "PHRhYmxlIGNsYXNzPSJxdm9Cb2R5Q29udGVudCI+PHRyPjx0ZD4gPCEtLXF2b0JvZHlDb250ZW50"}, {"fileName": "filename2.png", "category": "Supporting Documentation", "label": "receipt2", "documentStream": "XNzPSJxdm9Cb2R5Q29PHRhYmxlIGNsYudGVEtLXF2b0JvZHlDudCI+PHRyPjx0ZD4gPCb250ZW50"}]