---
title: "Retrieve the latest query job of a specific event store"
method: GET
path: "/meters/events/stores/{eventStoreId}/jobs/latest"
tags: ["Event Store"]
---

# Retrieve the latest query job of a specific event store

`GET /meters/events/stores/{eventStoreId}/jobs/latest`

## Request

- Base URL: `https://rest.test.zuora.com`
- URL: `https://rest.test.zuora.com/meters/events/stores/{eventStoreId}/jobs/latest`
- Auth: HTTP bearer

Retrieves the most recent query job executed on a specific event store in Zuora Mediation. It returns metadata such as query type (for example, DELETE), status, record counts, and timestamps.

## Path parameters

- `eventStoreId` integer, required

## Headers

- `Content-Type` string, required
- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Track-Id` string

## Response `200`

Successful response with latest event store query job details

- LatestEventStoreJobResponse
  - `success` boolean: Indicates whether the request was successful.
  - `data` object
    - `id` string: Internal event store query history ID.
    - `eventStoreId` string: Related event store ID.
    - `queryId` string: Query ID.
    - `status` integer: Run status of the job. Possible values: - 5: RUNNING - 6: PAUSED - 7: COMPLETED - 8: FAILED
    - `operationType` string: Operation type.
    - `inputRecordCount` integer: Input record count of this query.
    - `uniqueRecordCount` integer: Unique record count of this query.
    - `modifiedRecordCount` integer: Modified record count of this query.
    - `createdAt` string: Created timestamp of the query history.
    - `updatedAt` string: Updated timestamp of the query history.

## Other responses

- `400`: Bad Request
- `404`: Event store not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/zuora/apis/api-reference/revisions/2deecb0dd041?raw)
