Overview
An approver is a user who reviews expense reports for an organization. When an employee submits a report, Findity puts it in the approval list of each approver on the report’s approval chain: the approval step that report is in. The approver opens the report, checks its expenses, and then either approves the report or rejects one or more expenses with a comment. Where approval guidance is switched on for the organization, the Compliance Agent checks every expense before the approver opens it. It marks each expense Ready for approval or Needs review, with the reasons, such as an invalid receipt photo or an amount far above what the organization usually approves. The guidance is a recommendation: the approver still makes the decision. Bulk approval lets the approver approve several reports in one action, for example all reports marked Ready for approval. In the API, you send the approvals together in one bulk request. The steps follow that job: find the reports, show the guidance, open an expense, decide on one report, then decide on several.Prerequisites
- Approval is set up for the organization, with your approver on it. An organization admin or your provisioning sets this up with the Admin API. See Getting started with the Admin API, Step 6, and Approval structures.
- A user access token for the approver. Every request in this guide acts as the approver, so it needs a user-scoped token from the authorization grant flow, not a
client_credentialstoken. See Authentication. Requesting codes for other users needs a permission on your API key that Findity grants. - The approver can approve in the organization.
meta.permissions.canApproveistrueon the organization returned byGET /me/organizations/{organizationId}?include=meta.permissions. - Approval guidance is switched on for the organization (only needed for Step 2 and Step 3). Findity switches it on per organization; it can’t be switched on through the API. It is off when AI features are switched off for the organization. Without it, everything else in this guide works, and the responses carry no guidance.
Key concepts
| Concept | Description |
|---|---|
| Approval list | The reports waiting for the signed-in approver in one organization. Reports leave the list once the approver has approved or rejected them. |
approvalChainId | Identifies the approval step the approver acts in on a report. It is a short numeric string, such as "220451", not a 32-character id. Every approve or reject call needs it. |
approvalInstanceStatus | The status of the approver’s own step on the report: APPROVAL (waiting), APPROVED, AUTO_APPROVED or REJECTED. |
| Approval guidance | The Compliance Agent’s verdict on an expense: Ready for approval, Needs review, or not checked yet. It comes as labels, as data in meta.autoApproval, and as a ready-made field in the expense’s approval fields. |
| Reason | One check behind a verdict, such as NOT_VALID_RECEIPT, with a description in the approver’s language. |
| Bulk request | One POST /bulk call that runs up to 50 calls to the same endpoint, such as several approvals. |
API endpoints
All endpoints use the Expense API base URL. Examples in this guide use the stage environment. Switch to the production host (https://api.findity.com/api/v1/expense) only when you’re ready to go live.
| Operation | Method | Endpoint |
|---|---|---|
| List reports waiting for approval | GET | /me/organizations/{organizationId}/approvals |
| Get an expense’s approval fields | GET | /me/organizations/{organizationId}/approvals/expense/{expenseId}/fields |
| Approve or reject a report | PUT | /me/organizations/{organizationId}/approvals/{expenseReportId} |
| Approve several reports | POST | /bulk |
Required headers
| Header | Value |
|---|---|
Content-Type | application/json (on PUT and POST) |
Authorization | Bearer {access_token} (the approver’s user access token) |
Step 1 — Find the reports waiting for the approver
Start by listing the approver’s queue. Each report in it carries theapprovalChainId that the approve and reject calls need, and, with the right include values, the guidance for the report and for each expense.
GET /me/organizations/{organizationId}/approvals
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
include | string | none | Comma-separated extra sections. For this guide: meta.abbreviation, expenseRecords.meta.abbreviation and expenseRecords.meta.autoApproval. |
statuses | string | reports waiting for the approver | Comma-separated approvalInstanceStatus values, such as APPROVED,REJECTED, to list reports the approver has already handled. |
max | integer | 10 | Page size, 1 to 1000. |
offset | integer | 0 | Number of reports to skip. |
meta.total is the number of matching reports and meta.count the number on this page. Page through with offset until you have meta.total reports.
cURL
200 OK, one report shown, trimmed to the fields this guide uses)
JSON
id and approvalChainId: Step 4 and Step 5 need both. meta.requirements.approval.requireNextStepApprovers tells you whether the approver must choose the next step’s approvers when approving (see Step 4).
Step 2 — Show the approval guidance
Show the verdict where the approver decides: in the approval list and next to each expense. The response from Step 1 carries it in two forms. Labels. Withmeta.abbreviation, a report carries a label whose property is label.autoApproval. An expense carries the same label only when you request both expenseRecords.meta.abbreviation and expenseRecords.meta.autoApproval. Show the label’s text, style it by type, and show the icon from iconUrl to make clear the label comes from the Agent.
| Verdict | text | type |
|---|---|---|
| Ready for approval | Ready for approval | SUCCESS |
| Ready, and the approver has auto approval switched on | Auto-approved | SUCCESS |
| Needs review | Needs review | WARNING |
label.autoApproved, with the text Auto-approved.
Verdict data. meta.autoApproval on each expense holds the verdict as data, for sorting, filtering and showing the reasons:
| Field | Description |
|---|---|
status | APPROVED (Ready for approval), REJECTED (Needs review), or PENDING (the Agent hasn’t checked the expense yet; show no guidance). |
rejectReasons | Present when there are reasons. Each entry has a reason code and a description to show as is. |
APPROVED and REJECTED in meta.autoApproval.status are the Agent’s recommendation, not the approval decision. Don’t show them as the report’s or the expense’s status.Label texts and reason descriptions come in the approver’s language: an approver with Swedish as their language gets
Behöver granskas instead of Needs review. Build your logic on type, status and reason, never on the text.reason codes and their descriptions:
reason | Description |
|---|---|
SIMILAR_REJECTED_ORG | Similar expenses have previously been rejected. |
SIMILAR_REJECTED_PERSON | Similar expenses from this employee have previously been rejected. |
SIMILAR_REJECTED_GLOBAL | Similar expenses in the system have previously been rejected. |
POLICY_FAILURE | Violates the company’s expense policy. When a specific policy rule is broken, the description quotes it. |
NOT_VALID_RECEIPT | Expense without valid receipt photo. |
DEVIATING_AMOUNT_ORG | The amount deviates from what is usually approved in the organisation. |
DEVIATING_AMOUNT_PERSON | The amount deviates from what this employee usually submits. |
DEVIATING_AMOUNT_GLOBAL | The amount deviates from the global average for this type of expense. |
PREDICT_AMOUNT_DEVIATION | The entered amount deviates greatly from the predicted amount. |
WEEKEND_PURCHASE_DATE | The purchase was made during a weekend. |
SPECIAL_ITEM_ALCOHOL | The expense seems to contain alcohol. |
SPECIAL_ITEM_TOBACCO | The expense seems to contain tobacco. |
DUPLICATE_EXPENSE_PERSON | The receipt appears to have already been submitted by this employee. |
DUPLICATE_EXPENSE_ORG | The receipt appears to have already been submitted in the organisation. |
NO_RECEIPT_MILEAGE | Recommendation to review all mileage separately. |
NO_RECEIPT_PER_DIEM | Recommendation to review all per diem separately. |
NO_RECEIPT_FOOD_BENEFIT | Recommendation to review all meal benefits separately. |
NO_RECEIPT_FUEL_BENEFIT | Recommendation to review all fuel benefits separately. |
NO_RECEIPT_CONGESTION_BENEFIT | Recommendation to review all congestion charges separately. |
NO_SIMILAR_EXPENSES_FOUND | Found no similar expenses to compare with. |
PREVIOUSLY_REJECTED | The expense has previously been rejected. |
SIMILAR_SENT_BACK_BY_ADMIN_ORG | Similar expenses sent back to user from admin in this org. |
SIMILAR_EDITED_BY_ADMIN_ORG | Similar expenses edited by admin in this org. |
description of a code your app doesn’t recognize rather than hiding it.
Step 3 — Open an expense for review
When the approver opens an expense, fetch its approval fields: the expense’s details as read-only fields. If approval guidance is switched on, the response includes the guidance as a ready-made field.GET /me/organizations/{organizationId}/approvals/expense/{expenseId}/fields
{expenseId} is the id of an expense in expenseRecords from Step 1.
cURL
fields, meta, splits and validationErrors; the guidance is the field in fields whose property is autoApprovalInfo.
Example response (status 200 OK, the autoApprovalInfo field only)
JSON
INFORMATION fields. If it doesn’t, add support for it:
- Use
nameas the heading, and style the banner byinformationType:SUCCESSfor Ready for approval,WARNINGfor Needs review. - Show
valuewith its line breaks. Each reason is on its own line and starts with a bullet. - Show the icon from
iconUrl. - Render nothing when
visibleisfalse: the Agent hasn’t checked the expense.
value lists the checks that passed. The report’s approval fields (GET /me/organizations/{organizationId}/approvals/expensereports/{expenseReportId}/fields) don’t include this field; it exists only per expense. See Dynamic fields for rendering fields in general.
Step 4 — Approve or reject a report
Send the approver’s decision on one report. Expenses you list inrejectedExpenseRecords are rejected. With nothing in rejectedExpenseRecords, the whole report is approved.
PUT /me/organizations/{organizationId}/approvals/{expenseReportId}
Request body
| Field | Type | Required | Description |
|---|---|---|---|
approvalChainId | string | Yes | The report’s approvalChainId from Step 1. |
rejectedExpenseRecords | array | Optional | Expenses to reject, each with id (an expense id from the report) and an optional rejectComment that the employee sees. |
approverComment | string | Optional | Comment saved on the approval step and shown in the report’s approval history. |
nextStepApproverIds | array of strings | Conditional | Person ids of the approvers for the next step. Send it only when meta.requirements.approval.requireNextStepApprovers is true on the report; otherwise the call fails with 400 INVALID_PARAMETER (“nextStepApproverIds not allowed”). |
cURL
200 OK, trimmed)
JSON
approvalChainId or the reimbursement amount. Once the last approval step is done, Findity moves the report on, so its status can already be past APPROVED (for example SENT) when you read it again.
Reject the dinner from Step 1 and send the report back:
cURL
200 OK, trimmed)
JSON
Retrying after a timeout
A decision can’t be applied twice. If a call times out and you resend it, the second call fails instead of acting again: on a report that was approved, it returns400 REPORT_HAS_WRONG_STATUS_CAN_NOT_BE_APPROVED; on a report that was rejected, it returns 403 (“Cannot approve this report”). To find out whether the first call went through, list the approval queue again (Step 1): a report the approver has handled is no longer in it, and statuses=APPROVED,REJECTED shows how it was handled.
Step 5 — Approve several reports at once
To approve several reports in one action, send the approvals in one bulk request. Each entry inrequests is the same PUT as in Step 4, for one report.
POST /bulk
Request body
cURL
200 OK, entry bodies trimmed)
JSON
200 whenever the batch itself is valid, even when some approvals fail. Each approval runs on its own and nothing is rolled back, so read every entry’s status: here the first two reports were approved and the third was not. A successful entry’s body is the full report, as in Step 4.
Common integration patterns
Approve everything marked Ready for approval. List the queue withinclude=meta.abbreviation (Step 1) and pick the reports whose label.autoApproval label has type SUCCESS. Let the approver confirm the selection, then approve them with one bulk request per 50 reports (Step 5). Then list the queue again: reports that failed are still in it.
Put the reports that need review first. Sort the approver’s queue so reports with a WARNING guidance label come first, and show each expense’s meta.autoApproval.rejectReasons in the list (Step 1 and Step 2). Approvers then spend their time where the Agent found something.
Start the rejection comment from the Agent’s reason. When the approver rejects an expense the Agent flagged, prefill rejectComment with the reason’s description and let the approver edit it before sending (Step 4).
Error handling
Errors come as a JSON object withresult, a requestId, a description and, for most errors, a machine-readable code:
JSON
code and the status, not on description.
In a bulk request, each approval’s error comes back in its own entry, with the same status and body as above.
Next steps
Expense reports
Create, submit and track the reports that approvers review.
Dynamic fields
Render the approval fields, including information fields such as the approval guidance.
Approval structures
Set up who approves which reports, in how many steps.
Authentication
Get the approver’s user access token with the authorization grant flow.

