---
title: "Get All Referral Orders"
method: GET
path: "/organization/referral-orders/{organization_id}/"
tags: ["organization"]
---

# Get All Referral Orders

`GET /organization/referral-orders/{organization_id}/`

Get all orders with referral codes applied for an organization.

Returns a list of orders with:
- buyer_name: Name of the customer who placed the order
- event_name: Name of the event
- order_number: Unique order number
- total_tickets_count: Total number of tickets in the order
- total_order_amount: Order amount without service fees
- total_commission_earned: Commission earned from this order
- referral_code_name: Referral code used for the order

Query Parameters:
- search: Search by order_number, referral_code_name, or buyer_name
- sort_by: Sort options:
    * NEWEST - Most recent orders first (default)
    * OLDEST - Oldest orders first

## Path parameters

- `organization_id` integer, required

## Query parameters

- `page` integer
- `page_size` integer
- `search` string, nullable
- `sort_by` string, nullable
- `year` string, nullable
- `month` string, nullable
- `date` string, nullable
- `start_date` string, nullable
- `end_date` string, nullable
- `week_number` string, nullable
- `is_download` boolean, nullable
- `file_type` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

## Changes

- **2026-09-03** `43ba83e1f2fe` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/myticketpartner/apis/fastapi/changes/organization/referral-orders/:organization_id/get.md)

---

[API](https://skmtc.dev/myticketpartner/apis/fastapi.md) · [All operations](https://skmtc.dev/myticketpartner/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myticketpartner/fastapi/revisions/43ba83e1f2fe/schema)
