---
title: "Queue an export of the yielded sales report"
method: GET
path: "/shop/reports/yielded-sales/queue"
tags: ["Reports"]
---

# Queue an export of the yielded sales report

`GET /shop/reports/yielded-sales/queue`

Queues a CSV export of the yielded sales report to be generated
asynchronously. Use this instead of the synchronous `text/csv` variant
of [`/shop/reports/yielded-sales`](/endpoints/Reports#listYieldedSales)
for large date ranges. Requires the `reports.download` permission.

## Query parameters

- `site_id` string, uuid, required
- `date_from` string, date
- `date_to` string, date
- `search` string
- `offering_ids` string[]
- `offering_types` string[]
- `yield_rule_ids` string[]
- `tiers` string[]
- `email` boolean

## Response `200`

The job was successfully queued

- object
  - `data` QueuedJob, required
    - `id` string, uuid, required — The ID of the queued job.
    - `status` 'pending' | 'complete' | 'failed', required — The status of the queued job.
    - `output` object, required — The output of the queued job.
    - `created_at` string, date-time, required — The date and time the queued job was created.
    - `updated_at` string, date-time, required — The date and time the queued job was last updated.

## Other responses

- `400` — The request failed.
- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
