Can we fetch Account and account balance data from...
# suitetalkapi
v
Can we fetch Account and account balance data from Netsuite's REST apis ?
b
sadly both the rest api browser and the analytics browser say that balance is available but test requests/queries show that they aren't available
the TransactionAccountingLine join appears to exist, so you may be able to use suiteql to get your data if you know how to write a sql query with joins and aggregate functions
my guess to get the balance is that you want the sum of the amount of transaction accounting lines that are posting, grouped by the account's id
👍 1
t
@VK101 I use this SuiteQL query to get account balances, but I use a RESTlet. I'm not sure if it works with SuiteTalk REST.
SELECT
AcctType,
AcctNumber,
FullName,
Description,
Balance
FROM
Account
ORDER BY
AcctType ASC,
FullName ASC
👍 1
m
There is a way to do this. Can I ask what the use case is?
v
@Marc Reicher.. we have already integrated simple data types of NS (invoice, invoice items, credit memo, customer, credit memo allocations, refunds) using SOAP. Now we are extending our integration to accounting data types as well! For that I'm looking into SOAP and REST based apis and checking which will be easier for us to move forward. As we have already done previous integration with SOAP apis we are leaning towards it. But the challenge comes in when we are looking for an incremental fetch of data using lastmodifieddate with accounting data types.