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

# Import an approved reimbursement

> Push one approved reimbursement. It is stored, then imported as an approved expense or reimbursement invoice, or held for review.

Required scope: `expenses:write`

**Organization key (production HTTP): served.** The key, service seat and organization must also meet this operation’s requirements.

## OpenAPI

````yaml api-reference/openapi.json POST /expense-imports/approved-reimbursements
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /expense-imports/approved-reimbursements:
    post:
      operationId: importApprovedReimbursement
      summary: Import an approved reimbursement
      x-toku-required-scope: expenses:write
      description: >-
        Push one approved reimbursement. It is stored, then imported as an
        approved expense or reimbursement invoice, or held for review.


        Required scope: `expenses:write`
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovedReimbursementRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovedReimbursementOutcome'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '409':
          description: Conflict
        '422':
          description: Unprocessable entity
        '429':
          description: Response 429
      x-toku-key-availability: served
components:
  schemas:
    ApprovedReimbursementRequest:
      type: object
      properties:
        workerEmail:
          type: string
          minLength: 3
          maxLength: 320
        purchaseDate:
          type: string
          format: date
        approvedAt:
          type: string
          maxLength: 40
          pattern: >-
            ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?(Z|[+-]\d{2}:\d{2})$
        claimAmount:
          type: string
          format: decimal
          pattern: ^-?[0-9]+(\.[0-9]{1,6}0*)?$
          x-contractkit-scale: 6
          x-contractkit-min: '0.000001'
          x-contractkit-max: '1000000000'
        claimCurrency:
          type: string
          pattern: ^[A-Z]{3}$
        payoutAmount:
          type: string
          format: decimal
          pattern: ^-?[0-9]+(\.[0-9]{1,6}0*)?$
          x-contractkit-scale: 6
          x-contractkit-min: '0.000001'
          x-contractkit-max: '1000000000'
        payoutCurrency:
          type: string
          pattern: ^[A-Z]{3}$
        vendor:
          type: string
          minLength: 1
          maxLength: 200
        category:
          type: string
          minLength: 1
          maxLength: 100
        description:
          type: string
          maxLength: 1000
        sourceReference:
          type: string
          minLength: 1
          maxLength: 200
      required:
        - workerEmail
        - purchaseDate
        - approvedAt
        - claimAmount
        - claimCurrency
        - payoutAmount
        - payoutCurrency
        - vendor
      description: >-
        One approved reimbursement. Amounts are positive decimal strings with at
        most six places; currencies are ISO 4217 codes.

        `approvedAt` must carry a UTC offset and not be in the future;
        `purchaseDate` must not be after today. `sourceReference` is the
        provider's own claim id, when it has one: it then identifies the

        claim instead of the worker, date, amount, currency and vendor, and a
        repeat of it answers the claim already stored. The amount paid

        is in the worker's salary currency: an amount sent in it is paid as sent
        and must fit its minor units (otherwise the claim is held for

        currency); a converted amount is rounded once, half up, to them.
    ApprovedReimbursementOutcome:
      type: object
      properties:
        intakeId:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/ApprovedReimbursementStatus'
        holdReason:
          oneOf:
            - $ref: '#/components/schemas/ApprovedReimbursementHoldReason'
            - type: 'null'
        workerType:
          oneOf:
            - $ref: '#/components/schemas/ApprovedReimbursementWorkerType'
            - type: 'null'
        record:
          oneOf:
            - $ref: '#/components/schemas/ApprovedReimbursementRecord'
            - type: 'null'
      required:
        - intakeId
        - status
        - holdReason
        - workerType
        - record
    ApprovedReimbursementStatus:
      type: string
      enum:
        - RECEIVED
        - IMPORTED
        - HELD
        - REJECTED
    ApprovedReimbursementHoldReason:
      type: string
      enum:
        - POSSIBLE_DUPLICATE
        - NEEDS_PERSON
        - CURRENCY
        - BEFORE_GO_LIVE
        - IMPORT_FAILED
    ApprovedReimbursementWorkerType:
      type: string
      enum:
        - EMPLOYEE
        - CONTRACTOR
    ApprovedReimbursementRecord:
      type: object
      properties:
        type:
          type: string
          enum:
            - EXPENSE_REPORT
            - INVOICE
        id:
          type: string
          format: uuid
      required:
        - type
        - id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
