BizKitHub
DocsAPI ReferenceInvoice/bff/document/clone
postInvoiceAdmin BFF

/bff/document/clone

Duplicates an invoice as a fresh draft (status open, today's issue date, recomputed due date). When incrementMonth is true (default), any "M/YYYY" or "MM/YYYY" patterns in the line descriptions are advanced by one month, supporting recurring monthly billing.

InvoicepostBffDocumentClone

Parameters

JSON body

Request body

application/json
idstringRequired

External invoice ID of the source invoice.

ExampleaB3xKm9pQ2wLn4Yz
incrementMonthbooleanOptional

Whether to auto-increment "M/YYYY" tokens in line descriptions. Defaults to true.

Default: true

Response schema

1 status code documented

200Success
idstringRequired

External ID of the new draft invoice.

sequenceNumberstringRequired

Sequence number of the new draft invoice.

Response example

application/json
{
  "id": "example_id",
  "sequenceNumber": "example_sequenceNumber"
}

Request example

POST /bff/document/clone

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

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key