| Tool |
Needs |
Description |
list_products |
View products |
by name, code, description; filter by project, category_id, status_id |
get_product |
View products |
a product by id; a bundle returns total_price; include adds items (bundle composition), versions and attachments |
create_product |
Add products |
in a project; category_id from list_product_categories, files in uploads, the logo in image; bundle and items make a bundle |
update_product, delete_product |
Edit / Delete products |
delete cannot be undone; items replaces the composition of a bundle |
add_bundle_item |
Edit products |
adds an active product that is not a bundle to a bundle; quantity is 1 by default |
remove_bundle_item |
Edit products |
removes a product from a bundle by item_id from get_product with include items |
add_product_version |
Edit products |
links a project version to a product |
remove_product_version |
Edit products |
unlinks a version by product_version_id from get_product with include versions |
list_product_categories, get_product_category |
View products |
categories with id, name, code and parent |
list_orders |
View orders list |
by number, subject, description; filter by project and status_id |
get_order |
View orders |
an order; lines and comments only with include |
create_order |
Add orders |
with lines_attributes; statuses from get_project_metadata |
update_order |
Edit orders |
pass lines_attributes to add, update or remove lines |
delete_order |
Delete orders |
with its lines, cannot be undone |