CordReceipt

Extract the labelled fields of a photographed sales receipt: items with quantity and price, subtotal, tax total, total amount and payment method.

The fields this preset extracts.

payment_methodstring

Method used to complete the payment.

line_itemsarray<object>

Itemized list of products or services purchased.

subtotalnumber

Sum of all line items before tax, as a number without currency symbol.

tax_totalnumber

Total tax charged, as a number without currency symbol.

total_amountnumber

Final amount charged, as a number without currency symbol.

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":"cord"}'
Call mode
Vision 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 photographed sales receipts. Extract only the values printed on the receipt, exactly as they appear. Do not infer or estimate any value. If a field is not printed on the receipt, leave it out of the output. All amounts are numbers without currency symbols. A mark between groups of three digits, as in 60.000 or 24,000, is not a decimal point: write 60.000 as 60000. List each ordered item as one line item with its name, its quantity and unit price when the receipt prints them, and its line total. Payment method must be one of the specified enumerated 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.