Skip to main content
POST
/
contracts
/
cURL
curl --request POST \
  --url https://api.getenso.ai/contracts/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'SellerEntityId=<string>' \
  --form 'PurchaserEntityId=<string>' \
  --form 'InvoiceTemplateId=<string>' \
  --form 'Plans={
  "planId": "<string>",
  "startDate": "2023-12-25",
  "endDate": "2023-12-25"
}' \
  --form 'taxes={
  "name": "<string>",
  "percentage": 123
}' \
  --form file=@example-file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Contract object that needs to be created

SellerEntityId
string
required

ID of the seller entity

PurchaserEntityId
string
required

ID of the buyer entity

InvoiceTemplateId
string
required

ID of the invoice template to use for this contract

Plans
object[]
required

List of plans associated with the contract

file
file

File to upload for the contract

taxes
object[]

List of taxes associated with the contract

I