Search articles
Finds articles by name so an invoice line can use them.
GET https://cotlet.dev/api/v1/snelstart/articles/search
read
Returns matching articles with ID, name and price. SnelStart needs an article on every invoice line, even for hours or services, and each article belongs to a revenue group, which cannot be created in SnelStart Web.
Parameters
| Name | Type | Description |
|---|---|---|
| query string required | string | Part of the article name. |
| limit integer | integer | Records per page. Default: 50. |
Request
curl "https://cotlet.dev/api/v1/snelstart/articles/search?query=query" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("snelstart", "search_articles", {"query":"query"}) const result = await cotlet.call('snelstart', 'search_articles', {"query":"query"}); cotlet call snelstart search_articles --data '{"query":"query"}' Example response
{
"articles": [
{
"article_id": "art_104",
"name": "Consulting hour",
"unit_price": 95
}
]
}