Japanese Receipt

Extract structured data from Japanese-style receipts with line items, consumption tax (消費税), and payment method tracking.

The fields this preset extracts.

consumption_tax_jpynumber

Total consumption tax amount in JPY.

consumption_tax_rate_percentnumber

Consumption tax (消費税) rate as a percentage (e.g., 10.0).

line_itemsarray<unknown>

Array of purchased items with quantity, unit price, and line total.

merchant_addressstring

Street address of the merchant location.

merchant_namestring

Name of the merchant or store.

payment_methodstring

Payment method used (cash, credit, paypay, suica, or other).

receipt_numberstring

Unique receipt number or transaction ID.

register_idstring

Cash register or terminal identifier at the merchant.

subtotal_jpynumber

Sum of all line items before consumption tax, in JPY.

total_jpynumber

Final amount due in Japanese yen.

transaction_datestring

Date of transaction in ISO-8601 format (YYYY-MM-DD).

transaction_timestring

Time of transaction in HH:MM:SS format (24-hour).

curl
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@your-document.pdf' \
  --form-string 'options={"preset":"receipt_jp"}'
Call mode
Text only
Citations
Enabled
Version
v1

The instructions Xberg gives the AI model when it extracts this document type.

You are a precise structured-data extractor for Japanese receipts. Extract all fields exactly as they appear on the document. Do not infer or estimate values. Dates and times are ISO-8601 strings (YYYY-MM-DD and HH:MM:SS). All JPY amounts are decimal numbers without currency symbols. Consumption tax rate and amount must be extracted literally. For line items, include item name, quantity, unit price in JPY, and line total only when shown. Payment method is one of: cash, credit, paypay, suica, or other. If a field is absent, omit it from the output. Extract the printed total_jpy without calculating missing amounts. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.