Upload invoice PDF to claim
Upload a PDF invoice and attach it to a claim. The invoice amount will automatically update the claim’s total_claim_amount via database triggers.
Important: Only PDF files are accepted. This endpoint requires multipart/form-data with a PDF file upload.
Field Mapping:
total_amount→ Stored asinvoice_amount_grossmaturity_date→ Stored asinvoice_due_dateissue_date→ Stored asinvoice_issue_date
multipart/form-data with a PDF file upload.
The interactive playground cannot send file uploads; use Insomnia/Postman for testing.Overview
Upload a PDF invoice and attach it to a claim. When you upload a PDF, it is stored and linked to the claim, and OCR attempts to extract invoice data and populate the invoice record.Request Format
- Content-Type:
multipart/form-data - Required field:
file(PDF only) - Optional text fields:
invoice_number,total_amount,maturity_date,issue_date,invoice_issuer,invoice_recipient,subject,invoice_amount_net,creditor_reminder_fees_incurred
Authentication
Requires API Token authentication via Bearer token.Path Parameters
Request Body (Multipart Form)
invoice_amount_gross)invoice_due_date)invoice_issue_date)Testing Instructions
- Create a new request: Method
POST, URL/openapi/claims//invoices - Auth tab: Type
Bearer, Token = your API token - Body tab: Type
Multipart Form- Add field
filewith typeFile, select your.pdf(original filename is automatically preserved) - Optional text fields:
invoice_number,total_amount,maturity_date,issue_date,invoice_issuer,invoice_recipient,subject,invoice_amount_net,creditor_reminder_fees_incurred
- Add field
- Send request and verify
201response
multipart/form-data, the original PDF filename is automatically preserved.The Mintlify playground cannot send multipart/form-data with files. Use Insomnia/Postman for testing.Examples
Responses
Notes
- This endpoint only accepts PDF file uploads via
multipart/form-data - OCR runs on uploaded PDFs and may populate invoice fields automatically
- The invoice amount will automatically update the claim’s total_claim_amount via database triggers
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
UUID of the claim to attach invoice to
Body
Invoice PDF file to upload (only PDF files are accepted)
Invoice number/reference
Total invoice amount (gross) in EUR
Invoice due/maturity date
Invoice issue/creation date
Name of the invoice issuer (creditor)
Name of the invoice recipient (debtor)
Invoice subject/description
Net invoice amount (before tax)
Reminder fees already incurred by creditor