Annotate an invoice

Prev Next
Post
/v1/invoices/{invoiceId}/annotate

Add notes and/or tags to an invoice without changing its approval or rejection status.

Use this when you need to attach metadata to an invoice without triggering an approve/reject workflow action. Previously, adding notes or tags required sending an unReject or unApprove action.


Request Fields

Field Type Description
notes string Notes to add. Stored as a communication entry with the acting user's ID and timestamp.
tags string Comma-separated tags to apply to the invoice.

At least one field should be provided. If neither is provided, the response indicates no annotation was added.

Security
HTTP
Type bearer

Enter your API token.

Path parameters
invoiceId
integerRequired

The invoice ID to annotate.

Minimum1
Body parameters
withNotesAndTags

Add Notes and Tags

{
  "notes": "Verified line items against PO",
  "tags": "verified,q1-2024"
}
tagsOnly

Tags Only

{
  "tags": "reviewed"
}
notesOnly

Notes Only

{
  "notes": "Forwarded to accounting for review"
}
object

Request body for invoice actions (annotate, approve, reject, unApprove, unReject). Both fields are optional.

notes
string

Notes to add to the invoice. Stored as a communication entry with the acting user's ID and timestamp.

tags
string

Comma-separated tags to apply to the invoice.

Responses
200

Annotation applied

success

Annotation Added

{
  "status": "OK",
  "msg": "Annotation added.",
  "result": 12345
}
noAnnotation

No Annotation Provided

{
  "status": "OK",
  "msg": "No annotation to add.",
  "result": 12345
}
object
status
string
Valid values[ "OK" ]
msg
string
result
400

Bad Request

invoiceGroup

Invoice Group Not Actionable

{
  "status": "Error",
  "msg": "ID is of an invoice group and is not actionable.",
  "result": null
}
object
status
string
Valid values[ "Error" ]
msg
string
result
401

Unauthorized - Missing or invalid API token

404

Invoice not found

notFound

Not Found

{
  "status": "Error",
  "msg": "Record not found.",
  "result": null
}
object
status
string
Valid values[ "Error" ]
msg
string
result