Skip to main content
POST
/
v1
/
files
/
contracts
/
generate
Generate a contract
curl --request POST \
  --url https://api-eu.flexportal.io/v1/files/contracts/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-ID: <tenant-id>' \
  --data '
{
  "orderId": "<string>",
  "contractType": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "fileId": "<string>",
  "orderId": "<string>",
  "tenantId": "<string>"
}

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Body

application/json
orderId
string
required
Minimum string length: 1
contractType
string

Response

Contract generated

success
enum<boolean>
required
Available options:
true,
false
message
string
required
fileId
string
required
orderId
string
required
tenantId
string
required