---
title: "Calculate per diem expense daily limits"
method: POST
path: "/v1/employments/{employment_id}/per-diem-expense-daily-limits"
tags: ["Pay & Compensation", "Expenses"]
---

# Calculate per diem expense daily limits

`POST /v1/employments/{employment_id}/per-diem-expense-daily-limits`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/employments/{employment_id}/per-diem-expense-daily-limits`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `https://gateway.remote.com/company.manage`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `expense:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `expense:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - HTTP bearer

Calculates the tax-free daily per diem limit for each day of a business trip for a full-time employment.
This endpoint is read-only and does not persist any data; it uses `POST` because the input payload is nested.

### Typical flow
1. Call `GET /v1/employments/{employment_id}/per-diem-expense-cities` to discover valid city codes for the destination country (omit `city` to use the country-wide rate).
2. Call `GET /v1/employments/{employment_id}/per-diem-expense-claim-types` to list selectable optional claim codes for the trip destination and start date.
3. Call `POST /v1/employments/{employment_id}/per-diem-expense-daily-limits` with the trip dates, times, currency, and per-day optional claims.

### Calculation rules
* **Standard claims** are always counted automatically and must not be sent in `daily_claims[].claims`; only optional claim codes are accepted.
* **90-day cap:** the trip (`date_range`) may span at most 90 days (inclusive), and `daily_claims` must contain between 1 and 90 entries, each with a unique date inside the trip's valid range.
* **Amounts in cents:** `limit.amount` is returned as an integer in the currency's minor unit (cents).
* **`limit: null`:** returned for a day when no limit could be computed — either because all claim rate expressions failed to evaluate (or produced no values) or because currency conversion from the configured rate currency to the requested `currency` on the trip start date (`date_range[0]`) was unavailable.
* **Mixed-currency rate normalization:** if a country's configured per diem rates use mixed currencies and cannot be converted to the rate set's evaluation currency on the trip start date (`date_range[0]`), the endpoint returns `422`.

## Authentication

This endpoint accepts any one of the following token types:

- **Company-scoped access token** (`OAuth2AuthorizationCode`) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).
- **Company-scoped access token (assertion)** (`OAuth2CompanyManagerAssertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant for a company manager. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).
- **Customer API token** (`CustomerAPIToken`) — generated by the customer on their Integration Settings page, with the scopes they choose there. See [Authorization for customers](https://developer.remote.com/docs/authorization-for-customers).

## Scopes

Any one of the scopes in a token type's row is enough. `all:read` and `all:write` work too.

| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage expenses (`employment_payments`) | View expenses (`expense:read`) | Manage expenses (`expense:write`) |
| Company-scoped access token (assertion) | Manage expenses (`employment_payments`) | View expenses (`expense:read`) | Manage expenses (`expense:write`) |
| Customer API token | Manage expenses (`employment_payments`) | View expenses (`expense:read`) | Manage expenses (`expense:write`) |

## Path parameters

- `employment_id` string, required

## Request body

- object
  - `city` string, nullable: Optional per diem city code in lowercase `<alpha3>-<city>` format (for example `fra-paris`), obtained from `GET /v1/employments/{employment_id}/per-diem-expense-cities`. Omit to use the country-wide rate.
  - `currency` string, required: Currency code in upper-case [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
  - `daily_claims` object[], required: Optional per diem claims selected for each day (1 to 90 entries). Each `date` must be unique and within `date_range`. Only optional claim codes from `GET /v1/employments/{employment_id}/per-diem-expense-claim-types` may be sent; standard claims are applied automatically and must not be included.
    - `claims` string[]: Optional claim codes selected for this day.
    - `date` string, date, required: Trip day in ISO 8601 format (`YYYY-MM-DD`). Must fall within `date_range`.
  - `date_range` string[], required: Trip start and end dates `[start_date, end_date]` in ISO 8601 format (`YYYY-MM-DD`). Must contain exactly 2 dates with `start_date <= end_date`, spanning at most 90 days (inclusive).
  - `destination_country` string, required: Destination country code in upper-case ISO 3166-1 alpha-3 format (e.g. `FRA`).
  - `end_time` string, required: End time in `HH:MM` (24-hour) format.
  - `start_time` string, required: Start time in `HH:MM` (24-hour) format.

## Response `200`

Success

- PerDiemExpenseDailyLimitsResponse
  - `data` object, required
    - `daily_limits` object[], required: Calculated tax-free daily limits, one entry per `daily_claims` input in the same order.
      - `date` string, date, required: Trip day in ISO 8601 format (`YYYY-MM-DD`).
      - `limit` object, nullable, required: Calculated tax-free daily limit in the requested currency, or `null` when no limit could be computed for that day (either all claim rate expressions failed to evaluate / returned no claim amounts, or exchange-rate conversion from the rate's currency to the requested `currency` on the trip start date was unavailable).
        - `amount` integer, required: Limit amount as an integer in the currency's minor unit (cents).
        - `currency` string, required: Currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests

## Changes

- **2026-12-01** `e3879081fea9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/remote-com/apis/remote-api/changes/v1/employments/:employment_id/per-diem-expense-daily-limits/post.md)

---

[API](https://skmtc.dev/remote-com/apis/remote-api.md) - [All operations](https://skmtc.dev/remote-com/apis/remote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/remote-com/apis/remote-api/revisions/e3879081fea9?raw)
