---
title: "Update card transaction line"
method: PATCH
path: "/v1/card-transactions/{transactionId}/lines/{transactionLineId}"
tags: ["v1 - Card Transactions"]
---

# Update card transaction line

`PATCH /v1/card-transactions/{transactionId}/lines/{transactionLineId}`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/card-transactions/{transactionId}/lines/{transactionLineId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Updates a specific card transaction line item

## Path parameters

- `transactionId` string, uuid, required
- `transactionLineId` string, uuid, required

## Request body

- ExternalUpdateCardTransactionLineRequestV1Model
  - `customProperties` ExternalSetCustomPropertyRequestV1Model[], nullable
    - `groupId` string, uuid: ID of the custom property group.
    - `valueIds` string[]: IDs of the selected custom property values. It behaves as a PUT operation, so if empty the existing ones will be effectively deleted.
    - `inlineValues` string[], nullable: Inline custom property values (used for TEXT/NUMERIC/DATE/etc. groups). It behaves as a PUT operation, so if empty or null the existing ones will be effectively deleted.
  - `accountId` string, uuid, nullable
  - `taxCodeId` string, uuid, nullable
  - `costCenterId` string, uuid, nullable
  - `amount` integer, nullable
  - `description` string, nullable
  - `amortizationTemplateId` string, uuid, nullable
  - `amortizationStartDate` string, date, nullable
  - `amortizationEndDate` string, date, nullable

## Response `default`

default response

- ExternalCardTransactionLineV1Model
  - `id` string, uuid
  - `transactionId` string, uuid
  - `companyId` string, uuid
  - `accountId` string, uuid
  - `taxCodeId` string, uuid
  - `costCenterId` string, uuid
  - `amount` integer
  - `netAmount` integer
  - `taxAmount` integer
  - `description` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `customProperties` ExternalCustomPropertyV1Model[]
    - `groupId` string, uuid: ID of the custom property group
    - `groupInternalName` string: Internal name of the custom property group
    - `values` ExternalCustomPropertyValueV1Model[]: List of values. Note that this will be a single value unless the group input type supports multiple values
      - `id` string, uuid: Unique identifier for the object
      - `groupId` string, uuid: ID of the custom property group
      - `groupInternalName` string: Internal name of the custom property group
      - `companyId` string, uuid: ID of the company
      - `internalName` string: Internal name of the custom property value
      - `label` string: Label of the custom property value
      - `context` string, nullable: Context/description of the custom property value
      - `createdAt` string, date-time: Timestamp when the custom property value was created
      - `updatedAt` string, date-time: Timestamp when the custom property value was last updated
  - `amortizationTemplateId` string, uuid
  - `amortizationStartDate` string, date
  - `amortizationEndDate` string, date

---

[API](https://skmtc.dev/light/apis/light-api.md) - [All operations](https://skmtc.dev/light/apis/light-api/llms.txt) - [OpenAPI document](https://skmtc.dev/light/apis/light-api/revisions/84f51306f648?raw)
