Receipts

Extract receipt and generate expense report document

Combines receipt extraction and document generation in a single call.

  1. Extracts data from the uploaded receipt image using AI
  2. Generates a formatted expense report PDF or DOCX using the extracted data

Optionally provide a template name to use a custom expense report template. Without a template, a clean default HTML-based expense report is generated.

This endpoint consumes AI credits for the extraction step plus standard credits for the document generation.

post/api/receipts/to-document

Request

  • Base URL: https://api.dokmatiq.com
  • URL: https://api.dokmatiq.com/api/receipts/to-document
  • Auth: API key in header X-API-Key

Query parameters

formatstring

Output format (PDF or DOCX)

templateNamestring

Optional template name for expense report layout

titlestring

Document title / heading

Response

Generated expense report document

Changes

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