Create Multiple Contracts

Create up to 1,000 new contracts in your SysAid account in one request. The response gives the IDs of the new contracts in the same order as the request. SysAid creates all the contracts as one unit. If one contract fails, SysAid creates none of the contracts.

Body Params

The request body to create multiple contracts in one request. The dateFormat field sets the format of all date values. The request can have a maximum of 1,000 contracts. The maximum size of the request body is about 1 MiB. Send compact JSON, without pretty-printing. If the request body has an unknown top-level field, the API returns 400.

string
enum
required

The date format used for all date values (startDate, endDate) in this request. All contracts in a single request must use the same format.

Allowed:
contracts
array of objects
required
length between 1 and 1000

The contracts to create.

contracts*

A contract to create in a bulk request. If the item has an unknown field, the API returns 400. Bulk mode does not support applicationId or customFields. To link an application, use application with the name of the application. To set customFields, use Create a Contract.

string
required
length between 1 and 255

The display name of the contract (1–255 characters).

string | null

The name of the application to link to this contract (1–255 characters). If an application with this name exists, SysAid links it to the contract. If SysAid finds no application with this name, it creates a new application and links it to the contract.

string
required

The current status of the contract. Allowed values are "active" (currently in effect), "closed" (terminated), "expired" (past its end date; set automatically when the account has automatic expiry turned on), and "pipeline" (planned but not yet active).

string | null

The type of software deployment for this contract. Allowed values are "saas" (cloud-based software), "on-prem" (on-premises software), "hybrid" (combination of cloud and on-premises), and "other".

string | null

The business category of the application. Possible values are "operations", "sales-and-marketing", "developer-tools", "design", "project-management", "customer-success", "human-resources", "it-and-security", "finance", "productivity", "analytics-and-bi" and "other".

string | null

The start date of the contract, in the format specified by the top-level dateFormat field.

string | null

The end date of the contract, in the format specified by the top-level dateFormat field.

string | null

The billing frequency for this contract. Allowed values are "annual", "monthly", "multiyear", "quarterly", "one-time", and "free".

number | null
≥ 0

The total monetary value of the contract in the specified currency.

string

The ISO 4217 currency code of the contract value.

integer | null
≥ 0

The number of licenses included in this contract.

boolean
Defaults to false

The option to renew the contract automatically when it reaches its end date. The default is "false".

integer | null
≥ 0

The number of days before the end date for the cancellation notice. SysAid calculates cancellationDeadline as endDate minus this value.

string | null

The owner of the contract, as free text (for example, a name or an email address). The maximum length is 36 characters.

string | null

Free-text notes or comments about the contract.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json