Tech Partner Documentation
COR•REC Account Payable Accounts Service
Account Payable Account service provides read-only access to Accounts Payable records. This service includes three CorrecServiceNotify_I.GET actions, each differentiated by the accompanying key/value map parameter.
Service Name: Account Payable Account Service
Service ID: com.corgroup.bms.accounting.ap#ACCOUNTS
Collaboration Method Keys:
public static final String CONTACT =
"contact";
public static final String EMAIL =
"email";
public static final String PHONE =
"phone";
public static final String NAME =
"name";
public static final String ID =
"id";
public static final String ADDRESS_KEY =
"address_key";
public static final String ADDRESS_ID =
"address_id";
public static final String TITLE =
"title";
public static final String STREET =
"street";
public static final String CITY =
"city";
public static final String ZIP_PC =
"zip_pc";
public static final String STATE_PROV =
"state_prov";
public static final String CY_ABBREV =
"county_abbrev";
public static final String CRY_ABBREV =
"country_abbrev";
public static final String COUNTRY =
"country";
public static final String ADDRESS =
"address";
public static final String APA_ID =
"apa_id";
public static final String AMOUNT =
"amount";
public static final String CONSIGNEE =
"consignee";
public static final String DATE =
"date";
public static final String LIABILITY =
"liab";
public static final String ITEMS =
"items";
public static final String SCHEDULE =
"gls_id";
public static final String NOTE =
"note";
Action: CorrecService_I.GET -
name and id of all Account Payable records0
Map:The collaboration map
requires the following key/value pair.
*CorrecService_I.BOOLEAN:
true = fetch Account Payable Records, false = fetch only
if required.
Return map - All Account Payable records
Name
(String) name
ID
(Long) account unique persisted ID
Action: CorrecService_I.GET -
contact-related information
Collaboration Map: The
collaboration map requires the following key/value pair.
*CorrecService_I.ATTRIBUTES
(Long) Account Payable unique persisted ID
Return map - Contact Info for a specific
account
CONTACT
(String) contact name
EMAIL
(String) contact email
PHONE
(String) contact phone
NAME
(String) account name
ID
(Long) account id
ADDRESS_KEY
(String) account address layout
ADDRESS_ID
(Long) address unique persisted ID
Action: CorrecService_I.GET -
address-related information (address service must
be available)
Collaboration Map:
Collaboration map requires the following key/value pairs.
*CorrecService_I.ID:
(Long) Account Payable unique persisted ID
*ADDRESS_ID
(Long) address unique persisted ID
Return map - Address information
TITLE
(String) title/department
STREET
(String) street
CITY
(String) city
ZIP_PC
(String) zip/postal code
STATE_PROV
(String) state or province
CY_ABBREV
(String) county abbreviation
CRY_ABBREV
(String) country abbreviation
COUNTRY
(String) country
ADDRESS_KEY
(String) account address layout
ADDRESS
(String) complete address
Action: CorrecService_I.CREATE -
create a payable voucher
Collaboration Map:
Collaboration map requires the following key/value pairs.
*CorrecService_I.COMPOSITE
SWT Composite used as parent to message if a message is
required
*TITLE
(String) Informative/description
*APA_ID
(Long) Account Payable account unique persisted id
*AMOUNT
(String) total amount of payable voucher - total of line
items
*CONSIGNEE
(String) name - information that might appear on a check
*DATE
(Date.sql) payable voucher date - this will be tested
against open Report Periods
*NOTE
(String) note section of payable voucher - may be an empty
String
*LIABILITY
(Long) liability schedule to use (optional; defaults to
Account Payable schedule if omitted)
*ITEMS
(List<Map<String, Object>>) contains one or
more individual voucher line items; each must contain the
following pairs:
*CREDIT
(Boolean) false
*SCHEDULE
(Long) expense schedule to use when posting
*AMOUNT
(String) amount of line item
*NOTE
(String) may be an empty String
Return Boolean: false =
voucher not created