Publish contract
Publishes a contract, transitioning it to ACTIVE state
Request
- Base URLhttps://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
Headers
Response
default response
Unique identifier for the object
ID of the company
Contract start date
Contract end date
Timestamp when the contract was activated/published
Timestamp when the contract was terminated
Reason for contract termination
Categorized reason for contract termination
- FINISHED - Contract ran to its natural end
- OTHER - Terminated for another reason, described in terminationReason
- RENEWED - Contract ended because it was renewed into a new contract
⚠️ This enum is not exhaustive; new values may be added in the future.
Date when the contract should be renewed
ID of the entity
ID of the invoice template to use for generating invoices
Estimated total amount for the contract in cents
Payment type for invoices generated from this contract
- AIRWALLEX - Payment via Airwallex. A payment link will be displayed on the invoice
- BANK_TRANSFER - Payment via bank transfer. Bank information will be displayed on the invoice
- DIRECT_DEBIT - Payment via direct debit. A notice that the amount will be collected automatically will be displayed on the invoice
- STRIPE - Payment via Stripe. A payment link will be sent to the customer
⚠️ This enum is not exhaustive; new values may be added in the future.
ID of the bank account where payments should be sent
Date when billing should start for this contract
Number of days from invoice date to when payment is due
Number of days before billing period start to date the invoice
Description of the contract
ID of the customer
Current state of the contract
- CREATED - Contract has been created
- DRAFT - Contract is in draft state and can be edited
- ACTIVE - Contract is active and generating invoices
- PENDING_TERMINATION - Contract has a scheduled termination
- TERMINATED - Contract has been terminated
⚠️ This enum is not exhaustive; new values may be added in the future.
Whether invoice line amounts include tax or tax is added on top
Name of the tax engine to be used
- AVATAX - Avalara AvaTax will be used for tax calculations
- LIGHT - Light built-in tax engine will be used for tax calculations
- SPHERE - Sphere tax engine will be used for tax calculations
⚠️ This enum is not exhaustive; new values may be added in the future.
External identifier from an external system
Source system if contract was synced from an external system
- HUBSPOT - Contract synced from HubSpot
- SALESFORCE - Contract synced from Salesforce
⚠️ This enum is not exhaustive; new values may be added in the future.
Timestamp when the contract was created
Timestamp when the contract was last updated
Example response
{
"currency": "USD"
}Changes
No recorded changes to this operation across all 1 revision of this API.