Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Yokoy Expense API

An expense is a cost incurred during the performance of a business activity. Employees can create reimbursable or non-reimbursable expenses. The Expense endpoints let you query all expense types managed in Yokoy: receipt, receiptless, mileage, and per diem. You can query individual expenses included as part of a trip.

Yokoy Expense API is one of 22 APIs that Yokoy publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Expense. The published artifact set on APIs.io includes an OpenAPI specification and authentication docs.

This API exposes 4 operations across 4 paths, and defines 7 schemas. It is described by OpenAPI 3.0.0, at version 1.41.0.

Requests are made against 2 base URLs: https://api.yokoy.ai/v1/organizations/{organizationId}, https://api.test.yokoy.ai/v1/organizations/{organizationId}.

4 operations 4 paths 7 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.41.0
Base URL
https://api.yokoy.ai/v1/organizations/{organizationId}
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Yokoy Expense API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the clientCredentials flow.

  • OAuth2 — Authentication to the Yokoy API relies on the standard OAuth2 client credentials flow. 1. Obtain an access token Perform a POST request to https://accounts.yok…

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Expense 4

An expense is a cost incurred during the performance of a business activity. Employees can create reimbursable or non-reimbursable expenses. The Expense endpoints let you query al…

GET
/expenses
List all expenses
listExpenses 5 params → 200400401403429500502503
GET
/expenses/{expenseId}
Get expense by ID
getExpense 3 params → 200401403404429500502503
GET
/expenses/{expenseId}/attachments/{attachmentName}
Get expense attachment
getExpenseAttachment 4 params → 302401403404429500502503
GET
/expenses/{expenseId}/receipt
Get expense receipt
getExpenseReceipt 3 params → 302401403404429500502503

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Expense (40 properties), IncomeTaxableAmount (7 properties), EventLogEntry (5 properties), AdditionalCategoryItem (4 properties). Each schema is shown below with its type and property counts.

TaxItem
object
3 properties
CostCenterItem
object
2 properties
EventLogEntry
object
5 properties
Expense
object
40 properties 4 required
AdditionalCategoryItem
object
4 properties
Error
object
2 properties 2 required
IncomeTaxableAmount
object
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

yokoy-expense-api-openapi.yml Raw ↑

Other APIs Yokoy publishes across the network.

Yokoy Card account API
Yokoy Company card API
Yokoy Cost center API
Yokoy Daily statement API
Yokoy Expense category API
Yokoy External invoice API
Yokoy Finance export API
Yokoy FX rates API
Yokoy Goods receipt API
Yokoy Invoice API
Yokoy Invoice category API
Yokoy Invoice payment terms API