> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equated.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List the lines a purchase's cost can come from



## OpenAPI

````yaml /openapi.json get /api/assets/cost-lines/{transactionId}
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Keys and MCP, or via the in-app session cookie when called
    from the web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/assets/cost-lines/{transactionId}:
    get:
      tags:
        - Assets
      summary: List the lines a purchase's cost can come from
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
          required: true
          name: transactionId
          in: path
      responses:
        '200':
          description: Lines with what is left to capitalize
          content:
            application/json:
              schema:
                type: object
                properties:
                  lines:
                    type: array
                    items:
                      type: object
                      properties:
                        postingId:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                        accountId:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                        accountName:
                          type: string
                        accountEmoji:
                          type: string
                          nullable: true
                        accountType:
                          type: string
                        orgMerchantId:
                          type: integer
                          nullable: true
                          minimum: 0
                          exclusiveMinimum: true
                        projectId:
                          type: integer
                          nullable: true
                          minimum: 0
                          exclusiveMinimum: true
                        taxRecordId:
                          type: integer
                          nullable: true
                          minimum: 0
                          exclusiveMinimum: true
                        amountBase:
                          type: string
                        sourceEntryId:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                      required:
                        - postingId
                        - accountId
                        - accountName
                        - accountEmoji
                        - accountType
                        - orgMerchantId
                        - projectId
                        - taxRecordId
                        - amountBase
                        - sourceEntryId
                required:
                  - lines
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Keys and MCP.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.