API reference
Tax lines
The Form 1120 line each GL account reports on, for the CPA's export.
- GET
/v1/tax_linesList the tax lines an account can report on - GET
/v1/tax_lines/accountsList each account's tax line
Guides: Read and export reports
List the tax lines an account can report on
GET/v1/tax_lines
client.taxLines.list()
Every line of Form 1120, Schedule L and Schedule M-1 an account can report on, in the form's order.
Response
200TaxLineList
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/tax_lines" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"List each account's tax line
GET/v1/tax_lines/accounts
client.taxLines.listAccounts()
Every postable account with the line it reports on, and whether a person chose it or it is the default.
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/tax_lines/accounts" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Objects
The objects these operations take and return.
TaxLineList
| Name | Type | Description |
|---|---|---|
dataRequired | array of TaxLineOut |
AccountTaxLineList
| Name | Type | Description |
|---|---|---|
dataRequired | array of AccountTaxLineOut |
TaxLineOut
| Name | Type | Description |
|---|---|---|
balanceRequired | boolean | Read off the year-end balance (Schedule L), not the year's activity. |
keyRequired | string |
|
labelRequired | string | The line's words on the form. |
normalRequired | string |
|
partRequired | string |
|
AccountTaxLineOut
| Name | Type | Description |
|---|---|---|
account_idRequired | string | An id that starts with |
account_typeRequired | string | |
codeRequired | string | |
nameRequired | string | |
sourceRequired | string |
|
tax_lineRequired | string | |
tax_line_labelRequired | string |