> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Apply Side Effects to Directly Loaded Records

> A `POST` to the `/imports/{importId}/jobs/{jobId}/side-effects` endpoint queues what creating the rewards or benefits through the API would have done, for every row a direct database load wrote for this import (`source_type` `import`, `source_id` the import's id): ledger entries, issue/remind/extend notifications and, with `fire_events`, the `*.created` and `balance.updated` events.

Rows are tracked as batches of this job, so add the returned `batch_count` to the job's `total_batch_count` when finalizing it. Rows already queued by an earlier call are skipped.



## OpenAPI

````yaml post /v3/imports/{import}/jobs/{job}/side-effects
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/imports/{import}/jobs/{job}/side-effects:
    post:
      tags:
        - Import Job
      summary: Apply Side Effects to Directly Loaded Records
      description: >-
        A `POST` to the `/imports/{importId}/jobs/{jobId}/side-effects` endpoint
        queues what creating the rewards or benefits through the API would have
        done, for every row a direct database load wrote for this import
        (`source_type` `import`, `source_id` the import's id): ledger entries,
        issue/remind/extend notifications and, with `fire_events`, the
        `*.created` and `balance.updated` events.


        Rows are tracked as batches of this job, so add the returned
        `batch_count` to the job's `total_batch_count` when finalizing it. Rows
        already queued by an earlier call are skipped.
      operationId: importJob.sideEffects
      parameters:
        - name: import
          in: path
          required: true
          description: The import ID
          schema:
            type: integer
        - name: job
          in: path
          required: true
          description: The job ID
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueueImportJobSideEffects'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      batch_count:
                        type: integer
                      row_count:
                        type: integer
                    required:
                      - batch_count
                      - row_count
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    QueueImportJobSideEffects:
      type: object
      properties:
        entity_type:
          type: string
          enum:
            - reward
            - benefit
        fire_events:
          type: boolean
        schedule_notifications:
          type: boolean
      required:
        - entity_type
      title: QueueImportJobSideEffects
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.