Accounting Apex API Developer Reference

c2g.CODAAPISalesInvoice_10_0

global with sharing class CODAAPISalesInvoice_10_0

The service class relating to Sales Invoices.

This class contains deprecated items.

Properties

Name Type Description
VERSION_STRING String The API version.
SERVICE_NAME String The name of the service.

Methods

GetAPIVersion

webService static String GetAPIVersion()

Used to get the latest API version.

Return Value

Text

GetServiceName

webService static String GetServiceName()

Used to get the name of the service.

Return Value

Text

CreateInvoice

webService static c2g.CODAAPICommon.Reference CreateInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIInvoiceTypes_10_0.Invoice value)

This service allows you to create a sales invoice. See "Sales Invoice Fields" and "What is a Sales Invoice" in the FinancialForce Help for more details.

This version of the service allows you to create a sales invoice in a company that is not selected as the current company:

  • When creating a sales invoice using the FinancialForce API, you must specify the company name using the context.CompanyName input parameter.
  • When creating a sales invoice using the Salesforce API you must specify the company name using the invoice.OwnerCompany field.
Use the SalesInvoiceSave (Save Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIInvoiceTypes_10_0.Invoice Holds details of the sales invoice you want to create.

Return Value

This web service returns a CODAAPICommon.Reference object.

CreateRecurringInvoice

webService static void CreateRecurringInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIInvoiceTypes_10_0.Invoice value)

This service allows you to create a recurring sales invoice. Use the SalesInvoiceSave (Save Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIInvoiceTypes_10_0.Invoice Holds details of the recurring sales invoice you want to create.

Return Value

This web service does not return a value.

UpdateInvoice

webService static c2g.CODAAPICommon.Reference UpdateInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIInvoiceTypes_10_0.Invoice value)

This service allows you to update a sales invoice.

Use the SalesInvoiceEdit (Edit Sales Invoices) custom permission to grant permissions on this service. This version of the service allows you to update a sales invoice in a company that is not selected as the current company:

  • When updating a sales invoice using the FinancialForce API, you must specify the company name using the context.CompanyName input parameter.
  • When updating a sales invoice using the Salesforce API you must specify the company name using the invoice.OwnerCompany field.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIInvoiceTypes_10_0.Invoice Holds details of the sales invoice you want to update.

Return Value

This web service returns a CODAAPICommon.Reference object.

PostInvoice

webService static void PostInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to post a sales invoice.
Use the SalesInvoicePost (Post Sales Invoices) custom permission to grant permissions on this service. If FinancialForce Accounting is integrated with Avalara's AvaTax product for the calculation of Sales and Use Tax, see "Posting Sales Documents That Have Their Tax Value Calculated by AvaTax" for advice about which service to use for posting your sales documents.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to post.

Return Value

This web service does not return a value.

GetInvoice

webService static c2g.CODAAPIInvoiceTypes_10_0.Invoice GetInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to retrieve a sales invoice.

This version of the service allows you to retrieve a sales invoice from a company that is not selected as the current company:

  • When retrieving a sales invoice using the FinancialForce API, you must specify the company name using the context.CompanyName input parameter.
  • When retrieving a sales invoice using the Salesforce API you must specify the company name using the invoice.OwnerCompany field.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to retrieve.

Return Value

This web service returns a c2g.CODAAPIInvoiceTypes_10_0.Invoice object.

PlaceOnHold

