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

# Get consumer orders

> Returns Coupang consumer orders, paginated by `pageIndex` / `pageSize` and filtered by `year`. **Pro license required.**



## OpenAPI

````yaml /api-reference/coupang/openapi.json post /coupang/orders
openapi: 3.1.0
info:
  title: Magic Meal Kits — Coupang API
  version: 1.0.0
  description: >-
    Retrieve Coupang seller order sheets, consumer orders, and categories
    through your Magic Meal Kits server. Backs the **Coupang** Make.com app.


    Auth: the MMK `X-API-KEY` only. Your Coupang token is set once on the
    connection page in the Magic Meal Kits app and resolved server-side — no
    per-request token header is needed. Order sheets and category lookup are
    **Basic**; the consumer-order endpoints are **Pro**.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://{deployment}/api/v1
    description: Your Magic Meal Kits deployment
    variables:
      deployment:
        default: magic-meal-kits-xxxxx.run.app
        description: Your Cloud Run host (without protocol)
security:
  - ApiKeyAuth: []
tags:
  - name: Orders
    description: Order sheets and consumer orders.
  - name: Catalog
    description: Category lookup.
paths:
  /coupang/orders:
    post:
      tags:
        - Orders
      summary: Get consumer orders
      description: >-
        Returns Coupang consumer orders, paginated by `pageIndex` / `pageSize`
        and filtered by `year`. **Pro license required.**
      operationId: coupangOrders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsumerOrderRequest'
            example:
              pageIndex: 1
              pageSize: 50
              year: 2026
      responses:
        '200':
          description: Orders
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '400':
          $ref: '#/components/responses/BadRequestOrPro'
components:
  schemas:
    ConsumerOrderRequest:
      type: object
      description: Pagination / year filter for consumer orders.
      properties:
        pageIndex:
          type: integer
          description: 1-based page index.
        pageSize:
          type: integer
        year:
          type: integer
          description: Filter orders to a year.
    ApiResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
        error:
          type: string
        result:
          description: Result payload (orders / order sheets / category).
  responses:
    BadRequestOrPro:
      description: >-
        Invalid request, Coupang connection not configured, or a Basic key on
        this Pro route (`you are not a magic meal kits PRO user`)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your deployment's API key (MMK_API_KEY).

````