Merge subpackage_expenses API

The subpackage_expenses API from Merge — 7 operation(s) for subpackage_expenses.

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-expenses-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Accounting subpackage_expenses 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_expenses
paths:
  /accounting/v1/expenses:
    get:
      operationId: list
      summary: List
      description: Returns a list of `Expense` objects.{/* BEGIN_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA9VXa2/iOBT9K8gfEZBpGaYq0mpFgb40hA6lo+mOKuviXIIhsVPbocBo/vvKIS2B6Qs1bLcfc20f2+eec6/zizAw6Es1J3UCjMlYGC58UiKh9DAgddKeRSg0khKBiLsQ4tpEOt0nJaLjKJLKoHfMMfD0qcIhqRMnROVjORZ8yNFzVoscLgz6CgyXQjsPi8vDZDUpkYCLCXqN5YKX4ZbTy2lk41M7AdeGlEgEWpuRkrE/6uFtjPoVyPZsAYYoDARlDww4GZSyWsI8FrO38DBAg14LDLTQILPXTXccGRPpuuOMMIgqye4VD6cOCgeU4SxA7dSqh/sHh7VyipLs/jf1g7/2iuPbgRwcFKnPAgpxsdNnM7d/dueO/c9u8/PMXVzV3MVk4Y4nn4rUh2Kn36l1+9fVbqux131kAr388uPw+1Hr6NwtskW76o6v79w+2+v02WSwOKuen7C789NvM3dxvd9pXVXdfrt2fiL3us2e7jR7stOoVEiJZLNK6j9/ZQOpcI4VYsNHYfORGT0LwccMLct8QMTLUTwIOKvoagVCWEgBd7rCZOiE6HFwLgIwQ6nCoUIEC0v1bQwK6aRn5q2T/UqUSDmhkEvxkAUra/e04TbbrXVhNKbAAxgESOpGxfiHskn95734SYmwWCkUbE5KRGEoDVKmEAx6FMwqZhO3/kUjMKNViHukRIw0EFAIU2ijQGhIDmuXILmx029jrtC7AAUhGlT2ODe/S08QrUdHUk50Pkyv8OjlkuKv0peVcbRTfqUwwDaYDjGUbyU3+TQwy49vF81lzA3mw7aLRlu0VM7PyNht9M++t7cnOa3qX7nAyorwbNRDzRSPkn3WR/ChI2Sj3GC4EUpaCI3jJAfZAYFmRX12IFJyjGwzehuDMNzMN8LZDGfjNrHK5nAjrIBNbMtKOx5HvTEjFtzQSHGWdLsHVjLdLkLFpd2PyTACMX9KpBhGgZyjxcEZG4Hw8f5IXLAg1nyKVA6tBpftLjlLKu012nZQWB5h4a3y7ypgARaOY82lKDQDGXuFdu8iHzcswekSnCbgtN27oOW0FO2kymd1kUnsax2ynvOX3bO9VZ43RaqNJ0budfIqN21pG2OAjeyLSW9YYoOTjy/6bzFnk6QnFrrCXicfua9gy+lr5mq4/+XoYO9d2sCqvH3I5vB+Pnj+FfNMg9gwxsfwwiX4WDizF01umoMNLCJNEe/fnNMpd/UBvJMR7jv+y/bYvmGs5PC2PrJDo+XvqG3eaVk/PTy9Xt1d/m+/Zz9QyXxsYpHKH/s34Ukd5i6cxwrx1s/zrXSj4wFNtPOf/IX+I0eykONfv8X786d/18/tfIT2kqreVsfgsXL0Gn3lXZh2JrCb3/8C/jltyxwWAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      parameters:
      - name: company_id
        in: query
        description: If provided, will only return expenses 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/ExpensesGetParametersExpandSchemaItems'
      - 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: transaction_date_after
        in: query
        description: If provided, will only return objects created after this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: transaction_date_before
        in: query
        description: If provided, will only return objects created before this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - 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/PaginatedExpenseList'
    post:
      operationId: create
      summary: Create
      description: Creates an `Expense` object with the given values.{/* BEGIN_ACCOUNTING_EXPENSE_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="POST" data="H4sIAAAAAAAAA8WVYW/aOhSG/8rkjygko4xVRbq6ooWtVCN0LZ1WTZV1cA7B4Nip7VBg2n+/ckhLyuhoN3r3LT45fn18zpM33wkDi7HSC9IkwJjKpOUyJh5JVISCNElnnqI0SDwCKQ8hwUeJdHZAPGKyNFXaYvSBo4jMqcYRaZIgQR1jNZN8xDEK1psCLi3GGixX0gQPm6ujfDfxiOByilFrtWG33Cq9WkQ2liYQ3FjikRSMsWOtsnh8gbcZmmcou9oEJigtiGoEFoKSSlWvZLbF3C0iFGgxaoOFNlpk7rrFiWNrU9MMgjGK1M9P9yOcBSgD0JYzgSZo1I8ODo8a1UIlP/1fGot/apXJ7VANDys0ZoJCVukN2DwcdO/CSfwuPHk3D5dXjXA5XYaT6dsKjaHSG/Qa/cF1vd9u1fpbEujl+69HX47bx2dhhS079XByfRcOWK03YNPhsls/+8juzk4/z8Pl9UGvfVUPB53G2UdV659cmN7Jheq1fJ94pDxV0vz2vRwowPmg0YyPlZq6/pRedxOIsdSX1UAg5dU0GwrOfFP3IYGlknBnfKaSIMGIQ7DWo5e3GWikn1Ss/EnqCM47x5V8aL6jOTxthSed9mMeWjPgAoYCSdPqDH8CmjS/3TNPPMJUkoJc5E/SAstjmdYomQsmmCjiEY2Jskh5RDxilQVBISkEVksL81JIgzSQV0kjsEhunMJtxjVG56AhQYs6r2N9eql/NHU5ZmvQLyqn5Yq2pN0bwa48Y2E0epQkuETjF5HVR/xoRZkA44p7RorVwKbOWIpyOBpy88PbBlOI9jLjFveDUojWODVqcpD8VD7FUNgadL90/oSgkn+mqLmKdlOFSSrUAt1lcc7GIGOk2oFStH8NXm7cNMvy0RQ9ZhrBYkTB/g6ZPw3kJbyub31f555x2ahjOyufM86muVG86UtXwH6gWctWV9jQq9HB++PD2qviswuQDSB2MWCyIc0H/z/z8Fz/OoeF+wMPFim+CkVPIHMJMb7puk7nrd4DLU6RFor3/6vZjIfmEF6ZlwdrKfHyaxd5qXH8sR9sxH2Jdi3/6sP+ilrtZ8hOqTCDv2ACG0PlkonM8BlSNXKf8ZNz/j0jePHItxb9aw72M/SbH/8BFVMpqeoMAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_CREATE_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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/ExpenseResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseEndpointRequest'
  /accounting/v1/expenses/{id}:
    get:
      operationId: retrieve
      summary: Retrieve
      description: Returns an `Expense` object with the given `id`.{/* BEGIN_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA9VXa2/iOBT9K8gfEZBpGaYq0mpFgb40hA6lo+mOKuviXIIhsVPbocBo/vvKIS2B6Qs1bLcfc20f2+eec6/zizAw6Es1J3UCjMlYGC58UiKh9DAgddKeRSg0khKBiLsQ4tpEOt0nJaLjKJLKoHfMMfD0qcIhqRMnROVjORZ8yNFzVoscLgz6CgyXQjsPi8vDZDUpkYCLCXqN5YKX4ZbTy2lk41M7AdeGlEgEWpuRkrE/6uFtjPoVyPZsAYYoDARlDww4GZSyWsI8FrO38DBAg14LDLTQILPXTXccGRPpuuOMMIgqye4VD6cOCgeU4SxA7dSqh/sHh7VyipLs/jf1g7/2iuPbgRwcFKnPAgpxsdNnM7d/dueO/c9u8/PMXVzV3MVk4Y4nn4rUh2Kn36l1+9fVbqux131kAr388uPw+1Hr6NwtskW76o6v79w+2+v02WSwOKuen7C789NvM3dxvd9pXVXdfrt2fiL3us2e7jR7stOoVEiJZLNK6j9/ZQOpcI4VYsNHYfORGT0LwccMLct8QMTLUTwIOKvoagVCWEgBd7rCZOiE6HFwLgIwQ6nCoUIEC0v1bQwK6aRn5q2T/UqUSDmhkEvxkAUra/e04TbbrXVhNKbAAxgESOpGxfiHskn95734SYmwWCkUbE5KRGEoDVKmEAx6FMwqZhO3/kUjMKNViHukRIw0EFAIU2ijQGhIDmuXILmx029jrtC7AAUhGlT2ODe/S08QrUdHUk50Pkyv8OjlkuKv0peVcbRTfqUwwDaYDjGUbyU3+TQwy49vF81lzA3mw7aLRlu0VM7PyNht9M++t7cnOa3qX7nAyorwbNRDzRSPkn3WR/ChI2Sj3GC4EUpaCI3jJAfZAYFmRX12IFJyjGwzehuDMNzMN8LZDGfjNrHK5nAjrIBNbMtKOx5HvTEjFtzQSHGWdLsHVjLdLkLFpd2PyTACMX9KpBhGgZyjxcEZG4Hw8f5IXLAg1nyKVA6tBpftLjlLKu012nZQWB5h4a3y7ypgARaOY82lKDQDGXuFdu8iHzcswekSnCbgtN27oOW0FO2kymd1kUnsax2ynvOX3bO9VZ43RaqNJ0budfIqN21pG2OAjeyLSW9YYoOTjy/6bzFnk6QnFrrCXicfua9gy+lr5mq4/+XoYO9d2sCqvH3I5vB+Pnj+FfNMg9gwxsfwwiX4WDizF01umoMNLCJNEe/fnNMpd/UBvJMR7jv+y/bYvmGs5PC2PrJDo+XvqG3eaVk/PTy9Xt1d/m+/Zz9QyXxsYpHKH/s34Ukd5i6cxwrx1s/zrXSj4wFNtPOf/IX+I0eykONfv8X786d/18/tfIT2kqreVsfgsXL0Gn3lXZh2JrCb3/8C/jltyxwWAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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/ExpensesIdGetParametersExpandSchemaItems'
      - 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/Expense'
  /accounting/v1/expenses/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_EXPENSE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA9VXa2/iOBT9K8gfEZBpGaYq0mpFgb40hA6lo+mOKuviXIIhsVPbocBo/vvKIS2B6Qs1bLcfc20f2+eec6/zizAw6Es1J3UCjMlYGC58UiKh9DAgddKeRSg0khKBiLsQ4tpEOt0nJaLjKJLKoHfMMfD0qcIhqRMnROVjORZ8yNFzVoscLgz6CgyXQjsPi8vDZDUpkYCLCXqN5YKX4ZbTy2lk41M7AdeGlEgEWpuRkrE/6uFtjPoVyPZsAYYoDARlDww4GZSyWsI8FrO38DBAg14LDLTQILPXTXccGRPpuuOMMIgqye4VD6cOCgeU4SxA7dSqh/sHh7VyipLs/jf1g7/2iuPbgRwcFKnPAgpxsdNnM7d/dueO/c9u8/PMXVzV3MVk4Y4nn4rUh2Kn36l1+9fVbqux131kAr388uPw+1Hr6NwtskW76o6v79w+2+v02WSwOKuen7C789NvM3dxvd9pXVXdfrt2fiL3us2e7jR7stOoVEiJZLNK6j9/ZQOpcI4VYsNHYfORGT0LwccMLct8QMTLUTwIOKvoagVCWEgBd7rCZOiE6HFwLgIwQ6nCoUIEC0v1bQwK6aRn5q2T/UqUSDmhkEvxkAUra/e04TbbrXVhNKbAAxgESOpGxfiHskn95734SYmwWCkUbE5KRGEoDVKmEAx6FMwqZhO3/kUjMKNViHukRIw0EFAIU2ijQGhIDmuXILmx029jrtC7AAUhGlT2ODe/S08QrUdHUk50Pkyv8OjlkuKv0peVcbRTfqUwwDaYDjGUbyU3+TQwy49vF81lzA3mw7aLRlu0VM7PyNht9M++t7cnOa3qX7nAyorwbNRDzRSPkn3WR/ChI2Sj3GC4EUpaCI3jJAfZAYFmRX12IFJyjGwzehuDMNzMN8LZDGfjNrHK5nAjrIBNbMtKOx5HvTEjFtzQSHGWdLsHVjLdLkLFpd2PyTACMX9KpBhGgZyjxcEZG4Hw8f5IXLAg1nyKVA6tBpftLjlLKu012nZQWB5h4a3y7ypgARaOY82lKDQDGXuFdu8iHzcswekSnCbgtN27oOW0FO2kymd1kUnsax2ynvOX3bO9VZ43RaqNJ0budfIqN21pG2OAjeyLSW9YYoOTjy/6bzFnk6QnFrrCXicfua9gy+lr5mq4/+XoYO9d2sCqvH3I5vB+Pnj+FfNMg9gwxsfwwiX4WDizF01umoMNLCJNEe/fnNMpd/UBvJMR7jv+y/bYvmGs5PC2PrJDo+XvqG3eaVk/PTy9Xt1d/m+/Zz9QyXxsYpHKH/s34Ukd5i6cxwrx1s/zrXSj4wFNtPOf/IX+I0eykONfv8X786d/18/tfIT2kqreVsfgsXL0Gn3lXZh2JrCb3/8C/jltyxwWAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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/expenses/meta/post:
    get:
      operationId: meta-post-retrieve
      summary: Meta Post Retrieve
      description: Returns metadata for `Expense` POSTs.{/* BEGIN_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA9VXa2/iOBT9K8gfEZBpGaYq0mpFgb40hA6lo+mOKuviXIIhsVPbocBo/vvKIS2B6Qs1bLcfc20f2+eec6/zizAw6Es1J3UCjMlYGC58UiKh9DAgddKeRSg0khKBiLsQ4tpEOt0nJaLjKJLKoHfMMfD0qcIhqRMnROVjORZ8yNFzVoscLgz6CgyXQjsPi8vDZDUpkYCLCXqN5YKX4ZbTy2lk41M7AdeGlEgEWpuRkrE/6uFtjPoVyPZsAYYoDARlDww4GZSyWsI8FrO38DBAg14LDLTQILPXTXccGRPpuuOMMIgqye4VD6cOCgeU4SxA7dSqh/sHh7VyipLs/jf1g7/2iuPbgRwcFKnPAgpxsdNnM7d/dueO/c9u8/PMXVzV3MVk4Y4nn4rUh2Kn36l1+9fVbqux131kAr388uPw+1Hr6NwtskW76o6v79w+2+v02WSwOKuen7C789NvM3dxvd9pXVXdfrt2fiL3us2e7jR7stOoVEiJZLNK6j9/ZQOpcI4VYsNHYfORGT0LwccMLct8QMTLUTwIOKvoagVCWEgBd7rCZOiE6HFwLgIwQ6nCoUIEC0v1bQwK6aRn5q2T/UqUSDmhkEvxkAUra/e04TbbrXVhNKbAAxgESOpGxfiHskn95734SYmwWCkUbE5KRGEoDVKmEAx6FMwqZhO3/kUjMKNViHukRIw0EFAIU2ijQGhIDmuXILmx029jrtC7AAUhGlT2ODe/S08QrUdHUk50Pkyv8OjlkuKv0peVcbRTfqUwwDaYDjGUbyU3+TQwy49vF81lzA3mw7aLRlu0VM7PyNht9M++t7cnOa3qX7nAyorwbNRDzRSPkn3WR/ChI2Sj3GC4EUpaCI3jJAfZAYFmRX12IFJyjGwzehuDMNzMN8LZDGfjNrHK5nAjrIBNbMtKOx5HvTEjFtzQSHGWdLsHVjLdLkLFpd2PyTACMX9KpBhGgZyjxcEZG4Hw8f5IXLAg1nyKVA6tBpftLjlLKu012nZQWB5h4a3y7ypgARaOY82lKDQDGXuFdu8iHzcswekSnCbgtN27oOW0FO2kymd1kUnsax2ynvOX3bO9VZ43RaqNJ0budfIqN21pG2OAjeyLSW9YYoOTjy/6bzFnk6QnFrrCXicfua9gy+lr5mq4/+XoYO9d2sCqvH3I5vB+Pnj+FfNMg9gwxsfwwiX4WDizF01umoMNLCJNEe/fnNMpd/UBvJMR7jv+y/bYvmGs5PC2PrJDo+XvqG3eaVk/PTy9Xt1d/m+/Zz9QyXxsYpHKH/s34Ukd5i6cxwrx1s/zrXSj4wFNtPOf/IX+I0eykONfv8X786d/18/tfIT2kqreVsfgsXL0Gn3lXZh2JrCb3/8C/jltyxwWAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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/expenses/remote-field-classes:
    get:
      operationId: remote-field-classes-list
      summary: Remote Field Classes List
      description: Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA9VXa2/iOBT9K8gfEZBpGaYq0mpFgb40hA6lo+mOKuviXIIhsVPbocBo/vvKIS2B6Qs1bLcfc20f2+eec6/zizAw6Es1J3UCjMlYGC58UiKh9DAgddKeRSg0khKBiLsQ4tpEOt0nJaLjKJLKoHfMMfD0qcIhqRMnROVjORZ8yNFzVoscLgz6CgyXQjsPi8vDZDUpkYCLCXqN5YKX4ZbTy2lk41M7AdeGlEgEWpuRkrE/6uFtjPoVyPZsAYYoDARlDww4GZSyWsI8FrO38DBAg14LDLTQILPXTXccGRPpuuOMMIgqye4VD6cOCgeU4SxA7dSqh/sHh7VyipLs/jf1g7/2iuPbgRwcFKnPAgpxsdNnM7d/dueO/c9u8/PMXVzV3MVk4Y4nn4rUh2Kn36l1+9fVbqux131kAr388uPw+1Hr6NwtskW76o6v79w+2+v02WSwOKuen7C789NvM3dxvd9pXVXdfrt2fiL3us2e7jR7stOoVEiJZLNK6j9/ZQOpcI4VYsNHYfORGT0LwccMLct8QMTLUTwIOKvoagVCWEgBd7rCZOiE6HFwLgIwQ6nCoUIEC0v1bQwK6aRn5q2T/UqUSDmhkEvxkAUra/e04TbbrXVhNKbAAxgESOpGxfiHskn95734SYmwWCkUbE5KRGEoDVKmEAx6FMwqZhO3/kUjMKNViHukRIw0EFAIU2ijQGhIDmuXILmx029jrtC7AAUhGlT2ODe/S08QrUdHUk50Pkyv8OjlkuKv0peVcbRTfqUwwDaYDjGUbyU3+TQwy49vF81lzA3mw7aLRlu0VM7PyNht9M++t7cnOa3qX7nAyorwbNRDzRSPkn3WR/ChI2Sj3GC4EUpaCI3jJAfZAYFmRX12IFJyjGwzehuDMNzMN8LZDGfjNrHK5nAjrIBNbMtKOx5HvTEjFtzQSHGWdLsHVjLdLkLFpd2PyTACMX9KpBhGgZyjxcEZG4Hw8f5IXLAg1nyKVA6tBpftLjlLKu012nZQWB5h4a3y7ypgARaOY82lKDQDGXuFdu8iHzcswekSnCbgtN27oOW0FO2kymd1kUnsax2ynvOX3bO9VZ43RaqNJ0budfIqN21pG2OAjeyLSW9YYoOTjy/6bzFnk6QnFrrCXicfua9gy+lr5mq4/+XoYO9d2sCqvH3I5vB+Pnj+FfNMg9gwxsfwwiX4WDizF01umoMNLCJNEe/fnNMpd/UBvJMR7jv+y/bYvmGs5PC2PrJDo+XvqG3eaVk/PTy9Xt1d/m+/Zz9QyXxsYpHKH/s34Ukd5i6cxwrx1s/zrXSj4wFNtPOf/IX+I0eykONfv8X786d/18/tfIT2kqreVsfgsXL0Gn3lXZh2JrCb3/8C/jltyxwWAAA=" /></Footer>{/* END_ACCOUNTING_EXPENSE_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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/expenses/bulk:
    post:
      operationId: async-bulk-create
      summary: Async Bulk Create
      description: Creates multiple `Expense` objects with the given values.{/* BEGIN_ACCOUNTING_EXPENSE_BULK_CREATE_SUPPORTED_FIELDS */}{/* END_ACCOUNTING_EXPENSE_BULK_CREATE_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      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:
        '202':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncBulkCreateResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseBulkRequest'
  /accounting/v1/expenses/bulk/{batch_id}:
    get:
      operationId: batch-objects-list
      summary: Batch Objects List
      description: Returns the status and results of an `Expense` bulk create batch.{/* BEGIN_ACCOUNTING_EXPENSE_BULK_FETCH_SUPPORTED_FIELDS */}{/* END_ACCOUNTING_EXPENSE_BULK_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_expenses
      parameters:
      - name: batch_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - 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/BatchObjectsResponse'
components:
  schemas:
    ExpenseLine:
      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.
        item:
          type:
          - string
          - 'null'
          format: uuid
          description: The line's item.
        net_amount:
          type:
          - number
          - 'null'
          format: double
          description: The line's net amount.
        tracking_category:
          type:
          - string
          - 'null'
          format: uuid
        tracking_categories:
          type: array
          items:
            type: string
            format: uuid
          description: The expense line item's associated tracking categories.
        company:
          type:
          - string
          - 'null'
          format: uuid
          description: The company the expense belongs to.
        employee:
          type:
          - string
          - 'null'
          format: uuid
          description: The employee this overall transaction relates to.
        currency:
          oneOf:
          - $ref: '#/components/schemas/TransactionCurrencyEnum'
          - type: 'null'
          description: The expense line item's currency. The currency code in ISO 4217 format.
        account:
          type:
          - string
          - 'null'
          format: uuid
          description: The expense's payment account.
        contact:
          type:
          - string
          - 'null'
          format: uuid
          description: The expense's contact.
        project:
          type:
          - string
          - 'null'
          format: uuid
        description:
          type:
          - string
          - 'null'
          description: The description of the item that was purchased by the company.
        exchange_rate:
          type:
          - string
          - 'null'
          format: decimal
          description: The expense line item's exchange rate.
        tax_rate:
          type:
          - string
          - 'null'
          format: uuid
          description: The tax rate that applies to this line item.
        quantity:
          type:
          - string
          - 'null'
          format: decimal
          description: Number of items for the expense line.
        unit_price:
          type:
          - string
          - 'null'
          format: decimal
          description: Unit price of the item for the expense line.
        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/).
      description: '# The ExpenseLine Object

        ### Description

        The `ExpenseLine` object is used to represent an expense''s line items.


        ### Usage Example

        Fetch from the `GET Expense` endpoint and view the expense''s line items.'
      title: ExpenseLine
    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
    BatchObjectsResponse:
      type: object
      properties:
        batch_id:
          type: string
          format: uuid
          description: The ID of the batch.
        status:
          $ref: '#/components/schemas/BatchObjectsResponseStatusEnum'
          description: 'Possible overall statuses:


            * `ENQUEUED` - The request has been received and a task has been enqueued for processing

            * `IN_PROGRESS` - The enqueued task is being processed

            * `PARTIAL_SUCCESS` - The task has been processed, but not all objects were written successfully

            * `SUCCESS` - The task has been processed, and all objects were written successfully

            * `FAILED` - The task has been processed, but ran into an error while processing

            * `RATE_LIMITED` - The request was received but ran into rate limits while processing. The rate limited objects are being retried.'
        total_count:
          type: integer
          description: The total number of objects in the batch.
        objects:
          type: array
          items:
            $ref: '#/components/schemas/BatchObject'
      required:
      - batch_id
      - status
      - total_count
      - objects
      description: Response serializer for GET bulk/{batch_id} - returns batch status and objects
      title: BatchObjectsResponse
    ItemTypeEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemTypeEnum
    ItemFormatEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemFormatEnum
    Expense:
      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.
        transaction_date:
          type:
          - string
          - 'null'
          format: date-time
          description: When the transaction occurred.
        remote_created_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the expense was created.
        account:
          type:
          - string
          - 'null'
          format: uuid
          description: The expense's payment account.
        contact:
          type:
          - string
          - 'null'
          format: uuid
          description: The expense's contact.
        total_amount:
          type:
          - number
          - 'null'
          format: double
          description: The expense's total amount.
        sub_total:
          type:
          - number
          - 'null'
          format: double
          description: The expense's total amount before tax.
        total_tax_amount:
          type:
          - number
          - 'null'
          format: double
          description: The expense's total tax amount.
        currency:
          oneOf:
          -

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