Get contract revenue schedule
https://api.light.inc/v1/contracts/{contractId}/revenue-schedule
The contract's revenue schedule, grouped by posting date. For a published contract these are the entries Light posted, plus a preview of what an open edit would post. For a draft it is a preview of what publishing would post. Each line's status says which it is, and a preview posts nothing. An open edit that re-publishing would refuse previews nothing. A draft returns an empty list if it is missing a field publishing needs, such as the customer, or if its revenue schedule would post into a closed period.
Permission: contracts:read
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
-
contractIdstring · uuidrequired
Response
-
postingDatestring · dateDate the lines post to the ledger
-
linesarray of objectLines posting on this date
-
contractLineIdstring · uuidID of the contract line the amount is deferred on. Revenue moved to another line stays on the line that gave it. Null for a termination clearing, which no contract line owns
-
descriptionstringDescription of the line, usually the product name
-
transactionSequenceIdstringSequence ID of the ledger transaction. Null for a preview, which posts nothing
-
amountobject-
amountinteger · int64Note
Unsigned integer in minor units. The direction is in
dcSign; a negative value is rejected. -
dcSignstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DC
-
-
currencystringCurrency of the amount. The amount is in this currency's minor units
-
statusstringWhether the line has posted to the ledger or is a preview of what will post
POSTED- Posted to the ledgerPREVIEW- Preview of what publishing the contract or its open edit would post. Nothing is posted
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
POSTEDPREVIEW
-