Get all records with pagination.
The function accepts limit and has a maximum limit that can not be overwritten
Arguments
get
Get one record based on id
Arguments
id
integer, required
add
Add one record
Arguments
object_id
integer, required
object_type
required, in: company, article, article_category
use_stock
integer, required
min_order
float
max_order
float
use_pack
integer, required
allow_float
integer, required
allow_stockout
integer, required
nr_stockout
float
nr_lowstock
float
message_stockout
integer
message_stockout_type
string
message_stockout_who
string
message_lowstock
integer
message_lowstock_type
string
message_lowstock_who
string
set
Edit one record
Arguments
id
integer, required
object_id
integer, required
object_type
required, in: company, article, article_category
use_stock
integer, required
min_order
float
max_order
float
use_pack
integer, required
allow_float
integer, required
allow_stockout
integer, required
nr_stockout
float
nr_lowstock
float
message_stockout
integer
message_stockout_type
string
message_stockout_who
string
message_lowstock
integer
message_lowstock_type
string
message_lowstock_who
string
delete
Delete one record
Arguments
id
integer, required
changelog
Get Change Log for an object
Arguments
id
integer, required
search
Search function
Arguments
getComments
Get Comments related to an object -
@param id is the object id and not the comment id
Arguments
id
integer, required
getComment
Get one comment
@param id is the object id
Arguments
id
integer, required
comment_id
integer, required
addComment
Add a comment to an object
@param id: id of the object to which a comment should be added
@param comment: text of the comment
Arguments
id
integer, required
comment
string, required
updateComment
Update a comment
@params comment_id is the id previously returned by getcomments
@param comment: text of the comment
@param id: id of the object to which a comment should be added
Arguments
id
integer, required
comment_id
integer, required
comment
string, required
deleteComment
Delete a comment
@params comment_id is the id previously returned by getcomments