Merge subpackage_expenseReports API

The subpackage_expenseReports API from Merge — 6 operation(s) for subpackage_expensereports.

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/hris-api-employee-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/hris-api-employee-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ats-api-candidate-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ats-api-application-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/ats-api-candidate-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/accounting-api-invoice-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/accounting-api-invoice-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ticketing-api-ticket-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/ticketing-api-ticket-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/crm-api-opportunity-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/crm-api-opportunity-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/file-storage-api-file-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/file-storage-api-file-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/knowledge-base-api-article-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/knowledge-base-api-article-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/chat-api-message-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/chat-api-message-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/agent-handler-tool-pack-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/agent-handler-tool-pack-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/gateway-response-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/gateway-response-structure.json

Other Resources

🔗
Website
https://www.merge.dev/categories/hr-payroll-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-hris-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/hris-api-employee-example.json
🔗
Website
https://www.merge.dev/categories/ats-recruiting-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-ats-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ats-api-candidate-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ats-api-application-example.json
🔗
Website
https://www.merge.dev/categories/accounting-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-accounting-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/accounting-api-invoice-example.json
🔗
Website
https://www.merge.dev/categories/ticketing-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-ticketing-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ticketing-api-ticket-example.json
🔗
Website
https://www.merge.dev/categories/crm-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-crm-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/crm-api-opportunity-example.json
🔗
Website
https://www.merge.dev/categories/file-storage-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-file-storage-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/file-storage-api-file-example.json
🔗
Website
https://www.merge.dev/categories/knowledge-base
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-knowledge-base-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/knowledge-base-api-article-example.json
🔗
Website
https://www.merge.dev/categories/chat
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-chat-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/chat-api-message-example.json
🔗
Website
https://www.merge.dev/merge-agent-handler
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-agent-handler-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/agent-handler-tool-pack-example.json
🔗
Support
https://help.ah.merge.dev/
🔗
Website
https://www.merge.dev/gateway
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-gateway-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/gateway-response-example.json

OpenAPI Specification

merge-subpackage-expensereports-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Accounting subpackage_expenseReports API
  version: 1.0.0
