Skip to main content

Actions

The ballerinax/microsoft.dynamics365.finance.system package exposes the following clients:

ClientPurpose
ClientProvides full CRUD access to Microsoft Dynamics 365 Finance System entities via the OData REST API.

Client

Provides full CRUD access to Microsoft Dynamics 365 Finance System entities via the OData REST API.

Configuration

FieldTypeDefaultDescription
authOAuth2ClientCredentialsGrantConfigRequiredOAuth2 client credentials grant configuration used to authenticate with Microsoft Entra ID (tokenUrl, clientId, clientSecret, scopes).
httpVersionhttp:HttpVersionhttp:HTTP_2_0The HTTP version understood by the client.
http1Settingshttp:ClientHttp1Settings{}Configurations related to the HTTP/1.x protocol.
secureSockethttp:ClientSecureSocket()SSL/TLS-related options.
proxyhttp:ProxyConfig()Proxy server related options.

Initializing the client

import ballerinax/microsoft.dynamics365.finance.system;

configurable string tokenUrl = ?;
configurable string clientId = ?;
configurable string clientSecret = ?;
configurable string serviceUrl = ?;

system:Client fo = check new (
{
auth: {
tokenUrl,
clientId,
clientSecret
}
},
serviceUrl
);

Operations

Abbreviations

listAbbreviations

Lists Abbreviations records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListAbbreviationsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: AbbreviationsCollection|error

Sample code:

system:AbbreviationsCollection result = check fo->listAbbreviations();
createAbbreviations

Creates a new Abbreviations record.

Parameters:

NameTypeRequiredDescription
payloadAbbreviationsYesThe Abbreviations record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: Abbreviations|error

Sample code:

system:Abbreviations payload = {
addrTypeCode: "HQ",
addrTypeName: "Headquarters",
addrTypeFullName: "Corporate Headquarters",
addrTypeLevel: 1
};
system:Abbreviations result = check fo->createAbbreviations(payload);
getAbbreviations

Retrieves a single Abbreviations by its key.

Parameters:

NameTypeRequiredDescription
addrTypeCodestringYesThe address type code key field, e.g. "HQ".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetAbbreviationsQueriesNoOData query options: $expand, $select.

Returns: Abbreviations|error

Sample code:

system:Abbreviations result = check fo->getAbbreviations("HQ");
deleteAbbreviations

Deletes a Abbreviations by its key.

Parameters:

NameTypeRequiredDescription
addrTypeCodestringYesThe address type code key field, e.g. "HQ".
headersDeleteAbbreviationsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteAbbreviations("HQ");
updateAbbreviations

Updates an existing Abbreviations.

Parameters:

NameTypeRequiredDescription
addrTypeCodestringYesThe address type code key field, e.g. "HQ".
payloadAbbreviationsYesThe fields to update.
headersUpdateAbbreviationsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: Abbreviations|error

Sample code:

system:Abbreviations payload = {
addrTypeFullName: "Global Corporate Headquarters"
};
system:Abbreviations result = check fo->updateAbbreviations("HQ", payload);

All Products

listAllProducts

Lists EveryProduct records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListAllProductsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: AllProductsCollection|error

Sample code:

system:AllProductsCollection result = check fo->listAllProducts();
createAllProducts

Creates a new EveryProduct.

Parameters:

NameTypeRequiredDescription
payloadEveryProductYesThe EveryProduct record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: EveryProduct|error

Sample code:

system:EveryProduct payload = {
productNumber: "P-1001",
productName: "Widget A",
productDescription: "Standard widget",
productSearchName: "WIDGETA"
};
system:EveryProduct result = check fo->createAllProducts(payload);
getAllProducts

Retrieves a single EveryProduct by its key.

Parameters:

NameTypeRequiredDescription
productNumberstringYesThe product number key field, e.g. "P-1001".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetAllProductsQueriesNoOData query options: $expand, $select.

Returns: EveryProduct|error

Sample code:

system:EveryProduct result = check fo->getAllProducts("P-1001");
deleteAllProducts

Deletes a EveryProduct by its key.

Parameters:

NameTypeRequiredDescription
productNumberstringYesThe product number key field, e.g. "P-1001".
headersDeleteAllProductsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteAllProducts("P-1001");
updateAllProducts

Updates an existing EveryProduct.

Parameters:

NameTypeRequiredDescription
productNumberstringYesThe product number key field, e.g. "P-1001".
payloadEveryProductYesThe fields to update.
headersUpdateAllProductsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: EveryProduct|error

