v1 - Card Transactions

Create card transaction line

Adds a line to a card transaction

post/v1/card-transactions/{transactionId}/lines

Request

  • Base URL
    https://light.inc (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

transactionIdstring uuid required

Request body

accountIdstring uuid nullable

ID of the ledger account to book this line against.

taxCodeIdstring uuid nullable

ID of the tax code to apply to this line. The line's tax is calculated from it.

costCenterIdstring uuid nullable

ID of the cost center.

amountinteger nullable

Gross line amount in minor units (e.g. cents), including tax. Positive; the line takes the card transaction's direction.

descriptionstring nullable

Description of this line.

amortizationTemplateIdstring uuid nullable

ID of the amortization template to apply to this line.

amortizationStartDatestring date nullable

Start date for amortization of this line.

amortizationEndDatestring date nullable

End date for amortization of this line.

Response

default response

idstring uuid
transactionIdstring uuid
companyIdstring uuid
accountIdstring uuid
taxCodeIdstring uuid
costCenterIdstring uuid
amountinteger
netAmountinteger
taxAmountinteger
descriptionstring
createdAtstring date-time
updatedAtstring date-time
amortizationTemplateIdstring uuid
amortizationStartDatestring date
amortizationEndDatestring date

Changes

No recorded changes to this operation across all 1 revision of this API.