Creates a new contract
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
ID of the company entity
Contract start date
Contract end date
ID of the invoice template to use for generating invoices
"USD"
Estimated total amount for the contract in cents
Date when the contract should be renewed
Payment type for invoices generated from this contract
BANK_TRANSFER - Payment via bank transfer. Bank information will be displayed on the invoiceSTRIPE - 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.
BANK_TRANSFER, STRIPE ID of the bank account where payments should be sent
Number of days from invoice date to when payment is due. Defaults to 30
Date when billing should start for this contract
Description of the contract
ID of the customer
Whether invoice line amounts include tax or tax is added on top. Defaults to true
List of custom properties to set on the contract or line
List of custom properties to set on the vendor. Replaces the existing set.
List of contract line items to create
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
Date when the contract should be renewed
ID of the entity
ID of the invoice template to use for generating invoices
"USD"
Estimated total amount for the contract in cents
Payment type for invoices generated from this contract
BANK_TRANSFER - Payment via bank transfer. Bank information will be displayed on the invoiceSTRIPE - 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.
BANK_TRANSFER, STRIPE 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
Description of the contract
ID of the customer
Current state of the contract
CREATED - Contract has been createdDRAFT - Contract is in draft state and can be editedACTIVE - Contract is active and generating invoicesTERMINATED - Contract has been terminated⚠️ This enum is not exhaustive; new values may be added in the future.
CREATED, DRAFT, ACTIVE, TERMINATED Whether invoice line amounts include tax or tax is added on top
List of contract line items. Only returned when fetching a single contract by ID
Name of the tax engine to be used
AVATAX - Avalara AvaTax will be used for tax calculationsLIGHT - Light built-in tax engine will be used for tax calculationsSPHERE - Sphere tax engine will be used for tax calculations⚠️ This enum is not exhaustive; new values may be added in the future.
AVATAX, LIGHT, SPHERE External identifier from an external system
Source system if contract was synced from an external system
HUBSPOT - Contract synced from HubSpotSALESFORCE - Contract synced from Salesforce⚠️ This enum is not exhaustive; new values may be added in the future.
HUBSPOT, SALESFORCE List of custom properties associated with the contract
Custom properties set on the vendor.
Timestamp when the contract was created
Timestamp when the contract was last updated