generic_call
Executes authenticated calls to any Accurate Online endpoint. First run schema_lookup to get correct field names and types, then pass params for GET or DELETE, and body for POST.
Instructions
Call any Accurate Online endpoint. Always run schema_lookup on the endpoint first so you know the correct field names, required fields, and types. For GET (list/detail) endpoints pass query params in params. For POST (save) endpoints pass the payload in body. For DELETE pass params (usually {'id': ...} or {'number': ...}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body, for POST (save/bulk-save) endpoints | |
| params | No | Query params, for GET/DELETE endpoints | |
| endpoint | Yes | e.g. 'purchase-invoice/save', matches the key from schema_lookup |