Employee Actions
Expenses

Create an expense for the authenticated employee

Changed on

Creates a new expense record for the current employee.

Authentication

This endpoint accepts any one of the following token types:

  • Employee-scoped access token (OAuth2Assertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant. See OAuth Assertion.
  • Company-scoped access token (OAuth2AuthorizationCode) — obtained by the employee through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.

Scopes

Any one of the scopes in a token type's row is enough. all:write works too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Employee-scoped access tokenManage expenses (employment_payments)--
Company-scoped access tokenManage expenses (employment_payments)-Manage expenses (expense:write)
post/v1/employee/expenses

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesemployment_payments
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/employment.manage
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesexpense:write
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:write

Request body

ParamsToCreateEmployeeExpense required

Params for creating an expense as the authenticated employee.

The employment is implied by the access token, so employment_id is not accepted. reviewer_id and reviewed_at are also omitted — they only apply to manager-created expenses.

Category selection mirrors the company endpoint: use either category (legacy enum, deprecated but supported) or expense_category_slug (recommended). When both are provided, expense_category_slug wins.

expense_category_slug must be the slug of a category listed for the employee by GET /v1/employee/expense-categories. Slugs differ between sandbox and production, so read them from that endpoint instead of storing them. A slug that isn't listed is refused, unless category is also sent: then category is used.

amount, integer required

The expense amount in the specified currency, in cents.

category, 'car_rental' | 'coworking_office' | 'education_training' | 'entertainment' | 'flight' | 'fuel' | 'gifts' | 'insurance' | 'lodging' | 'meals' | 'other' | 'parking_toll' | 'subscription' | 'tech_equipment' | 'telecommunication' | 'transport' | 'utilities' | 'vaccination_testing' | 'visa' | 'wellness' | 'coworking' | 'home_office' | 'phone_utilities' | 'travel' nullable

Categories allowed for an expense (legacy, deprecated).<br/> Note: coworking, home_office, phone_utilities, travel are deprecated and will be removed in the future.

currency, string required

The three-letter code for the expense currency.<br/> Examples: "USD", "EUR", "CAD"

expense_category_slug, string nullable

Slug of a category listed by GET /v1/employee/expense-categories for the employee (recommended). Takes precedence over legacy category field.

expense_date, string required

Date of the purchase, which must be in the past

receipt, Base64File

All the params needed upload a base64 file.

receipts, Base64File[]
tax_amount, integer

The tax portion of the expense amount, in cents. Use 0 if no tax applies.

timezone, string
title, string required

A short description of the expense (e.g., "New keyboard", "Team dinner").

Example request

{
  "amount": 8000,
  "currency": "EUR",
  "expense_category_slug": "uuid-tech-equipment-slug",
  "expense_date": "2020-12-11",
  "receipt": {
    "content": "UGVyaW9kIEVuZCBEYXRlLFBheSBEYXRlLEVtcG...5jZSBPZiBSZXNpZGVuYdXJyZW50LEFsbG93",
    "name": "receipt.pdf"
  },
  "tax_amount": 0,
  "timezone": "Etc/UTC",
  "title": "new keyboard"
}

Response

Created

SuccessResponse required

A generic success response returned by operations that don't produce a specific resource (e.g., updates, deletes).

data, object required

Example response

{
  "data": {
    "status": "ok"
  }
}

Changes

    • info

      the security scope employment_payments was added to the endpoint's security scheme OAuth2Assertion

    • info

      the security scope https://gateway.remote.com/employment.manage was added to the endpoint's security scheme OAuth2AuthorizationCode

    • info

      the security scope all:write was removed from the endpoint's security scheme OAuth2Assertion

    1 more change in this revision