Activities
Accounting activities (con_actividad) for invoice classification.
📄️ Get activity by ID
Returns a single accounting activity by its primary key.
📄️ Update activity
Full replacement of an existing accounting activity.
📄️ Delete activity
Deletes an accounting activity.
📄️ Merge-patch activity
RFC 7396 merge-patch over `application/merge-patch+json`. Send only the fields you want to change; include a field with value `null` to remove it. Use the `If-Match` header for optimistic concurrency control.
📄️ List activities
Returns a paginated list of accounting activities with envelope `{data, totalCount, skip, limit, hasMore}`. Supports optional RSQL `filter`, `sort` (default `code:asc`), `skip`/`limit` pagination and `modifiedAfter`/`modifiedBefore` bookends.
📄️ Create activity
Creates a new accounting activity via the internal commands gateway.
📄️ Prototype activity for a creation form
Returns a non-persisted activity pre-populated with backend defaults (`enabled=true`, current company, next available `code`). Optional JSON hints: `companyId`, `copyFromId`. Call `POST /api/v2/activities` afterwards to persist.