---
title: "GET /affiliate/orders"
method: GET
path: "/affiliate/orders"
---

# GET /affiliate/orders

`GET /affiliate/orders`

Returns all orders from the system that the user has access to

## Query parameters

- `limit` integer
- `page` integer
- `organizationId` string
- `organizationIds` string[]
- `mdasc` boolean
- `from` string, date
- `to` string, date

## Response `200`

Order response

- object
  - `data` AffiliateOrder[]
    - `data` object
      - `id` string — The id of the order in the affiliate network
      - `orderId` string — The id of the order in the merchant's system
      - `status` 'pending' | 'approved' | 'rejected' | 'repproved' — The status of the order
      - `value` number — The value of the order
      - `createdAt` string — The date and time the order was created
      - `commission` number — The commission of the order
      - `commissionStatus` 'pending' | 'approved' | 'rejected' | 'repproved' — The commission status of the order
      - `items  ` object[] — The items of the order
        - `id` string — The id of the item
        - `name` string — The name of the item
        - `quantity` number — The quantity of the item
        - `price` number — The price of the item
        - `categories` number — The commission of the item
      - `organizationId` string — The id of the brand that the order belongs to
      - `mdasc` string — This field returns the mdasc, which is a custom identifier used to track the order for your custom purposes
    - `meta` Meta
      - `total` integer
      - `page` integer
      - `limit` integer
      - `totalPages` integer
  - `meta` Meta
    - `total` integer
    - `page` integer
    - `limit` integer
    - `totalPages` integer

## Other responses

- `400` — Unexpected error
- `401` — API key missing or invalid
- `403` — Valid key without required scope
- `429` — Rate limit exceeded (60 req/60s per key + IP)

---

[API](https://skmtc.net/lomadee/apis/lomadee-public-api.md) · [All operations](https://skmtc.net/lomadee/apis/lomadee-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lomadee/lomadee-public-api/versions/e9ae83c68dbe/schema)
