Income and expense tracker API

Income and expense tracker API, Income-Expense Ledger manages its records from your own app: list, add, update and delete. The endpoints work with an API key instead of a browser session.

Quick start

  1. Create a key in the Developer API section of your account; the plain-text key is shown only when it is created.
  2. Send the request to https://api.pixepi.com with the Authorization: Bearer <key> header.
  3. Responses return JSON; on list endpoints you can use the page, per_page and filter fields.

Example request

curl -H "Authorization: Bearer $PIXEPI_KEY" "https://api.pixepi.com/api/v1/apps/gelir-gider-defteri/categories"

curl -X POST "https://api.pixepi.com/api/v1/apps/gelir-gider-defteri/categories" \
  -H "Authorization: Bearer $PIXEPI_KEY" \
  -d "kind=expense" \
  -d "name=Rent"

This tool's endpoints

MethodPathWhat it does
GET/categoriesLists categories (shared system categories plus your own).
POST/categoriesAdds a new category.
POST/categories/{id}Updates a category.
POST/categories/{id}/archiveArchives a category; calling it again does not change the status.
GET/entriesLists entries; filters by date, type, category and note.
POST/entriesAdds a new entry.
POST/entries/{id}Updates an entry.
POST/entries/{id}/deleteDeletes an entry.
GET/summarySummary breakdown: by month, category or type.
GET/export.csvExports entries as CSV.

Shared endpoints

MethodPathWhat it does
GET/api/v1/appsAPI catalog
GET/api/v1/apps/gelir-gider-defteriTool contract
GET/api/v1/usageUsage summary
GET/api/v1/openapi.jsonOpenAPI 3.1 document

Limits

  • The limit field in list responses carries usage and cap information.
  • Quota and plan information is tied to your account; check the current state with GET /api/v1/usage.

Error codes

CodeMeaning
unauthorizedThe API key is missing or invalid.
forbiddenThis operation is not allowed with this key.
not_foundTool, job or record not found (404 also for cross-account access).
invalid_inputInput failed validation (missing or malformed field, invalid date, and so on).
invalid_requestThe request is malformed.
too_largeFile or body size exceeds the limit.
unsupported_mediaThe file type is not accepted.
not_supportedThis tool cannot run on this endpoint (stateful app).
not_readyThe job is not finished yet.
expiredThe output has expired.
no_outputThere is no output to download for the job.
invalid_pathInvalid output path.
quota_exceededQuota or rate limit exceeded.
rate_limitedToo many requests in a short time; wait a bit and try again.
csrfBrowser form verification failed (the external API uses keys).
conflictThe operation conflicts with the current state.
unavailableThe tool is temporarily closed.
internal_errorUnexpected server error.

Documents

Frequently asked questions

Where do I get an API key?

Create a key in the Developer API section of your account; the key is shown once, at the moment it is created.

How is a request sent?

The endpoints run at https://api.pixepi.com; every request includes the "Authorization: Bearer <key>" header.

Which endpoints does the Income-Expense Ledger API expose?

The table above lists the declared endpoints; all of them work with records tied to your account and return 404 for cross-account access.

How do I read an error response?

The error body carries {ok:false, error, code, request_id} fields; code values are in the error codes table.