> ## 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.

# Self Serve Review Invoice

> Approves or rejects a PENDING invoice; approval snapshots payout bank details, plans payout legs and emails.

Not available to API keys yet. It will need `invoices:write`.

## OpenAPI

````yaml api-reference/openapi.json POST /hris/self-serve-review-invoice
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /hris/self-serve-review-invoice:
    post:
      operationId: selfServeReviewInvoice
      summary: Self Serve Review Invoice
      description: >-
        Approves or rejects a PENDING invoice; approval snapshots payout bank
        details, plans payout legs and emails.


        Not available to API keys yet. It will need `invoices:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelfServeReviewInvoiceRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelfServeReviewInvoiceResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    SelfServeReviewInvoiceRequest:
      type: object
      properties:
        invoiceID:
          type: string
          format: uuid
        action:
          type: string
          enum:
            - approve
            - reject
        reason:
          type: string
          maxLength: 500
        expectedVersion:
          type: string
          pattern: ^[a-f0-9]{64}$
      required:
        - invoiceID
        - action
    SelfServeReviewInvoiceResponse:
      type: object
      properties: {}
      description: Request regeneration does not infer response shapes.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
