Accounting Apex API Developer Reference

c2g.CODAAPIPurchaseInvoice_9_0

global with sharing class CODAAPIPurchaseInvoice_9_0

The service class relating to Purchase 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

PostPurchaseInvoice

webService static void PostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to post a purchase invoice. Use the PayableInvoicePost (Post Payable Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes. Does not need to be the current company.
value c2g.CODAAPICommon.Reference Identifies the purchase invoice you want to post.

Return Value

This web service does not return a value.

PlaceOnHold

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

ReleaseForPayment

webService static void ReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value)

BulkPostPurchaseInvoice

webService static void BulkPostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values)

This service allows you to post purchase invoices in bulk. Use the PayableInvoicePost (Post Payable Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes. Does not need to be the current company.
values c2g.CODAAPICommon.Reference[] Identifies the purchase invoices you want to post.

Return Value

This web service does not return a value.

BulkPlaceOnHold

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

Mass on hold activation of purchase invoices Use the PayableInvoicePlaceOnHoldOrRelease (Hold or Release Payable Invoice Payments) custom permission to grant permissions on this service.

BulkReleaseForPayment

webService static void BulkReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values)

Mass release of purchase invoices for payment Use the PayableInvoicePlaceOnHoldOrRelease (Hold or Release Payable Invoice Payments) custom permission to grant permissions on this service.

Deprecated

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

Methods

CreatePurchaseInvoice

Deprecated: Deprecated: Use the Salesforce API for CRUD operations.

webService static c2g.CODAAPICommon.Reference CreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value)

This service allows you to create a purchase invoice (also known as payable invoice). See "Payable Invoice Fields" and "What is a Payable Invoice" in the Certinia Help for more details. Use PayableInvoiceSave (Save Payable Invoices) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes.
value c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice Holds details of the purchase invoice you want to create.

Return Value

This web service returns a CODAAPICommon.Reference object.

UpdatePurchaseInvoice

Deprecated: Deprecated: Use the Salesforce API for CRUD operations.

webService static c2g.CODAAPICommon.Reference UpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value)

This service allows you to update a purchase invoice. Use the PayableInvoiceEdit (Edit Payable Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes.
value c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice Holds details of the purchase invoice you want to update.

Return Value

This web service returns a CODAAPICommon.Reference object.

GetPurchaseInvoice

Deprecated: Deprecated: Use the Salesforce API for CRUD operations.

webService static c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice GetPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to retrieve a purchase invoice.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the purchase invoice you want to retrieve.

Return Value

This web service returns a c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice object.

BulkCreatePurchaseInvoice

Deprecated: Deprecated: Use the Salesforce API for CRUD operations.

webService static c2g.CODAAPICommon.Reference[] BulkCreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values)

This service allows you to create purchase invoices in bulk. Use PayableInvoiceSave (Save Payable Invoices) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes.
values c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] Holds details of the purchase invoices you want to create.

Return Value

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

BulkUpdatePurchaseInvoice

Deprecated: Deprecated: Use the Salesforce API for CRUD operations.

webService static c2g.CODAAPICommon.Reference[] BulkUpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values)

This service allows you to update purchase invoices in bulk. It also handles amending posted purchase invoices and their related transactions. Use the PayableInvoiceEdit (Edit Payable Invoices) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_9_0.Context Identifies the Certinia company in which the current operation executes.
values c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] Holds details of the purchase invoices you want to update.

Return Value

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

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

//In addition to making updates, BulkUpdate can be used to amend, as this example shows
//using a reference to an existing posted invoice.
c2g.CODAAPICommon.Reference postedInvRef = c2g.CODAAPICommon.getRef('a4p1I00000002YwQAI', null);
c2g.CODAAPICommon_9_0.Context context = new c2g.CODAAPICommon_9_0.Context();
c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice invoice = c2g.CODAAPIPurchaseInvoice_9_0.GetPurchaseInvoice(context, postedInvRef);

//detail the amendment
invoice.InvoiceDescription = 'AmendedDescription';
List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice> invoices = new List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice>();
invoices.add(invoice);

//call the API
c2g.CODAAPIPurchaseInvoice_9_0.BulkUpdatePurchaseInvoice(context, invoices);
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.