Guide Accounts payable in Certinia
Certinia payable invoice object: API names and fields
Short answer: In Certinia the payable invoice is
c2g__codaPurchaseInvoice__c. Its lines arec2g__codaPurchaseInvoiceLineItem__c(product lines) andc2g__codaPurchaseInvoiceExpenseLineItem__c(GL account lines). The vendor is a standard SalesforceAccountand the company, period and tax code are lookups to otherc2g__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
| Object | API name | What it is |
|---|---|---|
| Payable Invoice | c2g__codaPurchaseInvoice__c | The vendor invoice header |
| Payable Invoice Line Item | c2g__codaPurchaseInvoiceLineItem__c | A line for a product |
| Payable Invoice Expense Line Item | c2g__codaPurchaseInvoiceExpenseLineItem__c | A line coded to a GL account |
| Company | c2g__codaCompany__c | The entity whose books the invoice belongs to |
| User Company | c2g__codaUserCompany__c | Which companies a Salesforce user may work in |
| Year | c2g__codaYear__c | A financial year, which holds its periods |
| Period | c2g__codaPeriod__c | An accounting period of a company |
| Accounting Currency | c2g__codaAccountingCurrency__c | A currency set up for a company |
| General Ledger Account | c2g__codaGeneralLedgerAccount__c | A GL account |
| Tax Code | c2g__codaTaxCode__c | A tax code |
| Tax Rate | c2g__codaTaxRate__c | The rate of a tax code from a start date |
Header fields on c2g__codaPurchaseInvoice__c
| Field | API name | Notes |
|---|---|---|
| Vendor | c2g__Account__c | Lookup to the standard Account |
| Company | c2g__OwnerCompany__c | Lookup to the company |
| Vendor invoice number | c2g__AccountInvoiceNumber__c | The number printed on the vendor's invoice |
| Invoice date | c2g__InvoiceDate__c | |
| Due date | c2g__DueDate__c | |
| Period | c2g__Period__c | The period must exist and be open |
| Invoice currency | c2g__InvoiceCurrency__c | Lookup to an accounting currency record, not an ISO code |
| Derive currency | c2g__DeriveCurrency__c | When true, Certinia derives the currency from the vendor |
| Status | c2g__InvoiceStatus__c | The invoice status, for example Discarded |
| Total | c2g__InvoiceTotal__c | Certinia's total of the invoice |
Line item fields
Product line, c2g__codaPurchaseInvoiceLineItem__c:
| Field | API name |
|---|---|
| Invoice | c2g__PurchaseInvoice__c |
| Product | c2g__Product__c |
| Description | c2g__LineDescription__c |
| Quantity | c2g__Quantity__c |
| Unit price | c2g__UnitPrice__c |
Expense line, c2g__codaPurchaseInvoiceExpenseLineItem__c:
| Field | API name |
|---|---|
| Invoice | c2g__PurchaseInvoice__c |
| GL account | c2g__GeneralLedgerAccount__c |
| Description | c2g__LineDescription__c |
| Net value | c2g__NetValue__c |
| Input tax code | c2g__InputVATCode__c |
| Tax rate, tax value | c2g__TaxRate1__c, c2g__TaxValue1__c |
| Dimensions 1 to 4 | c2g__Dimension1__c to c2g__Dimension4__c |
Two things to know
- 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.
- 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.
- c2g__codaPurchaseInvoice__c, Certinia Accounting Dictionary - help.certinia.com
- Payable Invoice Fields (Certinia Help) - help.certinia.com
- Creating Payable Invoices (Certinia Help) - help.certinia.com
Keep reading
Certinia error "The financial calendar does not include" a date
Why a payable invoice fails with "The financial calendar does not include <date>", how to find the gap in your company's calendar, and how to fix it.
What is a payable invoice in Certinia?
A payable invoice is the Certinia record of a supplier's bill, with its lines coded to GL accounts or products and tax codes.
PDF invoice extraction for Certinia
What BAFO reads from a vendor invoice and how it becomes a draft Certinia Payable Invoice for a person to approve.
Certinia API: how to read and write Certinia data
Three ways to reach Certinia data - the Salesforce REST API and SOQL for records, Certinia's Apex API for operations such as posting, and Certinia's REST services.