mine=true.
Teams only narrow what you see. They never give anyone access to more. Anyone with Write access
can manage teams.
Create a team
Send a name, a filter and the people who should be on the team. Find user IDs withGET /v1/members, and your own with GET /v1/me.
team.json covers supplier A or B, delivered to recipient C:
and or or. Groups can contain other groups. The
endpoint reference lists every field and operator you can use.
Things to know about filters
- Use IDs, not names. Suppliers, recipients and tags are referred to by ID. Look them up with
/v1/suppliers,/v1/recipientsand/v1/agreements/tags. - Each condition is checked on its own. An agreement with one large USD invoice and one small NOK invoice matches “amount over 1,000 and currency NOK”, even though no single invoice meets both.
- Invoice amounts include VAT and are compared as they are, without currency conversion.
- A team without a filter matches nothing.
Change a team
PATCH /v1/teams/{id} changes the name, the filter or both. A filter you send replaces the whole
saved filter. Add people with POST /v1/teams/{id}/members and remove them with
DELETE /v1/teams/{id}/members/{user_id}. Deleting a team is permanent, but doesn’t touch any
invoices, agreements or other records.
Use teams in lists
mine=truereturns records covered by any team you’re on.team_ids=<id>,<id>returns records covered by the teams you choose, whether or not you’re a member.