DocsAPI ReferenceContract/bff/contract/finalize
postContractAdmin BFF

/bff/contract/finalize

Generates the final PDF from the contract content, uploads it to blob storage, and links it to the contract record. Sets the contract status to "approved" and records the signed date. A finalized contract is considered ready for signing. This operation is irreversible — once a PDF is generated, the contract cannot be finalized again.

ContractpostBffContractFinalize

Parameters

1 body

1 total
Body · 1
idstringRequired

Contract external ID to finalize.

Request

POST /bff/contract/finalize

post
curl -X POST "https://api.bizkithub.com/bff/contract/finalize" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "id": "ctr_abc123"
}'

Response

JSON payload

{
  "success": false,
  "blobId": 101
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key