BizKitHub
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

JSON body

Request body

application/json
idstringRequired

Contract external ID to finalize.

Examplectr_abc123

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the contract was finalized successfully.

blobIdnumberRequired

Internal blob ID of the stored PDF file.

Example101

Response example

application/json
{
  "success": false,
  "blobId": 101
}

Request example

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"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key