Guide Accounts payable in Certinia

Certinia Scanned Payable Document: the object, its statuses and its fields

Updated 4 min read By the BAFO team

Short answer: The Scanned Payable Document is the object Certinia uses for its own invoice-capture route. It stores a scanned invoice and the data an OCR service parsed from it as JSON, tracks a status (New, Confirmed, Complete, Failed or Discarded) and the error details when parsing or creating the payable invoice goes wrong, and a payable invoice created from it points back to it. An inbound email service turns invoice attachments sent by email into these documents. It was introduced in Summer 2023, and whether it is enabled for your org is a question for Certinia.

What the object is for

Certinia's data dictionary describes the object in one line: it stores information about a scanned invoice document and the parsed JSON data returned from OCR. Think of it as the staging record between a document and a payable invoice. The document arrives and is read; the Scanned Payable Document holds what was read and how far it got; a payable invoice is created from it when the data is good enough.

That staging step is the reason the object exists. A payable invoice is a ledger-facing record with strict rules; a scanned document may be incomplete, wrong or unreadable. Keeping the two apart lets a failed read sit somewhere a person can fix it.

The statuses

The dictionary lists five values for the status field:

StatusWhat it means in the flow
NewThe document has arrived and has not been processed to a conclusion
ConfirmedThe data has been checked and is ready to become a payable invoice
CompleteA payable invoice has been created from it
FailedParsing, or the creation of the invoice, failed; the error details say why
DiscardedSomeone decided it should not become an invoice

The meanings are our reading of the status names and the surrounding fields, so check them against your release before you build anything on them.

The fields

The dictionary lists a short set of fields, all created in Summer 2023:

LabelHolds
AccountThe vendor, as text
CompanyA lookup to the company the document belongs to
Invoice DateThe date printed on the invoice
Due DateWhen payment is due
Invoice CurrencyThe currency of the document
Invoice TotalThe total amount
Net TotalThe net amount
Vendor Invoice NumberThe supplier's own number
StatusThe processing state
Error DetailsThe reason a parse or an invoice creation failed

The object belongs to the Foundations package, so in your org its API name carries the fferpcore__ prefix: the dictionary of a recent release shows fferpcore__ScannedPayableDocument__c. Check the prefix on the fields in your org before you write a query.

How emailed invoices get there

Certinia ships an inbound email handler for this. Its Apex reference describes a global class, ScannedPayableDocumentEmailService, that implements Salesforce's inbound email handler interface and handles invoice attachments sent by email, converting them into payable documents. You give suppliers, or your own forwarding rule, an address that points at that service, and each attachment becomes a document to process.

The payable invoice object carries a lookup to the scanned document it came from. In the dictionary it is c2g__ScannedPayableDocument__c on c2g__codaPurchaseInvoice__c, added in Summer 2023. That link is useful in two ways: from a payable invoice you can find the document that produced it, and from a document you can see which invoice it became. Reports that compare what was read with what was posted start from it.

Questions to ask before you rely on it

  • Is it enabled for us? Documentation for the 2023.3 release described the feature as part of an early adopter programme, so availability has varied.
  • How does it map lines? The object holds header-level totals; ask how lines, GL accounts, products and tax codes are chosen.
  • What happens to a failure? A document that fails sits with its error details until someone corrects it. Decide who looks, and how often.
  • Which file types and sizes does it read? Check the supported formats for your release.
  • Who is allowed to send? An address that points at an email service is an address anyone who knows it can use.

How this relates to BAFO

BAFO's Accounts Payable Agent is a separate product from this feature: a person approves before an invoice is created. The two can coexist, and many teams keep a native route for some suppliers and an agent for the rest. Certinia AP automation options compared sets out the trade-offs.

Frequently asked questions

Is the Scanned Payable Document the same as the payable invoice?

No. It is the staging record for a scanned document. The payable invoice is the ledger record created from it.

Can I query it like any other object?

Yes, once you know its API name in your org. Read the status and error details to see what failed and why.

Does it work for credit notes?

The object's own fields describe an invoice. Certinia's separate e-invoicing route can produce payable invoices and payable credit notes from structured documents; check the scanned route's behaviour for credit notes in your release.

Where can I read Certinia's own description?

In the technical reference: the Foundations dictionary page for the object, and the Apex reference page for the email service. Both are linked at the foot of this page.

Sources and further reading

Where this page leans on someone else's documentation or standard, it is listed here. Check the release or edition your org runs: official pages change.

Keep reading