Sample code:

system:EveryProduct payload = {
productDescription: "Standard widget - revised"
};
system:EveryProduct result = check fo->updateAllProducts("P-1001", payload);

CFPS Table

listCFPSTable

Lists CFPSTable records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListCFPSTableQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: CFPSTableCollection|error

Sample code:

system:CFPSTableCollection result = check fo->listCFPSTable();
createCFPSTable

Creates a new CFPSTable.

Parameters:

NameTypeRequiredDescription
payloadCFPSTableYesThe CFPSTable record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: CFPSTable|error

Sample code:

system:CFPSTable payload = {
dataAreaId: "BRMF",
transactionType: "Sales",
cFPSCode: "CFPS-01",
name: "Standard CFPS code",
searchName: "CFPS01"
};
system:CFPSTable result = check fo->createCFPSTable(payload);
getCFPSTable

Retrieves a single CFPSTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "BRMF".
transactionTypestringYesThe transaction type key field (Sales, Purch, or Both), e.g. "Sales".
cFPSCodestringYesThe CFPS code key field, e.g. "CFPS-01".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetCFPSTableQueriesNoOData query options: $expand, $select.

Returns: CFPSTable|error

Sample code:

system:CFPSTable result = check fo->getCFPSTable("BRMF", "Sales", "CFPS-01");
deleteCFPSTable

Deletes a CFPSTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "BRMF".
transactionTypestringYesThe transaction type key field, e.g. "Sales".
cFPSCodestringYesThe CFPS code key field, e.g. "CFPS-01".
headersDeleteCFPSTableHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteCFPSTable("BRMF", "Sales", "CFPS-01");
updateCFPSTable

Updates an existing CFPSTable.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "BRMF".
transactionTypestringYesThe transaction type key field, e.g. "Sales".
cFPSCodestringYesThe CFPS code key field, e.g. "CFPS-01".
payloadCFPSTableYesThe fields to update.
headersUpdateCFPSTableHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: CFPSTable|error

Sample code:

system:CFPSTable payload = {
name: "Standard CFPS code - revised"
};
system:CFPSTable result = check fo->updateCFPSTable("BRMF", "Sales", "CFPS-01", payload);

Components

listComponents

Lists Component records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListComponentsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ComponentsCollection|error

Sample code:

system:ComponentsCollection result = check fo->listComponents();
createComponents

Creates a new Component.

Parameters:

NameTypeRequiredDescription
payloadComponentYesThe Component record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: Component|error

Sample code:

system:Component payload = {
dataAreaId: "INMF",
taxType: "GST",
taxComponent: "CGST",
description: "Central GST component"
};
system:Component result = check fo->createComponents(payload);
getComponents

Retrieves a single Component by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
taxComponentstringYesThe tax component key field, e.g. "CGST".
taxTypestringYesThe tax type key field, e.g. "GST".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetComponentsQueriesNoOData query options: $expand, $select.

Returns: Component|error

Sample code:

system:Component result = check fo->getComponents("INMF", "CGST", "GST");
deleteComponents

Deletes a Component by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
taxComponentstringYesThe tax component key field, e.g. "CGST".
taxTypestringYesThe tax type key field, e.g. "GST".
headersDeleteComponentsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteComponents("INMF", "CGST", "GST");
updateComponents

Updates an existing Component.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
taxComponentstringYesThe tax component key field, e.g. "CGST".
taxTypestringYesThe tax type key field, e.g. "GST".
payloadComponentYesThe fields to update.
headersUpdateComponentsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: Component|error

Sample code:

system:Component payload = {
description: "Central GST component - revised"
};
system:Component result = check fo->updateComponents("INMF", "CGST", "GST", payload);

Date Intervals

listDateIntervals

Lists DateInterval records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListDateIntervalsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: DateIntervalsCollection|error

Sample code:

system:DateIntervalsCollection result = check fo->listDateIntervals();
createDateIntervals

Creates a new DateInterval.

Parameters:

NameTypeRequiredDescription
payloadDateIntervalYesThe DateInterval record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: DateInterval|error

Sample code:

system:DateInterval payload = {
dataAreaId: "USMF",
dateIntervalCode: "FY-STD",
description: "Standard fiscal year interval",
startPeriodType: "FiscalYear",
endPeriodType: "FiscalYear"
};
system:DateInterval result = check fo->createDateIntervals(payload);
getDateIntervals