webService static void PlaceOnHold(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to place a sales invoice on hold. Use the SalesInvoicePlaceOnHoldOrRelease (Hold or Release Sales Invoice Collection) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to place on hold.

Return Value

This web service does not return a value.

ReleaseForCollection

webService static void ReleaseForCollection(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to place a sales invoice on hold. Use the SalesInvoicePlaceOnHoldOrRelease (Hold or Release Sales Invoice Collection) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to release for collection.

Return Value

This web service does not return a value.

PrintInvoiceToEmail

webService static void PrintInvoiceToEmail(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to print a sales invoice by emailing it to the account. Use the SalesInvoiceEmailPDF (Send Sales Invoices by Email) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to print.

Return Value

This web service does not return a value.

PrintInvoice

webService static Blob PrintInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to print a sales invoice to a PDF file. Use the SalesInvoicePrintPDF (Print Sales Invoices as PDF) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to print.

Return Value

This web service returns a Blob object.

MarkAsPrinted

webService static void MarkAsPrinted(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to set the Printed flag on a sales invoice to record that it has been printed. Use the SalesInvoicePrint (Print Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to mark as printed.

Return Value

This web service does not return a value.

BulkCreateInvoice

webService static c2g.CODAAPICommon.Reference[] BulkCreateInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIInvoiceTypes_10_0.Invoice[] values)

This service allows you to create sales invoices in bulk. Use the SalesInvoiceSave (Save Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIInvoiceTypes_10_0.Invoice[] Holds details of the sales invoices you want to create.

Return Value

This web service returns an array of CODAAPICommon.Reference objects.

BulkUpdateInvoice

webService static c2g.CODAAPICommon.Reference[] BulkUpdateInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIInvoiceTypes_10_0.Invoice[] values)

This service allows you to update sales invoices in bulk. Use the SalesInvoiceEdit (Edit Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIInvoiceTypes_10_0.Invoice[] Holds details of the sales invoices you want to update.

Return Value

This web service returns an array of CODAAPICommon.Reference objects.

BulkPlaceOnHold

webService static void BulkPlaceOnHold(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values)

Mass on hold activation of sales invoices Use the SalesInvoicePlaceOnHoldOrRelease (Hold or Release Sales Invoice Collection) custom permission to grant permissions on this service.

BulkReleaseForCollection

webService static void BulkReleaseForCollection(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values)

Mass release of sales invoices for collection Use the SalesInvoicePlaceOnHoldOrRelease (Hold or Release Sales Invoice Collection) custom permission to grant permissions on this service.

BulkPostInvoice

webService static void BulkPostInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values)

This service allows you to post sales invoices in bulk.
Use the SalesInvoicePost (Post Sales Invoices) custom permission to grant permissions on this service. If FinancialForce Accounting is integrated with Avalara's AvaTax product for the calculation of Sales and Use Tax, see "Posting Sales Documents That Have Their Tax Value Calculated by AvaTax" for advice about which service to use for posting your sales documents.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPICommon.Reference[] Identifies the sales invoices you want to post.

Return Value

This web service does not return a value.

DiscardInvoice

webService static void DiscardInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value, String discardMessage)

This service allows you to discard a sales invoice.
Use the SalesInvoiceDiscard(Discard Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the sales invoice you want to discard.
discardMessage String Identifies the discard reason on discarded sales invoice.

Return Value

This web service does not return a value.

BulkDiscardInvoice

webService static void BulkDiscardInvoice(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values, String discardMessage)

This service allows you to discard sales invoices in bulk.
Use the SalesInvoiceDiscard(Discard Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPICommon.Reference[] Identifies the sales invoices you want to discard.
discardMessage String Identifies the discard reason on discarded sales invoice.

Return Value

This web service does not return a value.

BulkMarkAsPrinted

webService static void BulkMarkAsPrinted(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values)

This service allows you to set the Printed flag on sales invoices to record that they have been printed. Use the SalesInvoicePrint (Print Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPICommon.Reference[] Identifies the sales invoices you want to mark as printed.

Return Value

This web service does not return a value.

BulkAmendInvoice

webService static void BulkAmendInvoice(c2g.CODAAPICommon_10_0.Context context, List<c2g.CODAAPIInvoiceTypes_10_0.InvoiceForAmend> headers)

This service allows you to amend posted sales invoices in bulk. Use the SalesInvoiceAmend (Amend Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
headers List<c2g.CODAAPIInvoiceTypes_10_0.InvoiceForAmend> Holds details of the sales invoices that you want to amend.

Return Value

This web service does not return a value.

BulkAmendInvoiceLineItem

webService static void BulkAmendInvoiceLineItem(c2g.CODAAPICommon_10_0.Context context, List<c2g.CODAAPIInvoiceLineItemTypes_10_0.InvoiceLineItemForAmend> lines)

This service allows you to amend posted sales invoice lines in bulk. Use the SalesInvoiceAmend (Amend Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
lines List<c2g.CODAAPIInvoiceLineItemTypes_10_0.InvoiceLineItemForAmend> Holds details of the sales invoice lines that you want to amend.

Return Value

This web service does not return a value.

ScheduleInvoicesForPosting

webService static void ScheduleInvoicesForPosting(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values)

See "Posting Sales Documents That Have Their Tax Value Calculated by AvaTax" for information about using this service. Use the SalesInvoicePost (Post Sales Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPICommon.Reference[] Identifies the sales invoices you want to schedule for posting.

Return Value

This web service does not return a value.

Deprecated

The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.

Methods

PostIncomeSchedules

Deprecated: Not for public use.

webService static void PostIncomeSchedules(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.