Contract
Create a contract
Changed onUse this endpoint to create a new contract based on the selected template.
post/contracts/create
Request
- Base URLhttps://api.oneflow.com/v1
- Authnone declared. Required headers: x-oneflow-api-token, x-oneflow-user-email
Headers
x-oneflow-api-tokenstring required
The API key of your Oneflow account.
x-oneflow-user-emailstring email required
The email address of a registered Oneflow user.
Request body
Example request
{
"workspace_id": 130001,
"template_id": 170001,
"data_fields": [
{
"custom_id": "custom_id_first_name",
"value": "First Name"
}
],
"my_party": {
"participants": [
{
"email": "own@email.com"
}
]
},
"parties": [
{
"participant": {
"name": "Firstname Lastname"
}
}
],
"tags": [
{
"id": 380001
}
],
"value": {
"amount": "500.10"
}
}Response
Returns the created contract.
Changes
- info
added the optional property
to the response with the status - info
added the required property
///to the response with the status
- info