Create a contract

Use this endpoint to create a new contract based on the selected template.

Body Params

Request body parameters for creating a contract.

integer
required

The unique ID of the workspace.

integer
required

The unique ID of the template.

data_fields
array of objects

The data fields to be included in the contract.

data_fields
integer

The unique ID of the folder.

my_party
object

Legal entity representing the party of the current user's Oneflow account (the owner side party).

string
length between 0 and 130
parties
array of objects
length between 0 and 40

The list of parties in the contract, representing companies, organizations, government departments, etc. Each party object must follow the object representation of either the individual or the company type of party.

parties
product_groups
array of objects

The list of product groups (product tables) in the template or contract. It is possible to add products to multiple product groups if these product groups exist in the template. Ensure that the template for your contract contains at least one product table. Otherwise, the product_groups setting will fail. Note that if your template contains only one product table, it is not mandatory to include the product group id in the request. Note that by default, the limit for products per contract is 150 (includes all product tables). This can be increased for your account if desired by contacting Oneflow support.

product_groups
tags
array of objects

List of tags for contract.

tags
object | null

The deal size of a contract as an amount of money.

Headers
string
required
length between 40 and 40

The API key of your Oneflow account.

string
required

The email address of a registered Oneflow user.

Responses

400

Invalid format or content of the request.

404

A required entity is missing.

409

A conflict occurred with the current state of the target resource.

Language
URL
Choose an example:
application/json