Retrieves a single DateInterval by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
dateIntervalCodestringYesThe date interval code key field, e.g. "FY-STD".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetDateIntervalsQueriesNoOData query options: $expand, $select.

Returns: DateInterval|error

Sample code:

system:DateInterval result = check fo->getDateIntervals("USMF", "FY-STD");
deleteDateIntervals

Deletes a DateInterval by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
dateIntervalCodestringYesThe date interval code key field, e.g. "FY-STD".
headersDeleteDateIntervalsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteDateIntervals("USMF", "FY-STD");
updateDateIntervals

Updates an existing DateInterval.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
dateIntervalCodestringYesThe date interval code key field, e.g. "FY-STD".
payloadDateIntervalYesThe fields to update.
headersUpdateDateIntervalsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: DateInterval|error

Sample code:

system:DateInterval payload = {
description: "Standard fiscal year interval - revised"
};
system:DateInterval result = check fo->updateDateIntervals("USMF", "FY-STD", payload);

EM Item Types

listEMItemTypes

Lists EMItemType records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListEMItemTypesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: EMItemTypesCollection|error

Sample code:

system:EMItemTypesCollection result = check fo->listEMItemTypes();
createEMItemTypes

Creates a new EMItemType.

Parameters:

NameTypeRequiredDescription
payloadEMItemTypeYesThe EMItemType record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: EMItemType|error

Sample code:

system:EMItemType payload = {
dataAreaId: "USMF",
messageItemType: "EXPCTRL",
description: "Export control message item"
};
system:EMItemType result = check fo->createEMItemTypes(payload);
getEMItemTypes

Retrieves a single EMItemType by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
messageItemTypestringYesThe message item type key field, e.g. "EXPCTRL".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetEMItemTypesQueriesNoOData query options: $expand, $select.

Returns: EMItemType|error

Sample code:

system:EMItemType result = check fo->getEMItemTypes("USMF", "EXPCTRL");
deleteEMItemTypes

Deletes a EMItemType by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
messageItemTypestringYesThe message item type key field, e.g. "EXPCTRL".
headersDeleteEMItemTypesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteEMItemTypes("USMF", "EXPCTRL");
updateEMItemTypes

Updates an existing EMItemType.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
messageItemTypestringYesThe message item type key field, e.g. "EXPCTRL".
payloadEMItemTypeYesThe fields to update.
headersUpdateEMItemTypesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: EMItemType|error

Sample code:

system:EMItemType payload = {
description: "Export control message item - revised"
};
system:EMItemType result = check fo->updateEMItemTypes("USMF", "EXPCTRL", payload);

Estate Status

listEstateStatus

Lists EstateStatus records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListEstateStatusQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: EstateStatusCollection|error

Sample code:

system:EstateStatusCollection result = check fo->listEstateStatus();
createEstateStatus

Creates a new EstateStatus.

Parameters:

NameTypeRequiredDescription
payloadEstateStatusYesThe EstateStatus record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: EstateStatus|error

Sample code:

system:EstateStatus payload = {
dataAreaId: "RUMF",
estStatId: "ACTIVE",
name: "Active estate"
};
system:EstateStatus result = check fo->createEstateStatus(payload);
getEstateStatus

Retrieves a single EstateStatus by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
estStatIdstringYesThe estate status id key field, e.g. "ACTIVE".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetEstateStatusQueriesNoOData query options: $expand, $select.

Returns: EstateStatus|error

Sample code:

system:EstateStatus result = check fo->getEstateStatus("RUMF", "ACTIVE");
deleteEstateStatus

Deletes a EstateStatus by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
estStatIdstringYesThe estate status id key field, e.g. "ACTIVE".
headersDeleteEstateStatusHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteEstateStatus("RUMF", "ACTIVE");
updateEstateStatus

Updates an existing EstateStatus.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
estStatIdstringYesThe estate status id key field, e.g. "ACTIVE".
payloadEstateStatusYesThe fields to update.
headersUpdateEstateStatusHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: EstateStatus|error

Sample code:

system:EstateStatus payload = {
name: "Active estate - revised"
};
system:EstateStatus result = check fo->updateEstateStatus("RUMF", "ACTIVE", payload);

Ext Code Tables

listExtCodeTables

Lists ExtCodeTable records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListExtCodeTablesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ExtCodeTablesCollection|error

Sample code:

system:ExtCodeTablesCollection result = check fo->listExtCodeTables();
createExtCodeTables

Creates a new ExtCodeTable.

Parameters:

NameTypeRequiredDescription
payloadExtCodeTableYesThe ExtCodeTable record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: ExtCodeTable|error

Sample code:

system:ExtCodeTable payload = {
dataAreaId: "MXMF",
codeType: "UnitOfMeasure",
version: "2.0",
codeId: "H87",
description: "Piece",
validFrom: "2026-01-01"
};
system:ExtCodeTable result = check fo->createExtCodeTables(payload);
getExtCodeTables

Retrieves a single ExtCodeTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "MXMF".
codeTypestringYesThe extended code type key field, e.g. "UnitOfMeasure".
versionstringYesThe code table version key field, e.g. "2.0".
codeIdstringYesThe code id key field, e.g. "H87".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetExtCodeTablesQueriesNoOData query options: $expand, $select.

Returns: ExtCodeTable|error

Sample code:

system:ExtCodeTable result = check fo->getExtCodeTables("MXMF", "UnitOfMeasure", "2.0", "H87");
deleteExtCodeTables

Deletes a ExtCodeTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "MXMF".
codeTypestringYesThe extended code type key field, e.g. "UnitOfMeasure".
versionstringYesThe code table version key field, e.g. "2.0".
codeIdstringYesThe code id key field, e.g. "H87".
headersDeleteExtCodeTablesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteExtCodeTables("MXMF", "UnitOfMeasure", "2.0", "H87");
updateExtCodeTables

Updates an existing ExtCodeTable.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "MXMF".
codeTypestringYesThe extended code type key field, e.g. "UnitOfMeasure".
versionstringYesThe code table version key field, e.g. "2.0".
codeIdstringYesThe code id key field, e.g. "H87".
payloadExtCodeTableYesThe fields to update.
headersUpdateExtCodeTablesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: ExtCodeTable|error

Sample code:

system:ExtCodeTable payload = {
description: "Piece (unit)"
};
system:ExtCodeTable result = check fo->updateExtCodeTables("MXMF", "UnitOfMeasure", "2.0", "H87", payload);

Format Codes

listFormatCodes

Lists FormatCode records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListFormatCodesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: FormatCodesCollection|error

Sample code:

system:FormatCodesCollection result = check fo->listFormatCodes();
createFormatCodes

Creates a new FormatCode.

Parameters:

NameTypeRequiredDescription
payloadFormatCodeYesThe FormatCode record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: FormatCode|error

Sample code:

system:FormatCode payload = {
dataAreaId: "USMF",
'type: "ServiceLevel",
code: "URGP",
description: "Urgent payment"
};
system:FormatCode result = check fo->createFormatCodes(payload);
getFormatCodes

Retrieves a single FormatCode by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe format code key field, e.g. "URGP".
'typestringYesThe format code type key field, e.g. "ServiceLevel".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetFormatCodesQueriesNoOData query options: $expand, $select.

Returns: FormatCode|error

Sample code:

system:FormatCode result = check fo->getFormatCodes("USMF", "URGP", "ServiceLevel");
deleteFormatCodes

Deletes a FormatCode by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe format code key field, e.g. "URGP".
'typestringYesThe format code type key field, e.g. "ServiceLevel".
headersDeleteFormatCodesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteFormatCodes("USMF", "URGP", "ServiceLevel");
updateFormatCodes

Updates an existing FormatCode.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe format code key field, e.g. "URGP".
'typestringYesThe format code type key field, e.g. "ServiceLevel".
payloadFormatCodeYesThe fields to update.
headersUpdateFormatCodesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: FormatCode|error

Sample code:

system:FormatCode payload = {
description: "Urgent payment - revised"
};
system:FormatCode result = check fo->updateFormatCodes("USMF", "URGP", "ServiceLevel", payload);

Houses

listHouses

Lists House records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListHousesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: HousesCollection|error

Sample code:

system:HousesCollection result = check fo->listHouses();
createHouses

Creates a new House.

Parameters:

NameTypeRequiredDescription
payloadHouseYesThe House record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: House|error

Sample code:

system:House payload = {
dataAreaId: "RUMF",
houseId: "H-001",
houseNum: "12",
buildNum: "A",
postalCode: "123456",
startDate: "2026-01-01"
};
system:House result = check fo->createHouses(payload);
getHouses

Retrieves a single House by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
houseIdstringYesThe house id key field, e.g. "H-001".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetHousesQueriesNoOData query options: $expand, $select.

Returns: House|error

Sample code:

system:House result = check fo->getHouses("RUMF", "H-001");
deleteHouses

Deletes a House by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
houseIdstringYesThe house id key field, e.g. "H-001".
headersDeleteHousesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteHouses("RUMF", "H-001");
updateHouses

Updates an existing House.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
houseIdstringYesThe house id key field, e.g. "H-001".
payloadHouseYesThe fields to update.
headersUpdateHousesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: House|error

Sample code:

system:House payload = {
postalCode: "654321"
};
system:House result = check fo->updateHouses("RUMF", "H-001", payload);

Import Modes

listImportModes

Lists ImportMode records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListImportModesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ImportModesCollection|error

Sample code:

system:ImportModesCollection result = check fo->listImportModes();
createImportModes

Creates a new ImportMode.

Parameters:

NameTypeRequiredDescription
payloadImportModeYesThe ImportMode record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: ImportMode|error

Sample code:

system:ImportMode payload = {
dataAreaId: "USMF",
methodOfImport: "EFT",
description: "Electronic funds transfer",
className: "ImportEFT",
classID: 101,
bankAccount: "BANK-001"
};
system:ImportMode result = check fo->createImportModes(payload);
getImportModes

Retrieves a single ImportMode by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
methodOfImportstringYesThe method of import key field, e.g. "EFT".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetImportModesQueriesNoOData query options: $expand, $select.

Returns: ImportMode|error

Sample code:

system:ImportMode result = check fo->getImportModes("USMF", "EFT");
deleteImportModes

Deletes a ImportMode by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
methodOfImportstringYesThe method of import key field, e.g. "EFT".
headersDeleteImportModesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteImportModes("USMF", "EFT");
updateImportModes

Updates an existing ImportMode.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
methodOfImportstringYesThe method of import key field, e.g. "EFT".
payloadImportModeYesThe fields to update.
headersUpdateImportModesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: ImportMode|error

Sample code:

system:ImportMode payload = {
description: "Electronic funds transfer - revised"
};
system:ImportMode result = check fo->updateImportModes("USMF", "EFT", payload);

Item GTDs

listItemGTDs

Lists ItemGTD records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListItemGTDsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ItemGTDsCollection|error

Sample code:

system:ItemGTDsCollection result = check fo->listItemGTDs();
createItemGTDs

Creates a new ItemGTD.

Parameters:

NameTypeRequiredDescription
payloadItemGTDYesThe ItemGTD record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: ItemGTD|error

Sample code:

system:ItemGTD payload = {
dataAreaId: "RUMF",
itemNumber: "ITEM-001",
gTDNumber: "GTD-2026-001",
itemOriginCountryRegionId: "CHN"
};
system:ItemGTD result = check fo->createItemGTDs(payload);
getItemGTDs

Retrieves a single ItemGTD by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
itemNumberstringYesThe item number key field, e.g. "ITEM-001".
gTDNumberstringYesThe GTD (customs declaration) number key field, e.g. "GTD-2026-001".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetItemGTDsQueriesNoOData query options: $expand, $select.

Returns: ItemGTD|error

Sample code:

system:ItemGTD result = check fo->getItemGTDs("RUMF", "ITEM-001", "GTD-2026-001");
deleteItemGTDs

Deletes a ItemGTD by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
itemNumberstringYesThe item number key field, e.g. "ITEM-001".
gTDNumberstringYesThe GTD (customs declaration) number key field, e.g. "GTD-2026-001".
headersDeleteItemGTDsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteItemGTDs("RUMF", "ITEM-001", "GTD-2026-001");
updateItemGTDs

Updates an existing ItemGTD.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "RUMF".
itemNumberstringYesThe item number key field, e.g. "ITEM-001".
gTDNumberstringYesThe GTD (customs declaration) number key field, e.g. "GTD-2026-001".
payloadItemGTDYesThe fields to update.
headersUpdateItemGTDsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: ItemGTD|error

Sample code:

system:ItemGTD payload = {
itemOriginCountryRegionId: "VNM"
};
system:ItemGTD result = check fo->updateItemGTDs("RUMF", "ITEM-001", "GTD-2026-001", payload);

Load Templates

listLoadTemplates

Lists LoadTemplate records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListLoadTemplatesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: LoadTemplatesCollection|error

Sample code:

system:LoadTemplatesCollection result = check fo->listLoadTemplates();
createLoadTemplates

Creates a new LoadTemplate.

Parameters:

NameTypeRequiredDescription
payloadLoadTemplateYesThe LoadTemplate record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: LoadTemplate|error

Sample code:

system:LoadTemplate payload = {
dataAreaId: "USMF",
templateId: "PALLET-STD",
maximumLoadWeight: 500.0,
maximumQuantity: 100,
isLoadFloorStacked: "Yes"
};
system:LoadTemplate result = check fo->createLoadTemplates(payload);
getLoadTemplates

Retrieves a single LoadTemplate by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
templateIdstringYesThe load template id key field, e.g. "PALLET-STD".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetLoadTemplatesQueriesNoOData query options: $expand, $select.

Returns: LoadTemplate|error

Sample code:

system:LoadTemplate result = check fo->getLoadTemplates("USMF", "PALLET-STD");
deleteLoadTemplates

Deletes a LoadTemplate by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
templateIdstringYesThe load template id key field, e.g. "PALLET-STD".
headersDeleteLoadTemplatesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteLoadTemplates("USMF", "PALLET-STD");
updateLoadTemplates

Updates an existing LoadTemplate.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
templateIdstringYesThe load template id key field, e.g. "PALLET-STD".
payloadLoadTemplateYesThe fields to update.
headersUpdateLoadTemplatesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: LoadTemplate|error

Sample code:

system:LoadTemplate payload = {
maximumLoadWeight: 600.0
};
system:LoadTemplate result = check fo->updateLoadTemplates("USMF", "PALLET-STD", payload);

Loyalty Levels

listLoyaltyLevels

Lists LoyaltyLevel records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListLoyaltyLevelsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: LoyaltyLevelsCollection|error

Sample code:

system:LoyaltyLevelsCollection result = check fo->listLoyaltyLevels();
createLoyaltyLevels

Creates a new LoyaltyLevel.

Parameters:

NameTypeRequiredDescription
payloadLoyaltyLevelYesThe LoyaltyLevel record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: LoyaltyLevel|error

Sample code:

system:LoyaltyLevel payload = {
dataAreaId: "USMF",
levelPhrase: "GOLD",
levelDescription: "Gold tier"
};
system:LoyaltyLevel result = check fo->createLoyaltyLevels(payload);
getLoyaltyLevels

Retrieves a single LoyaltyLevel by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
levelPhrasestringYesThe loyalty level phrase key field, e.g. "GOLD".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetLoyaltyLevelsQueriesNoOData query options: $expand, $select.

Returns: LoyaltyLevel|error

Sample code:

system:LoyaltyLevel result = check fo->getLoyaltyLevels("USMF", "GOLD");
deleteLoyaltyLevels

Deletes a LoyaltyLevel by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
levelPhrasestringYesThe loyalty level phrase key field, e.g. "GOLD".
headersDeleteLoyaltyLevelsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteLoyaltyLevels("USMF", "GOLD");
updateLoyaltyLevels

Updates an existing LoyaltyLevel.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
levelPhrasestringYesThe loyalty level phrase key field, e.g. "GOLD".
payloadLoyaltyLevelYesThe fields to update.
headersUpdateLoyaltyLevelsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: LoyaltyLevel|error

Sample code:

system:LoyaltyLevel payload = {
levelDescription: "Gold tier - revised"
};
system:LoyaltyLevel result = check fo->updateLoyaltyLevels("USMF", "GOLD", payload);

Model Tables

listModelTables

Lists ModelTable records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListModelTablesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ModelTablesCollection|error

Sample code:

system:ModelTablesCollection result = check fo->listModelTables();
createModelTables

Creates a new ModelTable.

Parameters:

NameTypeRequiredDescription
payloadModelTableYesThe ModelTable record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: ModelTable|error

Sample code:

system:ModelTable payload = {
dataAreaId: "USMF",
model: "STD-DEPR",
description: "Standard depreciation model"
};
system:ModelTable result = check fo->createModelTables(payload);
getModelTables

Retrieves a single ModelTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
modelstringYesThe model key field, e.g. "STD-DEPR".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetModelTablesQueriesNoOData query options: $expand, $select.

Returns: ModelTable|error

Sample code:

system:ModelTable result = check fo->getModelTables("USMF", "STD-DEPR");
deleteModelTables

Deletes a ModelTable by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
modelstringYesThe model key field, e.g. "STD-DEPR".
headersDeleteModelTablesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteModelTables("USMF", "STD-DEPR");
updateModelTables

Updates an existing ModelTable.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
modelstringYesThe model key field, e.g. "STD-DEPR".
payloadModelTableYesThe fields to update.
headersUpdateModelTablesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: ModelTable|error

Sample code:

system:ModelTable payload = {
description: "Standard depreciation model - revised"
};
system:ModelTable result = check fo->updateModelTables("USMF", "STD-DEPR", payload);

Of Businesses

listOfBusinesses

Lists OfBusiness records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListOfBusinessesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: OfBusinessesCollection|error

Sample code:

system:OfBusinessesCollection result = check fo->listOfBusinesses();
createOfBusinesses

Creates a new OfBusiness.

Parameters:

NameTypeRequiredDescription
payloadOfBusinessYesThe OfBusiness record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: OfBusiness|error

Sample code:

system:OfBusiness payload = {
dataAreaId: "USMF",
lineOfBusiness: "RETAIL",
description: "Retail line of business"
};
system:OfBusiness result = check fo->createOfBusinesses(payload);
getOfBusinesses

Retrieves a single OfBusiness by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
lineOfBusinessstringYesThe line of business key field, e.g. "RETAIL".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetOfBusinessesQueriesNoOData query options: $expand, $select.

Returns: OfBusiness|error

Sample code:

system:OfBusiness result = check fo->getOfBusinesses("USMF", "RETAIL");
deleteOfBusinesses

Deletes a OfBusiness by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
lineOfBusinessstringYesThe line of business key field, e.g. "RETAIL".
headersDeleteOfBusinessesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteOfBusinesses("USMF", "RETAIL");
updateOfBusinesses

Updates an existing OfBusiness.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
lineOfBusinessstringYesThe line of business key field, e.g. "RETAIL".
payloadOfBusinessYesThe fields to update.
headersUpdateOfBusinessesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: OfBusiness|error

Sample code:

system:OfBusiness payload = {
description: "Retail line of business - revised"
};
system:OfBusiness result = check fo->updateOfBusinesses("USMF", "RETAIL", payload);

Other Clients

listOtherClients

Lists OtherClients records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListOtherClientsQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: OtherClientsCollection|error

Sample code:

system:OtherClientsCollection result = check fo->listOtherClients();
createOtherClients

Creates a new OtherClients.

Parameters:

NameTypeRequiredDescription
payloadOtherClientsYesThe OtherClients record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: OtherClients|error

Sample code:

system:OtherClients payload = {
dataAreaId: "USMF",
code: "OC-001",
name: "Regional Tax Authority",
partyNumber: "000123",
address: "123 Main St"
};
system:OtherClients result = check fo->createOtherClients(payload);
getOtherClients

Retrieves a single OtherClients by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe other client code key field, e.g. "OC-001".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetOtherClientsQueriesNoOData query options: $expand, $select.

Returns: OtherClients|error

Sample code:

system:OtherClients result = check fo->getOtherClients("USMF", "OC-001");
deleteOtherClients

Deletes a OtherClients by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe other client code key field, e.g. "OC-001".
headersDeleteOtherClientsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteOtherClients("USMF", "OC-001");
updateOtherClients

Updates an existing OtherClients.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
codestringYesThe other client code key field, e.g. "OC-001".
payloadOtherClientsYesThe fields to update.
headersUpdateOtherClientsHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: OtherClients|error

Sample code:

system:OtherClients payload = {
name: "Regional Tax Authority - revised"
};
system:OtherClients result = check fo->updateOtherClients("USMF", "OC-001", payload);

Parameters

listParameters

Lists Parameters records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListParametersQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ParametersCollection|error

Sample code:

system:ParametersCollection result = check fo->listParameters();
createParameters

Creates a new Parameters.

Parameters:

NameTypeRequiredDescription
payloadParametersYesThe Parameters record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: Parameters|error

Sample code:

system:Parameters payload = {
dataAreaId: "USMF",
industry: "Manufacturing",
orgNumber: "123456789"
};
system:Parameters result = check fo->createParameters(payload);
getParameters

Retrieves a single Parameters by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'keyintYesThe entity key value, e.g. 1.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetParametersQueriesNoOData query options: $expand, $select.

Returns: Parameters|error

Sample code:

system:Parameters result = check fo->getParameters("USMF", 1);
deleteParameters

Deletes a Parameters by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'keyintYesThe entity key value, e.g. 1.
headersDeleteParametersHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteParameters("USMF", 1);
updateParameters

Updates an existing Parameters.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'keyintYesThe entity key value, e.g. 1.
payloadParametersYesThe fields to update.
headersUpdateParametersHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: Parameters|error

