invoice-pdf-templates

Build From Pdf

Draft a Template From an Invoice PDF

Reads a PDF the organization's own billing system printed (one invoice, or several, with any terms pages) and drafts the template that prints like it: the closest layout, the elements it prints, issuer and payment details as printed, line-item columns, header fields and terms. The logo is cut out of page 1 and stored, so the draft's logo_url is ready to use. Nothing else is saved; pass the draft's config to createTemplate. Bank details are copied from the page and listed under review for checking. PDF only, up to 20 MB. Requires admin access.

post/v2/invoice-pdf-templates/build-from-pdf

Request

  • Base URL
    https://api.stuut.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

Response

Successful Response

namestring required
layout_namestring required
layout_reasonstring required

Changes

No recorded changes to this operation across all 1 revision of this API.