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

Parameters: search_articles
NameTypeDescription
query string required string Part of the article name.
limit integer integer Records per page. Default: 50.

Request

cURL
curl "https://cotlet.dev/api/v1/snelstart/articles/search?query=query" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("snelstart", "search_articles", {"query":"query"})
Node.js
const result = await cotlet.call('snelstart', 'search_articles', {"query":"query"});
CLI
cotlet call snelstart search_articles --data '{"query":"query"}'

Example response

JSON

{
  "articles": [
    {
      "article_id": "art_104",
      "name": "Consulting hour",
      "unit_price": 95
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.