---
title: "Get my orders"
method: GET
path: "/ecommerce/profile/my-orders"
tags: ["🛒 Ecommerce"]
---

# Get my orders

`GET /ecommerce/profile/my-orders`

The API endpoint allows you to retrieve the placed orders of the logged-in user in an ecommerce application.

When accessing this endpoint, you will receive a response containing the list of orders that have been placed by the currently authenticated user.

## Query parameters

- `page` string
- `limit` string

## Response `200`

Get my orders

- object
  - `data` object
    - `hasNextPage` boolean
    - `hasPrevPage` boolean
    - `limit` number
    - `nextPage` unknown
    - `orders` object[]
      - `__v` number
      - `_id` string
      - `address` object
        - `__v` number
        - `_id` string
        - `addressLine1` string
        - `addressLine2` string
        - `city` string
        - `country` string
        - `createdAt` string
        - `owner` string
        - `pincode` string
        - `state` string
        - `updatedAt` string
      - `coupon` unknown
      - `createdAt` string
      - `customer` object
        - `_id` string
        - `email` string
        - `username` string
      - `discountedOrderPrice` number
      - `isPaymentDone` boolean
      - `orderPrice` number
      - `paymentId` string
      - `paymentProvider` string
      - `status` string
      - `totalOrderItems` number
      - `updatedAt` string
    - `page` number
    - `prevPage` unknown
    - `serialNumberStartFrom` number
    - `totalOrders` number
    - `totalPages` number
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
