The Account object
A Rutter Account represents an account contained within the business entity's chart of accounts. Every account is part of one of the five categories asset
, liability
, equity
, income
, and expense
, and contains an account_type
representing the sub-category of account. The account object also contains a balance representing the running sum of all credits and debits applied against the account.
Properties
id
stringThe Rutter generated unique ID of the account.
platform_id
stringThe platform specific ID of the account.
created_at
stringnullableThe ISO 8601 timestamp that the account was created.
updated_at
stringThe ISO 8601 timestamp that the account was last updated.
name
stringnullableThe business facing name of the account.
nominal_code
stringnullableThe nominal code of the account used to classify accounts by department or account type.
currency_code
enumnullableThe ISO 4217 currency code of the account.
category
enumThe category of the account.
account_type
enumThe account type of the account.
status
enumThe status of the account.
platform_data
optionalThe raw platform data corresponding to the Rutter object.
current_balance
numbernullableThe running balance of all credits and debits applied to the account.
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"name": "Checking",
"nominal_code": "1001",
"currency_code": "USD",
"current_balance": 123.45,
"category": "asset",
"account_type": "bank",
"status": "active"
}
List Accounts
GET /accounting/accountsRequest Parameters
access_token
stringqueryThe access token of the connection.
cursor
stringoptionalqueryThe cursor to use for pagination. This value is passed in from next_cursor
field in a previous request.
expand
enumoptionalqueryUsed to request inclusion of optional objects.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
limit
integeroptionalqueryThe limit on the number of entities returned.
updated_at_max
integeroptionalqueryThe Unix Timestamp in milliseconds maximum updated_at datetime to fetch entities from.
updated_at_min
integeroptionalqueryThe Unix Timestamp in milliseconds minimum updated_at datetime to fetch entities from.
Response Body
connection
Connectionconnection
attributesaccounts
arrayaccounts
attributesnext_cursor
stringnullableoptional{
"accounts": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"name": "Checking",
"nominal_code": "1001",
"currency_code": "USD",
"current_balance": 123.45,
"category": "asset",
"account_type": "bank",
"status": "active"
}
],
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE",
"orgId": "00000000-0000-0000-0000-000000000000"
}
}
Fetch an Account
GET /accounting/accounts/:idRequest Parameters
access_token
stringqueryThe access token of the connection.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
Response Body
connection
Connectionconnection
attributesaccount
Accountaccount
attributes{
"account": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"name": "Checking",
"nominal_code": "1001",
"currency_code": "USD",
"current_balance": 123.45,
"category": "asset",
"account_type": "bank",
"status": "active"
},
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE",
"orgId": "00000000-0000-0000-0000-000000000000"
}
}
Create an Account
POST /accounting/accountsRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
account
objectaccount
attributesResponse Body
Any of:
Account Response
account
Accountaccount
attributesAsync Response Payload
async_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"account": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z",
"name": "Checking",
"nominal_code": "1001",
"currency_code": "USD",
"current_balance": 123.45,
"category": "asset",
"account_type": "bank",
"status": "active"
}
}