Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
description: 'The chart of accounts: list and edits'
license:
name: ''
title: Wenmar Chart of Accounts API
version: 0.1.0
tags:
- description: 'The chart of accounts: list and edits'
name: Chart Of Accounts
paths:
/chart_accounts:
delete:
operationId: chart_accounts_delete
parameters:
- description: the account number to delete
in: query
name: number
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
type: object
description: '`{ number, deleted: true }`'
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such account
'422':
description: 'chart_account_in_use: details name where (parts, technicians, vendors, manual_invoices, locations)'
security:
- bearer: []
tags:
- Chart Of Accounts
summary: Chart accounts delete
x-summary-source: derived
get:
operationId: chart_accounts_index
parameters:
- description: 'true: without the location''s A/R account and its bank accounts'
in: query
name: exclude_control
required: false
schema:
type: boolean
responses:
'200':
content:
application/json:
schema:
items:
type: object
type: array
description: 'the accounts in number order: number, description, class_type (A L E S C X O T or blank), normal_balance (+, - or blank)'
'401':
description: unauthenticated
security:
- bearer: []
tags:
- Chart Of Accounts
summary: Chart accounts index
x-summary-source: derived
put:
operationId: chart_accounts_upsert
requestBody:
content:
application/json:
schema:
properties:
archived:
default: null
description: 'true retires the account (it stays on the chart and in every report; no new ledger line
may use it); false brings it back. Absent = keep. A number itself never changes.'
type:
- boolean
- 'null'
bank_account:
default: null
description: Reconcilable with the bank. Absent = keep the stored flag
type:
- boolean
- 'null'
class_type:
default: ''
description: A Asset, L Liability, E Equity, S Sales, C Cost Of Sales, X G/A Expenses, O Other Income, T Income Taxes; blank = not classified
type: string
description:
default: ''
description: At most 35 characters; case kept; may be blank
type: string
fox:
default: false
description: 'true = the rules of FoxPro''s account editor: class_type and normal_balance are required. Default false'
type: boolean
gifi_code:
default: null
description: CRA GIFI code, 4 digits; blank = not mapped. Absent = keep the stored code
type:
- string
- 'null'
normal_balance:
default: ''
description: 'The normal balance: + (debit) or - (credit); blank = not set'
type: string
number:
default: ''
description: The account number, 1-10 characters without blanks; stored trimmed, upper case
type: string
quickbooks_name:
default: null
description: 'The account''s name in the accountant''s QuickBooks (Parent:Child for a sub-account), at
most 100 characters; blank = use the description. Absent = keep the stored name'
type:
- string
- 'null'
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the stored account plus `created`
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'422':
description: 'validation_failed: number, description, class_type, normal_balance (with `fox: true` the last two are required and carry FoxPro''s messages)'
security:
- bearer: []
tags:
- Chart Of Accounts
summary: Chart accounts upsert
x-summary-source: derived
components:
securitySchemes:
bearer:
scheme: bearer
type: http