---
title: "Create an Expense"
method: POST
path: "/v2/accounting/expenses"
tags: ["Expenses"]
---

# Create an Expense

`POST /v2/accounting/expenses`

**Supported for:**

`freshbooks` `quickbooks` `zohoBooks`

## Request body

- PushExpenseDto
  - `connectionUuid` string, required — Unique connection identifier.
  - `data` PushExpense, required
    - `passThrough` object
    - `vendorRef` VendorRefDto
      - `id` string, required
    - `accountRef` AccountRefDto
      - `id` string, required
    - `currency` string
    - `currencyRate` number
    - `postedDate` string, date
    - `paymentMethod` 'unknown' | 'cash' | 'check' | 'creditCard' | 'debitCard' | 'bankTransfer' | 'giftCard' | 'other'
    - `paymentMethodRef` PaymentMethodRefDto
      - `id` string
      - `name` string
      - `type` 'unknown' | 'cash' | 'check' | 'creditCard' | 'debitCard' | 'bankTransfer' | 'giftCard' | 'other'
    - `memo` string
    - `lines` ExpenseLineDto[]
      - `accountRef` AccountRefDto
        - `id` string, required
      - `taxRateRef` TaxRateRefDto
        - `id` string, required
      - `trackingCategoryRefs` BillTrackingCategoryRefDto[]
        - `id` string, required
        - `type` 'class' | 'department' | 'location' | 'unknown'
      - `description` string
      - `quantity` number, float
      - `unitAmount` number, float
      - `taxAmount` number, float
      - `amount` number, float

## Response `200`

- PushExpenseeResponseDto
  - `connectionUuid` string, required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `data` PushExpense, required
    - `passThrough` object
    - `vendorRef` VendorRefDto
      - `id` string, required
    - `accountRef` AccountRefDto
      - `id` string, required
    - `currency` string
    - `currencyRate` number
    - `postedDate` string, date
    - `paymentMethod` 'unknown' | 'cash' | 'check' | 'creditCard' | 'debitCard' | 'bankTransfer' | 'giftCard' | 'other'
    - `paymentMethodRef` PaymentMethodRefDto
      - `id` string
      - `name` string
      - `type` 'unknown' | 'cash' | 'check' | 'creditCard' | 'debitCard' | 'bankTransfer' | 'giftCard' | 'other'
    - `memo` string
    - `lines` ExpenseLineDto[]
      - `accountRef` AccountRefDto
        - `id` string, required
      - `taxRateRef` TaxRateRefDto
        - `id` string, required
      - `trackingCategoryRefs` BillTrackingCategoryRefDto[]
        - `id` string, required
        - `type` 'class' | 'department' | 'location' | 'unknown'
      - `description` string
      - `quantity` number, float
      - `unitAmount` number, float
      - `taxAmount` number, float
      - `amount` number, float

## Other responses

- `400` — Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401` — Unauthorized - Not logged in or log in expired
- `403` — Forbidden - Not enough permission
- `500` — Server Error

---

[API](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api.md) · [All operations](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/railz/fis-accounting-data-as-a-service-api/revisions/5cdfae3fa1fa/schema)
