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

# Post notificationsretrieve all



## OpenAPI

````yaml /api-reference/specs/hmrc-dps.json post /notifications/retrieve-all
openapi: 3.0.1
info:
  title: HMRC DPS Service
  description: >-
    HMRC Data Provisioning Service (DPS) API for payroll notifications and data
    retrieval
  contact:
    name: FlowPayroll
    email: support@flowpayroll.com
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/hmrc-dps
security:
  - X-Auth-Token: []
    X-Org-Id: []
tags:
  - name: Notifications
    description: >-
      List, retrieve, and act on individual HMRC DPS notifications (apply,
      ignore, reassign, set status).
  - name: Bulk actions
    description: Apply, dismiss, retrieve, and re-match notifications in bulk.
  - name: Jobs
    description: Track and cancel asynchronous DPS retrieval and processing jobs.
  - name: Pagination
    description: Inspect and initialise DPS pagination state.
paths:
  /notifications/retrieve-all:
    post:
      tags:
        - Bulk actions
      operationId: StartRetrieveAllNotifications
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DpsRetrieveAllRequestDto'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBody_DpsAsyncJobResponseDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBody_DpsErrorDto'
components:
  schemas:
    DpsRetrieveAllRequestDto:
      type: object
      additionalProperties: false
    ResponseBody_DpsAsyncJobResponseDto:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ContentResponse_DpsAsyncJobResponseDto'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    ResponseBody_DpsErrorDto:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ContentResponse_DpsErrorDto'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ContentResponse_DpsAsyncJobResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/DpsAsyncJobResponseDto'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ContentResponse_DpsErrorDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/DpsErrorDto'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          nullable: true
      additionalProperties: false
    DpsAsyncJobResponseDto:
      type: object
      properties:
        jobId:
          type: string
        status:
          enum:
            - Pending
            - Running
            - Completed
            - Failed
            - Cancelled
          type: string
        jobType:
          enum:
            - RetrieveAll
            - BulkApplyNotifications
            - BulkDismissNotifications
          type: string
        createdDate:
          type: string
          format: date-time
        estimatedCompletionDate:
          type: string
          format: date-time
          nullable: true
        statusUrl:
          type: string
        errorMessage:
          type: string
          nullable: true
        executionArn:
          type: string
          nullable: true
      additionalProperties: false
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type: string
          nullable: true
      additionalProperties: false
    DpsErrorDto:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
        timestamp:
          type: string
          format: date-time
      additionalProperties: false
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      description: Authentication token for API access
      name: X-Auth-Token
      in: header
    X-Org-Id:
      type: apiKey
      description: >-
        Organisation to scope the request to. Required when the principal can
        access more than one organisation; optional for single-organisation
        principals (the authorizer resolves it automatically).
      name: X-Org-Id
      in: header

````