GL Accounts
Create a GL account
Creates a GL account, audited with the acting user. An exact replay (#2883) — an active account with the same code whose name, type, detail type, subtype, parent and normal balance all match the request — returns that account with 200 and writes nothing. A same-code request that differs is a 409 GL_ACCOUNT_CODE_CONFLICT naming the fields; a code held by a retired account is a 409 GL_ACCOUNT_CODE_RETIRED.
post/companies/{companyId}/gl-accounts
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
companyId, string uuid required
Request body
Create Gl Account Input required
code, string required
name, string required
type, 'Asset' | 'Liability' | 'Equity' | 'Revenue' | 'Expense' required
subtype, string
parentAccountId, string uuid
normalBalance, 'debit' | 'credit'
detailTypeKey, string nullable
reportSectionKey, string nullable
description, string nullable
Response
Exact replay; the existing GL account
Gl Account Response required
success, boolean
data, Gl Account
Example response
{
"data": {
"code": "1000",
"name": "Cash"
}
}Changes
No recorded changes to this operation across all 110 revisions of this API.