BizKitHub
DocsAPI ReferenceInvoice/bff/document/regenerate-pdf
postInvoiceAdmin BFF

/bff/document/regenerate-pdf

Re-renders the invoice PDF from the current loadInvoiceDescription() output — useful after a customer address or notice is corrected. Overwrites the file blob on shop__invoice.blob_id and, for order-attached invoices, appends a fresh shop__order_file row. Refuses to run on snapshot-locked invoices.

InvoicepostBffDocumentRegenerate-pdf

Parameters

JSON body

Request body

application/json
idstringRequired

External invoice ID.

ExampleaB3xKm9pQ2wLn4Yz

Response schema

1 status code documented

200Success
successbooleanRequired
fileobjectOptional
tokenstringRequired
filenamestringRequired
sizenumberRequired
downloadUrlstringRequired

Response example

application/json
{
  "success": false,
  "file": {
    "token": "example_token",
    "filename": "example_filename",
    "size": 0,
    "downloadUrl": "example_downloadUrl"
  }
}

Request example

POST /bff/document/regenerate-pdf

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

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key