Accounting Apex API Developer Reference

c2g.CODAAPIPurchaseInvoiceTypes_9_0

global with sharing class CODAAPIPurchaseInvoiceTypes_9_0

Represents information that applies to the whole purchase invoice and acts as a container for a number of purchase invoice line items. See "Purchase Invoice Fields" and "What is a Purchase Invoice" in the Certinia Help for more details.

Enums

enumIncomeTaxType

Category of 1099 income tax. These types relate to the boxes on Forms 1099-MISC and 1099-NEC.

enumInvoiceStatus

Possible purchase invoice statuses.

Value Description
InProgress The document has been saved, but has not been posted.
Complete The document has been posted.
Discarded The document is no longer required, but evidence needs to be retained. You must provide a discard reason.

c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice

global with sharing class PurchaseInvoice

Represents information that applies to the whole purchase invoice and acts as a container for a number of purchase invoice line items. See "Purchase Invoice Fields" and "What is a Purchase Invoice" in the Certinia Help for more details.

Properties

Name Type Description
AccountInvoiceNumber string Number of the invoice sent by the vendor.
Account c2g.CODAAPICommon.Reference Reference to the vendor Account for this purchase invoice. Mandatory.
Dimension1 c2g.CODAAPICommon.Reference Reference to the Dimension 1 record by which you want to analyze this account.
Dimension2 c2g.CODAAPICommon.Reference Reference to the Dimension 2 record by which you want to analyze this account.
Dimension3 c2g.CODAAPICommon.Reference Reference to the Dimension 3 record by which you want to analyze this account.
Dimension4 c2g.CODAAPICommon.Reference Reference to the Dimension 4 record by which you want to analyze this account.
DiscardReason string Reason why the invoice was discarded.
DualRate decimal The exchange rate for home to dual currency.
DueDate date Date the purchase credit note is due for payment. Mandatory.
ExpensesNetTotal decimal Total value of expense line items on the purchase invoice, before tax.
ExpensesTax1Total decimal Total value of tax on expense line items posted to (VAT) tax code 1.
IncomeTaxTypeRef c2g.CODAAPIPurchaseInvoiceTypes_9_0.enumIncomeTaxType Default category of 1099 income tax withheld for this account or Not Reportable. These types relate to the boxes on Forms 1099-MISC and 1099-NEC.
InvoiceCurrency c2g.CODAAPICommon.Reference Reference to the currency in which monetary values are expressed on the invoice. Mandatory.
InvoiceDate date Date of the invoice. Mandatory.
InvoiceDescription string Description of the invoice.
InvoiceRate decimal The exchange rate for document to home currency.
InvoiceStatus c2g.CODAAPIPurchaseInvoiceTypes_9_0.enumInvoiceStatus Current status of the invoice. Mandatory.
InvoiceTotal decimal Total invoice value, including the tax.
ItemsNetTotal decimal Total value of product line items on the purchase invoice, before tax.
ItemsTax1Total decimal Total value of tax on product line items posted to (VAT) tax code 1.
MatchTypeRef string This value is "Credited" if the purchase invoice has been fully matched to a purchase credit note.
NetTotal decimal Total value of items on the purchase invoice, before tax.
OutstandingValue decimal Amount still owed on this document in document currency.
OwnerCompany c2g.CODAAPICommon.Reference Reference to the Company to which this document belongs.
PaymentStatus string Is this document "Unpaid", "Part Paid", or "Paid"?
Period c2g.CODAAPICommon.Reference Reference to the accounting Period in which this document falls. Mandatory.
Reference1 string The vendor's order number, your organization or company's order number, the buyer's name, or any other reference detail.
Reference2 string The vendor's order number, your organization or company's order number, the buyer's name, or any other reference detail.
RegisteredDate date Date the purchase credit note was entered.
TaxCode1 c2g.CODAAPICommon.Reference Reference to the (VAT) tax code to use, along with the invoice date, to derive the tax for this line.
TaxTotal decimal Total value of tax on the purchase invoice.
TransactionRef c2g.CODAAPICommon.Reference Reference to the Transaction created when the purchase invoice was posted.
Year string Name of the year.
CreatedById c2g.CODAAPICommon.Reference ID of the user who created the record.
LastModifiedById c2g.CODAAPICommon.Reference ID of the user who last modified the record.
CreatedDate datetime Date and time when the record was created.
Id id Globally unique string that identifies the record.
LastModifiedDate datetime Date and time when the record was last modified by a user.
SystemModstamp datetime Date and time when the record was last modified by a user or by a workflow process (such as a trigger).
Name string Unique number allocated to this purchase invoice.
OwnerId c2g.CODAAPICommon.Reference ID of the user who owns the record.
IsDeleted boolean Indicates whether the record has been moved to the Recycle Bin (true) or not (false).
LineItems c2g.CODAAPIPurchaseInvoiceLineItemTypes_9_0.PurchaseInvoiceLineItems Reference to the associated purchase invoice line items (products). Mandatory.
ExpLineItems c2g.CODAAPIPurchaseInvoiceExpLineTypes_9_0.PurchaseInvoiceExpenseLineItems Reference to the associated purchase expense invoice line items.
CustomFields List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.CustomField> Reference to the list of user-defined fields that have been exposed with a type 1 integration rule.

c2g.CODAAPIPurchaseInvoiceTypes_9_0.CustomField

global with sharing class CustomField implements CODAAPICommon.IAPICustomField

Holds the information about the user-defined fields that have been exposed with a type 1 integration rule. See "Integration Rules - Type 1" in the Certinia Help for more details.
The same read and write permissions granted for the Certinia application extend to the Certinia API.

Properties

Name Type Description
FieldName string Name of the user-defined field.
Value string Value of the user-defined field.
© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.