An attachment can be any document, such as a bill, spreadsheet, or tax form, that provides tangible, historical, and auditable information in support of a transaction or financial record.
Attachments
List Attachments (Legacy)
Consider limiting the fields and maxitems returned because attachment data, which can be very large, is also sent.
get_list
Parameters
Name
Required
Type
Description
object
Required
string attribute
Use supdoc
maxitems
Optional
integer attribute
Maximum number of items to return.
start
Optional
integer attribute
First item from total result set to include in response, zero-based integer.
showprivate
Optional
boolean attribute
Show entity private records if running this at top level. Use either true or false. (Default: false)
Multiple filter expressions that should be evaluated with and or or. Logical filters can be nested to create complex and/or logic. Required if not using expression.
Expressions to be evaluated as filters, and optionally additional logical evaluations.
get_list.filter.expression
Name
Required
Type
Description
field
Required
string
Name of the field to be compared.
operator
Required
string
Comparison operator. Valid operators are
=
!=
<
<=
>
>=
like
is null
value
Required
string
Comparison value.
get_list.sort.sortfield
Name
Required
Type
Description
order (attribute)
Required
string
Sort order for this named field. Use either asc or desc.
Get Attachment by ID (Legacy)
Consider limiting the fields and maxitems returned because attachment data, which can be very large, is also sent.
get
Parameters
Name
Required
Type
Description
object
Required
string
Use supdoc
key
Required
string
Object supdocid to get
fields
Optional
field[0...n]
Field(s) to return in response
Create Attachment (Legacy)
create_supdoc
Parameters
Name
Required
Type
Description
supdocid
Optional
string
Attachment ID. Required if company does not have attachment autonumbering configured.
supdocname
Required
string
Name of attachment
supdocfoldername
Required
string
Attachments folder to create in
supdocdescription
Optional
string
Description
attachments
Optional
attachment[0...n]
Zero to many attachments
attachment
Name
Required
Type
Description
attachmentname
Required
string
File name, no period or extension
attachmenttype
Required
string
File extension, no period
attachmentdata
Required
string
Base64 encode the file’s binary data
Update Attachment (Legacy)
You can update the header information for the attachment, and you can provide additional attachment files using update.
You cannot use update to modify the contents of an existing attachment file directly. To work around this, delete the existing attachment and start over, providing the new attachment file in the create call.
update_supdoc
Update the header information and provide an additional attachment file.
Parameters
Name
Required
Type
Description
supdocid
Required
string
Attachment ID to update
supdocname
Optional
string
Name of attachment
supdocfoldername
Optional
string
Attachments folder to create in
supdocdescription
Optional
string
Description
attachments
Optional
attachment[0...n]
attachment
Name
Required
Type
Description
attachmentname
Required
string
File name for a new attachment, no period or extension.
attachmenttype
Required
string
File extension, no period
attachmentdata
Required
string
Base64 encode the file’s binary data
Delete Attachment (Legacy)
delete_supdoc
Parameters
Name
Required
Type
Description
key
Required
string
Attachment ID to delete
Attachment Folders
List Attachment Folders (Legacy)
get_list
Parameters
Name
Required
Type
Description
object
Required
string
Use supdocfolder
maxitems
Optional
integer attribute
Maximum number of items to return.
start
Optional
integer attribute
First item from total result set to include in response, zero-based integer.
showprivate
Optional
boolean attribute
Show entity private records if running this at top level. Use either true or false. (Default: false)
Multiple filter expressions that should be evaluated with and or or. Logical filters can be nested to create complex and/or logic. Required if not using expression.