Skip to main content
POST
Create invoice manually (JSON, no PDF)

Overview

Create an invoice by submitting the invoice data as structured JSON, without uploading a PDF document. Use this endpoint when you have no invoice file and want to pass all fields manually. Unlike the PDF upload endpoint, no OCR runs on this path, so the created invoice is marked with data_extraction_status: "manual". The invoice amounts automatically update the claim’s total_claim_amount via database triggers.
Need to attach an actual PDF invoice (with OCR extraction)? Use POST /openapi/claims//invoices (multipart/form-data) instead.

Request Format

  • Content-Type: application/json
  • All fields are optional. Amounts must be non-negative and dates must be valid ISO 8601 (YYYY-MM-DD); invalid values return a 400.

Authentication

Requires API Token authentication via Bearer token.

Path Parameters

string
required
UUID of the claim you are attaching an invoice to

Request Body (JSON)

string
Invoice number/reference
string
Name of the invoice issuer (creditor)
string
Name of the invoice recipient (debtor)
string
Invoice subject/description
number
Net invoice amount (before tax). Must be ≥ 0.
number
Gross invoice amount. Must be ≥ 0. Feeds claims.total_claim_amount.
string
Invoice issue date in ISO 8601 format (YYYY-MM-DD)
string
Invoice due date in ISO 8601 format (YYYY-MM-DD)
number
Reminder fees already incurred by creditor. Must be ≥ 0. Feeds claims.total_claim_amount.

Examples

cURL
JavaScript
Python

Responses

Notes

  • This endpoint only accepts JSON; it does not handle file uploads.
  • No OCR runs; the invoice is stored with data_extraction_status: "manual".
  • invoice_amount_gross and creditor_reminder_fees_incurred automatically update the claim’s total_claim_amount via database triggers.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

claim_id
string<uuid>
required

UUID of the claim to attach the invoice to

Body

application/json
invoice_number
string

Invoice number/reference

invoice_issuer
string

Name of the invoice issuer (creditor)

invoice_recipient
string

Name of the invoice recipient (debtor)

subject
string

Invoice subject/description

invoice_amount_net
number

Net invoice amount (before tax)

Required range: x >= 0
invoice_amount_gross
number

Gross invoice amount. Feeds claims.total_claim_amount.

Required range: x >= 0
invoice_issue_date
string<date>

Invoice issue date (ISO 8601, YYYY-MM-DD)

invoice_due_date
string<date>

Invoice due date (ISO 8601, YYYY-MM-DD)

creditor_reminder_fees_incurred
number

Reminder fees already incurred by creditor. Feeds claims.total_claim_amount.

Required range: x >= 0

Response

Invoice created

success
boolean
data
object