servers:
- url: https://api.merge.dev/api
- url: https://api-eu.merge.dev/api
- url: https://api-ap.merge.dev/api
tags:
- name: subpackage_expenseReports
paths:
  /accounting/v1/expense-reports:
    get:
      operationId: list
      summary: List
      description: Returns a list of `ExpenseReport` objects.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: company_id
        in: query
        description: If provided, will only return expense reports for this company.
        required: false
        schema:
          type: string
      - name: created_after
        in: query
        description: If provided, will only return objects created after this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: created_before
        in: query
        description: If provided, will only return objects created before this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: expand
        in: query
        description: Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportsGetParametersExpandSchemaItems'
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_remote_fields
        in: query
        description: Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: modified_after
        in: query
        description: If provided, only objects synced by Merge after this date time will be returned.
        required: false
        schema:
          type: string
          format: date-time
      - name: modified_before
        in: query
        description: If provided, only objects synced by Merge before this date time will be returned.
        required: false
        schema:
          type: string
          format: date-time
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: remote_id
        in: query
        description: The API provider's ID for the given object.
        required: false
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedExpenseReportList'
    post:
      operationId: create
      summary: Create
      description: Creates an `ExpenseReport` object with the given values.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="POST" data="H4sIAAAAAAAAA7VT227aQBD9lWofkbFLCI2CVFUEaAISSwukahQha1hPzMJ619kLEKL8e7XGTSGlSlWlT3vRzJkzc848EgYWU6UfSJMAY8pJy2VKApKpBAVpku4mR2lwhLnSlgQEck4hw4PweHVCAmJc7mMw+cxRJOZK4x1pkihDnWLVSX7HMYl+JUVcWkw1WK6kiZ6Tq3dFNgmI4HKJSWuX8DrcLrxa/rx4mkhw4+nnYIyda+XS+QjvHZq/QPbcBGYoLYhqAhaiPZSq3sEc+/NdJCjQYtIBCx20yHy7ZcW5tblpRtEcRR4W1cMEVxHKCLTlTKCJGvXzk7PzRrVEKap/ilPxsVZZ3M/U7KwSp0zE4CqDCdvQSW9NF+kpbZ9u6Pa6QbfLLV0s31fiFCqDyaAxnNzUh51WbXgkIB5/+H7+7aJz0acVtu3W6eJmTSesNpiw5Wzbq/cv2bp/9XVDtzcng851nU66jf6lqg3bIzNoj9SgFYYkIPuqkubt4/5HaRyKduy4xcPoXgYp7k1lJwfkvJq7meAsNPUQMtgqCWsTMpVFGSYcIorWeLTY3DvQGOaFfYuBcSWfZ+6tTK9atN3tHNqgtQIuYCaQNK12+JuPSfN23+o5aq4SEhCmshzkg785rVEyf03QMM3zomBAMMuFekDfqOASzc+1ip3jHkJjpizG5d0XjRMo5lK+eILSej9qv18WrPMYVlkQMWSekn9qYEtPrVxljoZMPcS94xqTL6AhQ4u66GSP6xF2xRmWtHaLePCKmQDjA18NmT4Fx6QfQ4rvetICY/Zt5PeIcYkYjwsLxKsVp+YM/osV2D/J/hZK/1HTl/XeRMBDntOn6dMPQz9ZCCwGAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_CREATE_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: is_debug_mode
        in: query
        description: Whether to include debug fields (such as log file links) in the response.
        required: false
        schema:
          type: boolean
      - name: run_async
        in: query
        description: Whether or not third-party updates should be run asynchronously.
        required: false
        schema:
          type: boolean
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseReportResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseReportEndpointRequest'
  /accounting/v1/expense-reports/{expense_report_id}/lines:
    get:
      operationId: lines-list
      summary: Lines List
      description: Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: expense_report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: expand
        in: query
        description: Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportsExpenseReportIdLinesGetParametersExpandSchemaItems'
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_remote_fields
        in: query
        description: Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedExpenseReportLineList'
  /accounting/v1/expense-reports/{id}:
    get:
      operationId: retrieve
      summary: Retrieve
      description: Returns an `ExpenseReport` object with the given `id`.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: expand
        in: query
        description: Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportsIdGetParametersExpandSchemaItems'
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_remote_fields
        in: query
        description: Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseReport'
  /accounting/v1/expense-reports/lines/remote-field-classes:
    get:
      operationId: lines-remote-field-classes-list
      summary: Lines Remote Field Classes List
      description: Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: is_common_model_field
        in: query
        description: If provided, will only return remote field classes with this is_common_model_field value
        required: false
        schema:
          type: boolean
      - name: is_custom
        in: query
        description: If provided, will only return remote fields classes with this is_custom value
        required: false
        schema:
          type: boolean
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRemoteFieldClassList'
  /accounting/v1/expense-reports/meta/post:
    get:
      operationId: meta-post-retrieve
      summary: Meta Post Retrieve
      description: Returns metadata for `ExpenseReport` POSTs.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaResponse'
  /accounting/v1/expense-reports/remote-field-classes:
    get:
      operationId: remote-field-classes-list
      summary: Remote Field Classes List
      description: Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+VT224aMRD9FeRHtLAlhEZBqioCpAEJkwKpGkWRNXgni8FrL74AIcq/VwaaQJuqVZX0pW+e8cyZyznzQDg4TLW5J3UCnGuvnFApiUimE5SkTtqrHJXFAebaOBIRyAWFDA/C2eKIRMT6PMRgci5QJvbC4B2pkzhDk2LJK3EnMImfk2KhHKYGnNDKxk/JpbtNNomIFGqGSWOb8Hu4bXhp5/nBtLEUNrSfg7VuYrRPJwOce7R/gBx6k5ihciBLCTiI91BKZgvzki9MkaBEh0kLHLTQIQ/j7ipOnMttPY4nKPPypno5wUWMKgbjBJdo41r19OjktFbaoWyqf2Sp/FApTudjPT4pspRLBr7YG/EVHXWWdJoe0+bxiq6vanQ9W9Pp7F2RpVDsjXq1/ui62m81Kv0XAtjw/dfTL2etsy4t8nW7SqfXSzrild6Iz8brTrX7iS+7F59XdH191GtdVemoXet+0pV+c2B7zYHuNcplEpF9Vkn95mHfsRMORTf0wuFhdCeDFPe2sqUDclHK/VgKXrbVMmSw1gqWtsx1FmeYCIgpOhvQmJ17MFjON/LdLExo9bTzIGV60aDNdutQBo0FCAljiaTujMefdEzqN/tSz9EInZCIcJ3loO7DyxuDiodngpYbkW8KRgSzXOp7DINKodB+PyvmvQgQBjPtkAVSDy2Wg5s8u3bBoavwjc+WSFC5IFgTDtCB86GI0w4kgyz0HEwDfBZ63926QEtuA8TcC4PJJRjI0KEJo94+Ri9R1jfAJRbOvRVaFZpS+6TQHly+DoNbcLYFZxtw1h5cshIbvh2l/wFpQ0ix0FEOOHevw1RAZDvEHTlssRDUnsDbkKT/5sb+CUO/5uL28Rtl+iubVgcAAA==" /></Footer>{/* END_ACCOUNTING_EXPENSEREPORT_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenseReports
      parameters:
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: is_common_model_field
        in: query
        description: If provided, will only return remote field classes with this is_common_model_field value
        required: false
        schema:
          type: boolean
      - name: is_custom
        in: query
        description: If provided, will only return remote fields classes with this is_custom value
        required: false
        schema:
          type: boolean
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRemoteFieldClassList'
components:
  schemas:
    ErrorValidationProblem:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/ValidationProblemSource'
        title:
          type: string
        detail:
          type: string
        problem_type:
          type: string
        block_merge_link:
          type: boolean
        raw_error:
          type: string
        error_code:
          type: integer
      required:
      - title
      - detail
      - problem_type
      title: ErrorValidationProblem
    RemoteFieldRequest:
      type: object
      properties:
        remote_field_class:
          type: string
          format: uuid
        value:
          type: object
          additionalProperties:
            description: Any type
      required:
      - remote_field_class
      title: RemoteFieldRequest
    ItemTypeEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemTypeEnum
    ItemFormatEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemFormatEnum
    ExpenseReportLine:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
          - string
          - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        account:
          type:
          - string
          - 'null'
          format: uuid
        description:
          type:
          - string
          - 'null'
          description: Description of the individual expense.
        expense_date:
          type:
          - string
          - 'null'
          format: date-time
          description: The date the individual expense was incurred.
        amount:
          type:
          - number
          - 'null'
          format: double
          description: The amount of the expense for the line item.
        currency:
          oneOf:
          - $ref: '#/components/schemas/TransactionCurrencyEnum'
          - type: 'null'
          description: Currency of the expense line (if different from the report currency). The currency code in ISO 4217 format.
        exchange_rate:
          type:
          - string
          - 'null'
          format: decimal
          description: Exchange rate used if the line item is in a foreign currency.
        is_billable:
          type:
          - boolean
          - 'null'
          description: Whether the expense line is billable to a client or project.
        tracking_categories:
          type: array
          items:
            type: string
            format: uuid
          description: The related tracking categories associated with the expense report (Department, Location, Class, Expense Category)
        employee:
          type:
          - string
          - 'null'
          format: uuid
          description: Identifier for the employee who submitted or is associated with the expense report
        project:
          type:
          - string
          - 'null'
          format: uuid
        company:
          type:
          - string
          - 'null'
          format: uuid
          description: The subsidiary that the expense report is created in
        contact:
          type:
          - string
          - 'null'
          format: uuid
        quantity:
          type:
          - number
          - 'null'
          format: double
          description: Quantity for the expense line (e.g., miles driven, items purchased).
        unit_price:
          type:
          - number
          - 'null'
          format: double
          description: Price per unit for the expense line (if applicable).
        non_reimbursable:
          type:
          - boolean
          - 'null'
          description: Whether the expense line is non-reimbursable (e.g., paid via company card).
        tax_amount:
          type:
          - number
          - 'null'
          format: double
          description: Tax amount applicable for the line item.
        inclusive_of_tax:
          type:
          - boolean
          - 'null'
          description: Whether the amount is inclusive of tax.
        tax_rate:
          type:
          - string
          - 'null'
          format: uuid
        remote_was_deleted:
          type: boolean
          description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        remote_fields:
          type: array
          items:
            $ref: '#/components/schemas/RemoteField'
      required:
      - tracking_categories
      description: '# The ExpenseReportLine Object

        ### Description

        The `ExpenseReportLine` object represents an individual line item within an expense report, containing details about

        a specific expense such as amount, description, and associated metadata.


        ### Usage Example

        Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view all line items in the expense report.'
      title: ExpenseReportLine
    PaginatedExpenseReportLineList:
      type: object
      properties:
        next:
          type:
          - string
          - 'null'
        previous:
          type:
          - string
          - 'null'
        results:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportLine'
      title: PaginatedExpenseReportLineList
    PaginatedExpenseReportList:
      type: object
      properties:
        next:
          type:
          - string
          - 'null'
        previous:
          type:
          - string
          - 'null'
        results:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReport'
      title: PaginatedExpenseReportList
    ExpenseReportsExpenseReportIdLinesGetParametersExpandSchemaItems:
      type: string
      enum:
      - account
      - company
      - contact
      - employee
      - project
      - tax_rate
      title: ExpenseReportsExpenseReportIdLinesGetParametersExpandSchemaItems
    ExpenseReport:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
          - string
          - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        report_date:
          type:
          - string
          - 'null'
          format: date-time
          description: The date of the expense report.
        report_identifier:
          type:
          - string
          - 'null'
          description: Human-readable expense report identifier.
        employee:
          type:
          - string
          - 'null'
          format: uuid
          description: Identifier for the employee who submitted or is associated with the expense report
        status:
          oneOf:
          - $ref: '#/components/schemas/ExpenseReportStatusEnum'
          - type: 'null'
          description: Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED
        total_amount:
          type:
          - number
          - 'null'
          format: double
          description: Total amount of the expense report
        lines:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportLine'
        currency:
          oneOf:
          - $ref: '#/components/schemas/TransactionCurrencyEnum'
          - type: 'null'
          description: Currency code for the expense report. The currency code in ISO 4217 format.
        description:
          type:
          - string
          - 'null'
          description: A brief description or purpose for the expense report
        accounting_period:
          type:
          - string
          - 'null'
          format: uuid
          description: The accounting period the report was posted in
        company:
          type:
          - string
          - 'null'
          format: uuid
          description: The subs

# --- truncated at 32 KB (46 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/openapi/merge-subpackage-expensereports-api-openapi.yml