Tags
Learn how to add tags to your objects and have more control over your workflows.
Overview
Payables, receivables, and counterparts can have custom tags assigned to them, such as “Travel expenses” or “Events”. Tags are useful for improving organization, reporting, and workflows by enabling detailed categorization and tracking.
Tag names are case-sensitive, so Marketing
and marketing
are two different tags.
Optionally, you can set the tag to a category and description. The available categories are document_type
, department
, project
, cost_center
, vendor_type
, payment_method
, and approval_status
.
Create a tag
Before you can add tags to an object, you have to create those tags in Monite. To create a tag, call POST /tags
:
The response contains the ID assigned to this tag name:
Add tags to an object
Once you have a tag ID, add it to the list of tags of the object’s tag_ids
list by sending a PATCH
request to the:
/payables/{payable_id}
endpoint for payables;/receivables/{receivable_id}
endpoint for receivables;/counterparts/{counterpart_id}
endpoint for counterparts.
Payables
Receivables
Counterparts
If the object in question already has some tags, the tag_ids
list in the request body must specify both the existing and new tags (since the PATCH
request replaces the tag_ids
list rather than appends to it).
Tags auto-assignment for payables
You can define sets of specific tags to be automatically assigned to new payables created via OCR. This feature must be enabled in the entity settings via the payables_ocr_auto_tagging
field.
Additionally, you must specify a set of keywords that Monite will use to search within the created payables. Monite searches by substring and is case-insensitive. When one of these keywords is detected during the OCR process, the corresponding tag will be automatically assigned to the payable:
List all tags
To list all existing tags, call GET /tags
:
You will get a list of tag names and IDs:
Update a tag
To update a tag, call PATCH /tags/{tag_id}
and provide the new value in the request body:
The description
and category
fields can also be updated.
Delete a tag
Call DELETE /tags/{tag_id}
to delete an existing tag by its ID. This tag will be automatically deleted from all objects where it is used: