api.v2.intacct module

API to connect Britecore with Intacct.

api.v2.intacct.get_intacct_vendor_info(**payload)[source]

Return Intacct Vendor Information.

Returns:
  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (Intacct Vendor Information)
api.v2.intacct.get_unexported_claim_transactions_xml()[source]

Return xml for all unexported claim transactions.

Returns:
  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (list of xml dicts to post to intacct)
api.v2.intacct.get_unexported_return_premiums_xml()[source]

Return xml for all return premiums.

Returns:
  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (list of xmls to post to intacct)
api.v2.intacct.post_claim_transactions(**payload)[source]

Post claim transactions to Intacct.

Parameters:payload (dict) – Dict containing of returnPremiumIds. Posts transactions to intacct
Returns:
  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (Dict containing ids successfully posted to Intacct)
api.v2.intacct.post_return_premiums(**payload)[source]

Post return premiums to Intacct.

Parameters:payload (dict) – Dict of action(canceled or exported) and list of returnPremiumIds. Posts transactions to intacct and passes successful returnPremiumIds to policies.views.clearReturnPremiums to mark as exported
Returns:
  • success (bool) – True if completely successful, false if not
  • messages (list of str) – List of human-readable error messages
  • data (dict of transactions with their success status)