curl -X POST https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/accounts \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Test Expense Account",
"normality": "DEBIT",
"description": "Test account description",
"account_type": "EXPENSE",
"account_subtype": "COGS",
"parent_id": {
"type": "StableName",
"stable_name": "COST_OF_GOODS_SOLD"
}
}'
{
"data": {
"type": "Single_Chart_Account",
"id": "dc8e8032-494a-441d-a566-613baedc7f00",
"name": "Test Expense Account",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
}
}
}
Create Ledger Account
This endpoint creates an account in a business’s general ledger.
POST
/
v1
/
businesses
/
{business_id}
/
ledger
/
accounts
curl -X POST https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/accounts \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Test Expense Account",
"normality": "DEBIT",
"description": "Test account description",
"account_type": "EXPENSE",
"account_subtype": "COGS",
"parent_id": {
"type": "StableName",
"stable_name": "COST_OF_GOODS_SOLD"
}
}'
{
"data": {
"type": "Single_Chart_Account",
"id": "dc8e8032-494a-441d-a566-613baedc7f00",
"name": "Test Expense Account",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
}
}
}
Path Parameters
ID of the Business the Ledger Account is associated with.
Body
The Account Identifier of the parent account under which this ledger account is categorized.
The Stable Name for the new account
Type of the ledger account.
Values can be:
ASSET, LIABILITY, EQUITY, REVENUE, or EXPENSEID of the Business the Ledger Account is associated with.
The Account Identifier of the parent account under which this ledger account is categorized.
The Stable Name for the new account
Type of the ledger account.
Values can be:
ASSET, LIABILITY, EQUITY, REVENUE, or EXPENSESubtype of the ledger account.Assets:
BANK_ACCOUNTS, ACCOUNTS_RECEIVABLE, INVENTORY, PAYMENT_PROCESSOR_CLEARING_ACCOUNT, FIXED_ASSET, ACCUMULATED_DEPRECIATION, CASH, UNDEPOSITED_FUNDS, CURRENT_ASSET, NON_CURRENT_ASSET, PREPAID_EXPENSES, DEVELOPMENT_COSTS, LOANS_RECEIVABLE, REFUNDS_RECEIVABLE, INTANGIBLE_ASSETLiabilities: ACCOUNTS_PAYABLE, CREDIT_CARD, INCOME_TAXES_PAYABLE, SALES_TAXES_PAYABLE, OTHER_TAXES_PAYABLE, PAYROLL_TAXES_PAYABLE, UNEARNED_REVENUE, PAYROLL_LIABILITY, PAYROLL_CLEARING, LINE_OF_CREDIT, TIPS, REFUND_LIABILITIES, UNDEPOSITED_OUTFLOWS, OUTGOING_PAYMENT_CLEARING_ACCOUNT, OTHER_CURRENT_LIABILITY, LOANS_PAYABLE, NOTES_PAYABLE, SHAREHOLDER_LOAN, NON_CURRENT_LIABILITYEquity: CONTRIBUTIONS, DISTRIBUTIONS, COMMON_STOCK, PREFERRED_STOCK, ADDITIONAL_PAID_IN_CAPITAL, RETAINED_EARNINGS, ACCUMULATED_ADJUSTMENTS, OPENING_BALANCE_EQUITY, OTHER_EQUITYRevenue: REVENUE, SALES, UNCATEGORIZED_REVENUE, RETURNS_ALLOWANCES, DIVIDEND_INCOME, INTEREST_INCOME, OTHER_INCOMEExpenses: COGS, OPERATING_EXPENSES, PAYROLL, TAXES_LICENSES, UNCATEGORIZED_EXPENSE, CHARITABLE_CONTRIBUTIONS, LOAN_EXPENSES, FINANCE_COSTS, INTEREST_EXPENSES, DEPRECIATION, AMORTIZATION, BAD_DEBT, OTHER_EXPENSESResponse
Returns the Ledger Accountcurl -X POST https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/accounts \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Test Expense Account",
"normality": "DEBIT",
"description": "Test account description",
"account_type": "EXPENSE",
"account_subtype": "COGS",
"parent_id": {
"type": "StableName",
"stable_name": "COST_OF_GOODS_SOLD"
}
}'
{
"data": {
"type": "Single_Chart_Account",
"id": "dc8e8032-494a-441d-a566-613baedc7f00",
"name": "Test Expense Account",
"stable_name": null,
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
}
}
}