Unified.to · Capability

Unified.to API — expense

Unified.to API — expense. 6 operations. Lead operation: List all expenses. Self-contained Naftiko capability covering one Unified To business surface.

Run with Naftiko Unified Toexpense

What You Can Do

GET
Listaccountingexpenses — List all expenses
/v1/accounting/{connection-id}/expense
POST
Createaccountingexpense — Create an expense
/v1/accounting/{connection-id}/expense
DELETE
Removeaccountingexpense — Remove an expense
/v1/accounting/{connection-id}/expense/{id}
GET
Getaccountingexpense — Retrieve an expense
/v1/accounting/{connection-id}/expense/{id}
PATCH
Patchaccountingexpense — Update an expense
/v1/accounting/{connection-id}/expense/{id}
PUT
Updateaccountingexpense — Update an expense
/v1/accounting/{connection-id}/expense/{id}

MCP Tools

list-all-expenses

List all expenses

read-only idempotent
create-expense

Create an expense

remove-expense

Remove an expense

idempotent
retrieve-expense

Retrieve an expense

read-only idempotent
update-expense

Update an expense

idempotent
update-expense-2

Update an expense

idempotent

Capability Spec

accounting-expense.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unified.to  API — expense
  description: 'Unified.to  API — expense. 6 operations. Lead operation: List all expenses. Self-contained Naftiko capability
    covering one Unified To business surface.'
  tags:
  - Unified To
  - expense
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNIFIED_TO_API_KEY: UNIFIED_TO_API_KEY
capability:
  consumes:
  - type: http
    namespace: accounting-expense
    baseUri: https://api.unified.to
    description: Unified.to  API — expense business capability. Self-contained, no shared references.
    resources:
    - name: accounting-connection_id-expense
      path: /accounting/{connection_id}/expense
      operations:
      - name: listaccountingexpenses
        method: GET
        description: List all expenses
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: number
        - name: offset
          in: query
          type: number
        - name: updated_gte
          in: query
          type: string
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ
            format)
        - name: sort
          in: query
          type: string
        - name: order
          in: query
          type: string
        - name: query
          in: query
          type: string
          description: Query string to search. eg. email address or name
        - name: user_id
          in: query
          type: string
          description: The user/employee ID to filter by (reference to HrisEmployee)
        - name: start_gte
          in: query
          type: string
          description: The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - name: end_lt
          in: query
          type: string
          description: The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
        - name: contact_id
          in: query
          type: string
          description: The contact ID to filter by (reference to AccountingContact)
        - name: category_id
          in: query
          type: string
          description: The category ID to filter by (reference to AccountingCategory)
        - name: group_id
          in: query
          type: string
          description: The group ID to filter by (reference to HrisGroup)
        - name: org_id
          in: query
          type: string
          description: The org ID to filter by (reference to AccountingOrganization)
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
      - name: createaccountingexpense
        method: POST
        description: Create an expense
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounting-connection_id-expense-id
      path: /accounting/{connection_id}/expense/{id}
      operations:
      - name: removeaccountingexpense
        method: DELETE
        description: Remove an expense
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Expense
          required: true
      - name: getaccountingexpense
        method: GET
        description: Retrieve an expense
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Expense
          required: true
      - name: patchaccountingexpense
        method: PATCH
        description: Update an expense
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Expense
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updateaccountingexpense
        method: PUT
        description: Update an expense
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Expense
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: authorization
      value: '{{env.UNIFIED_TO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: accounting-expense-rest
    port: 8080
    description: REST adapter for Unified.to  API — expense. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/accounting/{connection-id}/expense
      name: accounting-connection-id-expense
      description: REST surface for accounting-connection_id-expense.
      operations:
      - method: GET
        name: listaccountingexpenses
        description: List all expenses
        call: accounting-expense.listaccountingexpenses
        with:
          limit: rest.limit
          offset: rest.offset
          updated_gte: rest.updated_gte
          sort: rest.sort
          order: rest.order
          query: rest.query
          user_id: rest.user_id
          start_gte: rest.start_gte
          end_lt: rest.end_lt
          contact_id: rest.contact_id
          category_id: rest.category_id
          group_id: rest.group_id
          org_id: rest.org_id
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaccountingexpense
        description: Create an expense
        call: accounting-expense.createaccountingexpense
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounting/{connection-id}/expense/{id}
      name: accounting-connection-id-expense-id
      description: REST surface for accounting-connection_id-expense-id.
      operations:
      - method: DELETE
        name: removeaccountingexpense
        description: Remove an expense
        call: accounting-expense.removeaccountingexpense
        with:
          connection_id: rest.connection_id
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getaccountingexpense
        description: Retrieve an expense
        call: accounting-expense.getaccountingexpense
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchaccountingexpense
        description: Update an expense
        call: accounting-expense.patchaccountingexpense
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateaccountingexpense
        description: Update an expense
        call: accounting-expense.updateaccountingexpense
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: accounting-expense-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unified.to  API — expense. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-all-expenses
      description: List all expenses
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: accounting-expense.listaccountingexpenses
      with:
        limit: tools.limit
        offset: tools.offset
        updated_gte: tools.updated_gte
        sort: tools.sort
        order: tools.order
        query: tools.query
        user_id: tools.user_id
        start_gte: tools.start_gte
        end_lt: tools.end_lt
        contact_id: tools.contact_id
        category_id: tools.category_id
        group_id: tools.group_id
        org_id: tools.org_id
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-expense
      description: Create an expense
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: accounting-expense.createaccountingexpense
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-expense
      description: Remove an expense
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: accounting-expense.removeaccountingexpense
      with:
        connection_id: tools.connection_id
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-expense
      description: Retrieve an expense
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: accounting-expense.getaccountingexpense
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-expense
      description: Update an expense
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: accounting-expense.patchaccountingexpense
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-expense-2
      description: Update an expense
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: accounting-expense.updateaccountingexpense
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.