| URL | https://api_url/v1/organization_gl_account |
| Supported Methods | GET |
| Description | Returns the Organization GL Accounts for a firm |
Accepted Query Formats
| GET /organization_gl_account[.format] | retrieve all Organization GL Accounts |
| GET /organization_gl_account/2586[.format] | Retrieve Organization GL Account with ID = 2586 |
Elements
| id | Unique ID assigned to Organization GL Account Record record |
| parent_organization_gl_account_id | Unique ID of the parent record (i.e this would correspond to, say, the main A/R account) |
| related resources | GL Account, Supplier, CustomerBillTo, Tax, Part |
Examples
Retrieve all Organization GL Accounts in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_url/v1/organization_gl_account.xml
Returns:
<?xml version="1.0" encoding="UTF-8"?>
<organization_gl_accounts>
<organization_gl_account>
<id>1</id>
<parent_organization_gl_account_id></parent_organization_gl_account_id>
<gl_account>
<id>1</id>
<name>Cash and Deposits</name>
<currency>
<currency_code>CAD</currency_code>
</currency>
<gifi_code>1000</gifi_code>
<description>Cash and Deposits</description>
<gl_account_type>
<description>Asset</description>
</gl_account_type>
<gl_account_subtype>
<name>Cash</name>
</gl_account_subtype>
</gl_account>
</organization_gl_account>
<organization_gl_account>
<id>2</id>
<parent_organization_gl_account_id></parent_organization_gl_account_id>
<gl_account>
<id>2</id>
<name>Accounts Receivable</name>
<currency>
<currency_code>CAD</currency_code>
</currency>
<gifi_code>1060</gifi_code>
<description>Accounts Receivable</description>
<gl_account_type>
<description>Asset</description>
</gl_account_type>
<gl_account_subtype>
<name>Accounts Receivable</name>
</gl_account_subtype>
</gl_account>
</organization_gl_account>
. . .
<organization_gl_account>
<id>3</id>
<parent_organization_gl_account_id></parent_organization_gl_account_id>
<gl_account>
<id>3</id>
<name>Inventory of goods for sale (i.e. finished goods)</name>
<currency>
<currency_code>CAD</currency_code>
</currency>
<gifi_code>1121</gifi_code>
<description>Inventory of goods for sale (i.e. finished goods)</description>
<gl_account_type>
<description>Asset</description>
</gl_account_type>
<gl_account_subtype>
<name>Inventory: Finished Goods</name>
</gl_account_subtype>
</gl_account>
</organization_gl_account>
<organization_gl_accounts>
Comments and Suggestions
0 comments
Please sign in to leave a comment.
Related articles