Codat · Capability

Lending — Company info

Lending — Company info. 2 operations. Lead operation: Get company commerce profile. Self-contained Naftiko capability covering one Codat business surface.

Run with Naftiko CodatCompany info

What You Can Do

GET
Getcommerceprofile — Get company commerce profile
/v1/companies/{companyid}/connections/{connectionid}/data/commerce-info
GET
Getaccountingprofile — Get company accounting profile
/v1/companies/{companyid}/data/info

MCP Tools

get-company-commerce-profile

Get company commerce profile

read-only idempotent
get-company-accounting-profile

Get company accounting profile

read-only idempotent

Capability Spec

lending-company-info.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lending — Company info
  description: 'Lending — Company info. 2 operations. Lead operation: Get company commerce profile. Self-contained Naftiko
    capability covering one Codat business surface.'
  tags:
  - Codat
  - Company info
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CODAT_API_KEY: CODAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: lending-company-info
    baseUri: https://api.codat.io
    description: Lending — Company info business capability. Self-contained, no shared references.
    resources:
    - name: companies-companyId-connections-connectionId-data-commerce-info
      path: /companies/{companyId}/connections/{connectionId}/data/commerce-info
      operations:
      - name: getcommerceprofile
        method: GET
        description: Get company commerce profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: companies-companyId-data-info
      path: /companies/{companyId}/data/info
      operations:
      - name: getaccountingprofile
        method: GET
        description: Get company accounting profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.CODAT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: lending-company-info-rest
    port: 8080
    description: REST adapter for Lending — Company info. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/companies/{companyid}/connections/{connectionid}/data/commerce-info
      name: companies-companyid-connections-connectionid-data-commerce-info
      description: REST surface for companies-companyId-connections-connectionId-data-commerce-info.
      operations:
      - method: GET
        name: getcommerceprofile
        description: Get company commerce profile
        call: lending-company-info.getcommerceprofile
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/companies/{companyid}/data/info
      name: companies-companyid-data-info
      description: REST surface for companies-companyId-data-info.
      operations:
      - method: GET
        name: getaccountingprofile
        description: Get company accounting profile
        call: lending-company-info.getaccountingprofile
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lending-company-info-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lending — Company info. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-company-commerce-profile
      description: Get company commerce profile
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-company-info.getcommerceprofile
      outputParameters:
      - type: object
        mapping: $.
    - name: get-company-accounting-profile
      description: Get company accounting profile
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-company-info.getaccountingprofile
      outputParameters:
      - type: object
        mapping: $.