Skip to content

Item Bill Attachment

Returns Attachments on Item Bill transactions.

Released
Updated
URLSupports
/{cf_uri}/Purchase/Bill/Item/{Bill_UID}/Attachment
GETPOSTDELETE
The {guid} in the URL above is replaced with the unique ID for any given company file

Attribute Details

AttributeTypeNotes
UIDGuid (36)Unique guid identifier created for a spend money transaction.
Attachments []ArrayThe Array that contains the Attachment.
Attachments [].UIDGuid (36)Unique guid identifier created for the Attachment.
Attachments [].OriginalFileNameStringThe Original filename of the uploaded document.
Attachments [].ThumbnailUriStringA s3 pre-signed url using for getting uploaded document thumbnail. The uri will expire after 1-2 minutes.
Attachments [].FileUriStringA s3 pre-signed url using for getting uploaded document thumbnail. The uri will expire after 1-2 minutes.
Attachments [].FileBase64ContentStringWill always return as null in a GET.
Attachments [].URIStringUniform resource identifier associated with the Attachment.
Attachments [].RowVersionStringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time.
URIStringUniform resource identifier associated with the list of Attachments.
RowVersionStringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time.
Attachments []
Required
ArrayThe Array that contains the Attachment.
OriginalFileName
Required
StringThe Original filename of the uploaded document.
FileBase64Content
Required
StringContent of the file.

POST Request

For more information , check out our Knowledge base article "Bill's Attachment Endpoint".

Example GET repsonse

Example

json
{
  "UID": "4e03c825-d2cc-4318-97f2-9aea19766ab2",
  "Attachments": {
    "UID": "ac7f6c6e-500a-4828-8602-56b04304364a",
    "OriginalFileName": "94bcf0bb-913e-4da9-8e8f-764cff49908c-item.pdf",
    "ThumbnailUri": "https://production-alex....ca401631b7a122c706b22b505c19f080e",
    "FileUri": "https://production-alex....ac6c9a969318ac759498aa7fc07b\"",
    "FileBase64Content": "null",
    "URI": "{cf_uri}/Purchase/Bill/Item/4e03c825-d2cc-4318-97f2-9aea19766ab2/Attachment/ac7f6c6e-500a-4828-8602-56b04304364a",
    "RowVersion": "0"
  },
  "URI": "{cf_uri}/Purchase/Bill/Item/4e03c825-d2cc-4318-97f2-9aea19766ab2/Attachment",
  "RowVersion": "0"
}

Example POST request

Example

json
{
  "Attachments": {
    "OriginalFileName": "94bcf0bb-913e-4da9-8e8f-764cff49908c-item.pdf",
    "FileBase64Content": "J..KJH"
  }
}