Sample code:

system:Parameters payload = {
industry: "Discrete manufacturing"
};
system:Parameters result = check fo->updateParameters("USMF", 1, payload);

Service Codes

listServiceCodes

Lists ServiceCodes records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListServiceCodesQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: ServiceCodesCollection|error

Sample code:

system:ServiceCodesCollection result = check fo->listServiceCodes();
createServiceCodes

Creates a new ServiceCodes.

Parameters:

NameTypeRequiredDescription
payloadServiceCodesYesThe ServiceCodes record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: ServiceCodes|error

Sample code:

system:ServiceCodes payload = {
dataAreaId: "INMF",
serviceCode: "SC-001",
name: "Consulting services",
serviceAccountingCode: "998311",
minorHead: "0001"
};
system:ServiceCodes result = check fo->createServiceCodes(payload);
getServiceCodes

Retrieves a single ServiceCodes by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
serviceCodestringYesThe service code key field, e.g. "SC-001".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetServiceCodesQueriesNoOData query options: $expand, $select.

Returns: ServiceCodes|error

Sample code:

system:ServiceCodes result = check fo->getServiceCodes("INMF", "SC-001");
deleteServiceCodes

Deletes a ServiceCodes by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
serviceCodestringYesThe service code key field, e.g. "SC-001".
headersDeleteServiceCodesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteServiceCodes("INMF", "SC-001");
updateServiceCodes

Updates an existing ServiceCodes.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "INMF".
serviceCodestringYesThe service code key field, e.g. "SC-001".
payloadServiceCodesYesThe fields to update.
headersUpdateServiceCodesHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: ServiceCodes|error

Sample code:

system:ServiceCodes payload = {
name: "Consulting services - revised"
};
system:ServiceCodes result = check fo->updateServiceCodes("INMF", "SC-001", payload);

Site Gate

listSiteGate

Lists SiteGate records, with optional OData query support.

Parameters:

NameTypeRequiredDescription
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesListSiteGateQueriesNoOData query options: $skip, $top, $filter, $orderby, $expand, cross-company, $count, $select.

Returns: SiteGateCollection|error

Sample code:

system:SiteGateCollection result = check fo->listSiteGate();
createSiteGate

Creates a new SiteGate.

Parameters:

NameTypeRequiredDescription
payloadSiteGateYesThe SiteGate record to create.
headersmap<string|string[]>NoOptional HTTP headers to include in the request.

Returns: SiteGate|error

Sample code:

system:SiteGate payload = {
dataAreaId: "USMF",
'type: "In",
siteId: "SITE-01",
gateId: "GATE-01",
description: "Inbound receiving gate"
};
system:SiteGate result = check fo->createSiteGate(payload);
getSiteGate

Retrieves a single SiteGate by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'typestringYesThe site gate type key field (In or Out), e.g. "In".
gateIdstringYesThe gate id key field, e.g. "GATE-01".
siteIdstringYesThe site id key field, e.g. "SITE-01".
headersmap<string|string[]>NoOptional HTTP headers to include in the request.
queriesGetSiteGateQueriesNoOData query options: $expand, $select.

Returns: SiteGate|error

Sample code:

system:SiteGate result = check fo->getSiteGate("USMF", "In", "GATE-01", "SITE-01");
deleteSiteGate

Deletes a SiteGate by its key.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'typestringYesThe site gate type key field (In or Out), e.g. "In".
gateIdstringYesThe gate id key field, e.g. "GATE-01".
siteIdstringYesThe site id key field, e.g. "SITE-01".
headersDeleteSiteGateHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: error?

Sample code:

check fo->deleteSiteGate("USMF", "In", "GATE-01", "SITE-01");
updateSiteGate

Updates an existing SiteGate.

Parameters:

NameTypeRequiredDescription
dataAreaIdstringYesThe company data area identifier, e.g. "USMF".
'typestringYesThe site gate type key field (In or Out), e.g. "In".
gateIdstringYesThe gate id key field, e.g. "GATE-01".
siteIdstringYesThe site id key field, e.g. "SITE-01".
payloadSiteGateYesThe fields to update.
headersUpdateSiteGateHeadersNoOptional headers, including ifMatch (ETag for optimistic concurrency).

Returns: SiteGate|error

Sample code:

system:SiteGate payload = {
description: "Inbound receiving gate - revised"
};
system:SiteGate result = check fo->updateSiteGate("USMF", "In", "GATE-01", "SITE-01", payload);