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_jpynumberTotal consumption tax amount in JPY.
consumption_tax_rate_percentnumberConsumption tax (消費税) rate as a percentage (e.g., 10.0).
line_itemsarray<unknown>Array of purchased items with quantity, unit price, and line total.
merchant_addressstringStreet address of the merchant location.
merchant_namestringName of the merchant or store.
payment_methodstringPayment method used (cash, credit, paypay, suica, or other).
receipt_numberstringUnique receipt number or transaction ID.
register_idstringCash register or terminal identifier at the merchant.
subtotal_jpynumberSum of all line items before consumption tax, in JPY.
total_jpynumberFinal amount due in Japanese yen.
transaction_datestringDate of transaction in ISO-8601 format (YYYY-MM-DD).
transaction_timestringTime of transaction in HH:MM:SS format (24-hour).
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.