---
title: "Invoice extraction: what is the invoice number and amount?"
description: "Clairic extracts the invoice number and amount from invoice text; when the total due has no figure, the amount comes back null."
canonical: "https://system-one.dev/en/demo/invoice-extraction"
language: "en"
---

# Invoice extraction: what is the invoice number and amount?

Clairic extracts the invoice number and amount from invoice text; when the total due has no figure, the amount comes back null.

What is the invoice number and amount? Clairic extracts both from invoice text. When the total due says "to be confirmed", the amount comes back null, because Clairic returns null when the input doesn't determine a value; the invoice number is still extracted.
## Scenario
- [What should the character do next?](https://system-one.dev/en/demo/npc-action): What should the character do next? When health is low it drinks a potion to stay alive; when health is high it attacks.
- [Is this email phishing?](https://system-one.dev/en/demo/phishing-email): Is this email phishing? A fake Apple notice is judged high risk; an internal company maintenance notice is judged low risk.
- [Will this post be deleted?](https://system-one.dev/en/demo/tweet-moderation): Will this post be deleted? A joke about Monday meetings stays up; abuse aimed at a group is flagged for deletion.
- [Which answer is more reliable?](https://system-one.dev/en/demo/llm-judge): Which answer is more reliable? Picks the more accurate one. Swap the order of the two answers and the verdict stays the same.
- [Is this change safe to merge?](https://system-one.dev/en/demo/code-review-risk): Is this change safe to merge? Deleting a folder without checking the path is blocked; after adding a path check, the risk drops.
- [Invoice extraction: what is the invoice number and amount?](https://system-one.dev/en/demo/invoice-extraction): What is the invoice number and amount? Clairic extracts both from invoice text. When the total due says "to be confirmed", the amount comes back null, because Clairic returns null when the input doesn't determine a value; the invoice number is still extracted.

## Related article

- [What Is Clairic? Extraction Models Explained](https://system-one.dev/en/blog/what-is-clairic)
- [Invoice & receipt extraction API: text and receipt photos](https://system-one.dev/en/use-cases/invoice-receipt-extraction)

[About Clairic](https://system-one.dev/en/models/clairic)

[Sign in to try →](https://system-one.dev/en/playground?scenario=invoice-extraction&variant=a) · [Blog](https://system-one.dev/en/blog)
