Skip to content

Retrieve Master Data

Xiang edited this page Nov 6, 2019 · 12 revisions

After you login the api, you can use the api token to fetch master list from simbiz. The sample nvp (name-value pair) api url as below:

http(s)://simbiz_system_url/api.php?uid=__uid__&module=__accounting__&action=__getcurrencies__&token=__apitoken__

The sample result as below:

{
    "status":"OK",
    "msg":"",
    "data":
    {
	    "GBP":{"currency_code":"GBP"},
	    "MYR":{"currency_code":"MYR"},
	    "SGD":{"currency_code":"SGD"},
	    "TWD":{"currency_code":"TWD"},
	    "USD":{"currency_code":"USD"}
    }
}

To retrieve others info, we can substitute module and action to others parameter as below table:

module action description
accounting getcountries Get list of countries
accounting getaccounts Get list of Accounts (Account Ledger)
bpartner getBpartnerList Get list of customers & suppliers
bpartner getindustries Get list of industries
bpartner getgroups Get list of group for business partner
inventory getcategories Get list of item category
inventory getbrands Get list of brand
inventory gettypes Get list of item type
inventory getuoms Get list of unit of measurement
inventory getlocations Get list of inventory location
inventory getitems Get list of product & services

Depends on situation, some API may change, and some API might required special authority which is management by simbiz. Check with customer service if you notice some API cannot retrieve required data.