Get orders [Admin]

주문 목록 조회 API : 관리자

Retrieve orders

GET /orders

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

userId

number

회원 ID

consertId

string

공연 ID

orderStatus

string

주문 상태

startDate

timestamp

시작일

endDate

timestamp

종료일

page

number

요청 페이지 번호

size

number

페이지당 element 수

sort

string

정렬 필드 및 조건

Response

{
  "totalPages" : 1,
  "totalElementCount" : 2,
  "currentPage" : 1,
  "currentElementCount" : 2,
  "perPageNumber" : 10,
  "firstPage" : true,
  "lastPage" : true,
  "hasNextPage" : false,
  "hasPrevious" : false,
  "elements" : [
    {
      "orderId": 1,
      "userId": 1,
      "concertId": 1,
      "seats": [
        {
          "seatPriceId": 1,
          "price": 50000
        },
        {
          "seatPriceId": 2,
          "price": 70000
        }
      ],
      "totalPrice": 120000,
      "status": "결제 완료",
      "createdAt": "2024-09-25T12:34:56",
      "updatedAt": "2024-09-25T13:00:00"
    }, 
    {
      "orderId": 2,
      "userId": 1,
      "concertId": 1,
      "seats": [
        {
          "seatPriceId": 3,
          "price": 50000
        },
        {
          "seatPriceId": 4,
          "price": 70000
        }
      ],
      "totalPrice": 120000,
      "status": "결제 완료",
      "createdAt": "2024-09-25T12:42:56",
      "updatedAt": "2024-09-25T13:07:00"
    }
  ]
}

Last updated