Replace invoice payable specification rows
https://api.light.inc/v1/invoice-payables/{invoicePayableId}/specification-rows
Replaces every specification row of a self-billed invoice payable that is still a draft. The rows print on the second page of its PDF, in the order sent, and never post. Send an empty list to remove them all.
Permission: bills:update
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
invoicePayableIdstring · uuidrequired
Request body
application/json;charset=UTF-8
-
rowsarray of objectSpecification rows in print order. Replaces every row the bill had. At most 500.
-
sectionstringHeading of the group the row prints under, such as
Gross revenue per market. Rows with the same section in a run print together under one heading. -
labelstringText the row prints, such as
FCR-D Up -
codestringShort code printed next to the label, such as
fcr_d_up -
periodStartstring · dateFirst day of the period the row covers
-
periodEndstring · dateLast day of the period the row covers
-
quantitynumberQuantity the row covers
-
quantityUnitstringUnit of the quantity, such as
MWh -
unitPricenumberPrice per unit of the quantity
-
volumenumberA second measure printed in its own column, such as capacity in MW
-
volumeUnitstringUnit of the volume, such as
MW -
amountinteger · int64Amount in the smallest denomination of
amountCurrency, when it differs from the bill's currency -
amountCurrencystringCurrency of
amount -
documentAmountinteger · int64Amount in the smallest denomination of the bill's currency
-
percentagenumberPercentage the row prints, such as 8 for a share of 8%
-
rowKindstringDETAILfor an ordinary row,SUBTOTALorTOTALfor a row printed in bold. Defaults toDETAIL.⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DETAILSUBTOTALTOTAL
-
Response
-
idstring · uuidUnique identifier of the specification row
-
positioninteger · int32Zero-based position of the row on the specification, in the order the rows were sent
-
sectionstringHeading of the group the row prints under, such as
Gross revenue per market. Rows with the same section in a run print together under one heading. -
labelstringText the row prints, such as
FCR-D Up -
codestringShort code printed next to the label, such as
fcr_d_up -
periodStartstring · dateFirst day of the period the row covers
-
periodEndstring · dateLast day of the period the row covers
-
quantitynumberQuantity the row covers
-
quantityUnitstringUnit of the quantity, such as
MWh -
unitPricenumberPrice per unit of the quantity
-
volumenumberA second measure printed in its own column, such as capacity in MW
-
volumeUnitstringUnit of the volume, such as
MW -
amountinteger · int64Amount in the smallest denomination of
amountCurrency, when it differs from the bill's currency -
amountCurrencystringCurrency of
amount -
documentAmountinteger · int64Amount in the smallest denomination of the bill's currency
-
documentAmountCurrencystringCurrency of
documentAmount. It follows the bill's currency when that changes -
percentagenumberPercentage the row prints, such as 8 for a share of 8%
-
rowKindstringDETAILfor an ordinary row,SUBTOTALorTOTALfor a row printed in bold. Defaults toDETAIL.⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DETAILSUBTOTALTOTAL