cURL
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>" }
Generates a PDF contract for an order using tenant-configured templates.
API key obtained from FlexPortal dashboard
Your tenant identifier
1
Contract generated
true
false