New Light partners with Amesto GlobalLight and Amesto Global Read the announcementRead more

Get contract revenue schedule

GET
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

  • contractId string · uuidrequired

Response

  • postingDate string · date

    Date the lines post to the ledger

  • lines array of object

    Lines posting on this date

    • contractLineId string · uuid

      ID 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

    • description string

      Description of the line, usually the product name

    • transactionSequenceId string

      Sequence ID of the ledger transaction. Null for a preview, which posts nothing

    • amount object

      • amount integer · int64

        Note

        Unsigned integer in minor units. The direction is in dcSign; a negative value is rejected.

      • dcSign string

        ⚠️ This enum is not exhaustive; new values may be added in the future.

        One of D C

    • currency string

      Currency of the amount. The amount is in this currency's minor units

    • status string

      Whether the line has posted to the ledger or is a preview of what will post

      • POSTED - Posted to the ledger
      • PREVIEW - 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 POSTED PREVIEW