Accounting Apex API Developer Reference

c2g.CODAAPIPurchaseCreditNote_7_0

global with sharing class CODAAPIPurchaseCreditNote_7_0

The service class relating to Purchase Credit Notes.

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

CreatePurchaseCreditNote

Deprecated: Use the Salesforce API for CRUD operations.

webservice static c2g.CODAAPICommon.Reference CreatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote value)

This service allows you to create a purchase credit note (also known as payable credit note). See "Payable Credit Note Fields" and "What is a Payable Credit Note" in the FinancialForce Help for more details.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote Holds details of the purchase credit note you want to create.

Return Value

This web service returns a CODAAPICommon.Reference object.

UpdatePurchaseCreditNote

Deprecated: Use the Salesforce API for CRUD operations.

webservice static c2g.CODAAPICommon.Reference UpdatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote value)

This service allows you to update a purchase credit note.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote Holds details of the purchase credit note you want to update.

Return Value

This web service returns a CODAAPICommon.Reference object.

PostPurchaseCreditNote

webservice static void PostPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to post a purchase credit note.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes. Does not need to be the current company.
value c2g.CODAAPICommon.Reference Identifies the purchase credit note you want to post.

Return Value

This web service does not return a value.

GetPurchaseCreditNote

Deprecated: Use the Salesforce API for CRUD operations.

webservice static c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote GetPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to retrieve a purchase credit note.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the purchase credit note you want to retrieve.

Return Value

This web service returns a c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote object.

BulkCreatePurchaseCreditNote

Deprecated: Use the Salesforce API for CRUD operations.

webservice static c2g.CODAAPICommon.Reference[] BulkCreatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] values)

This service allows you to create purchase credit notes in bulk.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] Holds details of the purchase credit notes you want to create.

Return Value

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

BulkUpdatePurchaseCreditNote

Deprecated: Use the Salesforce API for CRUD operations.

webservice static c2g.CODAAPICommon.Reference[] BulkUpdatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] values)

This service allows you to update purchase credit notes in bulk. It also handles amending posted purchase credit notes and their related transactions.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_7_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] Holds details of the purchase credit notes 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 credit note.
c2g.CODAAPICommon.Reference postedCreditRef = c2g.CODAAPICommon.getRef('a4m1I00000002l1QAA', null);
c2g.CODAAPICommon_7_0.Context context = new c2g.CODAAPICommon_7_0.Context();
c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote credit = c2g.CODAAPIPurchaseCreditNote_7_0.GetPurchaseCreditNote(context, postedCreditRef);

//detail the amendment
credit.CreditNoteDescription = 'AmendedDescription';
List<c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote> credits = new List<c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote>();
credits.add(credit);

//call the API
c2g.CODAAPIPurchaseCreditNote_7_0.BulkUpdatePurchaseCreditNote(context, credits);

BulkPostPurchaseCreditNote

webservice static void BulkPostPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference[] values)

This service allows you to post purchase credit notes in bulk.

Input Parameters

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

Return Value

This web service does not return a value.

© Copyright 2009–2020 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.