API reference
Stock-based compensation runs
Each month's stock-based compensation as its close posted it, split by department, with the entry behind it.
Guides: Record equity awards and expense them
List stock-based compensation by month
GET/v1/sbc_expense_runs
client.sbcExpenseRuns.list()
Each month's stock-based compensation as its close posted it, the newest first, split by department.
Parameters
| Name | Type | Description |
|---|---|---|
limitQuery | integer | Page size, 1–200. |
cursorQuery | string or null | The |
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/sbc_expense_runs" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Objects
The objects these operations take and return.
SbcExpenseRunPage
| Name | Type | Description |
|---|---|---|
dataRequired | array of SbcExpenseRunOut | |
has_moreRequired | boolean | |
next_cursorRequired | string or null |
SbcExpenseRunOut
| Name | Type | Description |
|---|---|---|
amountRequired | string | The month's stock-based compensation, net. |
by_departmentRequired | array of DepartmentAmountOut | The amount split by department. |
currencyRequired | string | |
entry_idRequired | string | The entry that posted it. |
idRequired | string | An id that starts with |
period_ends_onRequired | string (date) | The month it expensed, by its last day. |
recorded_atRequired | string (date-time) | |
reversedRequired | boolean | Whether that entry was reversed; the next close expenses it again. |
versionRequired | integer | 1, or more when the month was closed again and something had changed. |
DepartmentAmountOut
| Name | Type | Description |
|---|---|---|
amountRequired | string | The department's share of the run; below zero when expense was taken back. |
departmentRequired | DepartmentRef |
DepartmentRef
| Name | Type | Description |
|---|---|---|
idRequired | string | An id that starts with |
nameRequired | string |