Guide Accounts payable in Certinia

Certinia payable invoice object: API names and fields

Updated 3 min read By the BAFO team

Short answer: In Certinia the payable invoice is c2g__codaPurchaseInvoice__c. Its lines are c2g__codaPurchaseInvoiceLineItem__c (product lines) and c2g__codaPurchaseInvoiceExpenseLineItem__c (GL account lines). The vendor is a standard Salesforce Account and the company, period and tax code are lookups to other c2g__ objects. The tables below list the fields you will meet when you create or query a payable invoice.

These names follow Certinia's Accounting data dictionary. Certinia is a managed package, so the exact set of fields can vary with your release and configuration. When it matters, ask your own org by describing the object:

GET /services/data/vXX.0/sobjects/c2g__codaPurchaseInvoice__c/describe

The objects

ObjectAPI nameWhat it is
Payable Invoicec2g__codaPurchaseInvoice__cThe vendor invoice header
Payable Invoice Line Itemc2g__codaPurchaseInvoiceLineItem__cA line for a product
Payable Invoice Expense Line Itemc2g__codaPurchaseInvoiceExpenseLineItem__cA line coded to a GL account
Companyc2g__codaCompany__cThe entity whose books the invoice belongs to
User Companyc2g__codaUserCompany__cWhich companies a Salesforce user may work in
Yearc2g__codaYear__cA financial year, which holds its periods
Periodc2g__codaPeriod__cAn accounting period of a company
Accounting Currencyc2g__codaAccountingCurrency__cA currency set up for a company
General Ledger Accountc2g__codaGeneralLedgerAccount__cA GL account
Tax Codec2g__codaTaxCode__cA tax code
Tax Ratec2g__codaTaxRate__cThe rate of a tax code from a start date

Header fields on c2g__codaPurchaseInvoice__c

FieldAPI nameNotes
Vendorc2g__Account__cLookup to the standard Account
Companyc2g__OwnerCompany__cLookup to the company
Vendor invoice numberc2g__AccountInvoiceNumber__cThe number printed on the vendor's invoice
Invoice datec2g__InvoiceDate__c
Due datec2g__DueDate__c
Periodc2g__Period__cThe period must exist and be open
Invoice currencyc2g__InvoiceCurrency__cLookup to an accounting currency record, not an ISO code
Derive currencyc2g__DeriveCurrency__cWhen true, Certinia derives the currency from the vendor
Statusc2g__InvoiceStatus__cThe invoice status, for example Discarded
Totalc2g__InvoiceTotal__cCertinia's total of the invoice

Line item fields

Product line, c2g__codaPurchaseInvoiceLineItem__c:

FieldAPI name
Invoicec2g__PurchaseInvoice__c
Productc2g__Product__c
Descriptionc2g__LineDescription__c
Quantityc2g__Quantity__c
Unit pricec2g__UnitPrice__c

Expense line, c2g__codaPurchaseInvoiceExpenseLineItem__c:

FieldAPI name
Invoicec2g__PurchaseInvoice__c
GL accountc2g__GeneralLedgerAccount__c
Descriptionc2g__LineDescription__c
Net valuec2g__NetValue__c
Input tax codec2g__InputVATCode__c
Tax rate, tax valuec2g__TaxRate1__c, c2g__TaxValue1__c
Dimensions 1 to 4c2g__Dimension1__c to c2g__Dimension4__c

Two things to know

  1. Currency is a lookup, not text. The invoice currency points at the company's accounting currency record, not at an ISO code typed as text: see currency errors.
  2. The period has to exist. If the date on the invoice is not covered by the company's calendar, Certinia refuses it: see the financial calendar error and company, year and period explained.

More detail is in the expense line tax code field, currency errors on a payable invoice and detecting duplicate vendor invoices. The vendor side is in vendor account set-up, and the queries for reading these objects are collected in the SOQL cheat sheet.

Where BAFO fits

For the work of turning an invoice document into this record, see Certinia accounts payable automation.

Frequently asked questions

What is the API name of the payable invoice object in Certinia?

c2g__codaPurchaseInvoice__c. Salesforce API names are not case-sensitive, so you may see it written c2g__codaPurchaseinvoice__c as well.

What is the difference between a product line and an expense line?

A product line (c2g__codaPurchaseInvoiceLineItem__c) refers to a product and carries a quantity and unit price. An expense line (c2g__codaPurchaseInvoiceExpenseLineItem__c) is coded straight to a GL account and carries a net value. Which one you use depends on how your company codes its purchases.

Can I create payable invoices through the Salesforce API?

Yes: they are objects like any other, so they can be created through the Salesforce REST API. Certinia also publishes its own Apex API for operations such as posting; check your release's documentation for it.

Do these names apply to FinancialForce?

Yes. Certinia is the current name of FinancialForce and the c2g__ names did not change.

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