'오늘'당첨 티켓 상세 조회 - GoldenTicketGroup/GoldenTicketServer GitHub Wiki

'오늘'당첨 티켓 상세 조회(/ticket/detail)

뜨거운 여름 개더워요

Request

URL

[GET] ~/ticket/detail

Header

메소드 파라미터 설명
Content-Type application/json
token {access_token} access token값

is_paid 결제여부
0 미결제
1 결제완료

Response

Body

SUCCESS : 당첨 티켓 조회(결제완료)

{
    "status": 200,
    "success": true,
    "message": "당첨 내역(결제완료) 상세 조회 성공",
    "data": {
        "is_paid": 1,
        "ticket_idx": 17,
        "qr_code": "https://raw.githubusercontent.com/zpao/qrcode.react/HEAD/qrcode.png",
        "image_url": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/poster_ticket_cats%403x.jpg",
        "date": "2019년 07월 11일",
        "name": "캣츠",
        "seat_type": "3층 S30 150번",
        "seat_name": "S30",
        "price": "20000원",
        "location": "세종문화회관 대극장",
        "running_time": "14:00 ~ 16:40"
    }
}

SUCCESS : 당첨 티켓 조회(미결제)

{
    "status": 200,
    "success": true,
    "message": "당첨 내역(미결제) 상세 조회 성공",
    "data": {
        "is_paid": 0,
        "ticket_idx": 17,
        "qr_code": "https://raw.githubusercontent.com/zpao/qrcode.react/HEAD/qrcode.png",
        "image_url": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/poster_ticket_cats%403x.jpg",
        "date": "2019년 07월 11일",
        "name": "캣츠",
        "seat_type": "3층 S30 150번",
        "seat_name": "S30",
        "price": "20000원",
        "location": "세종문화회관 대극장",
        "running_time": "14:00 ~ 16:40"
    }
}

SUCCESS : 당첨되지 않은 티켓을 조회했을 때

{
    "status": 204,
    "success": true,
    "message": "당첨내역이 존재하지 않습니다."
}

FAIL : 존재하지 않는 티켓을 조회했을 때

{
    "status": 400,
    "success": false,
    "message": "존재하지 않는 당첨 티켓 입니다."
}

FAIL : 서버내부오류

{
    "status": 600,
    "success": false,
    "message": "당첨 티켓 상세 조회 실패"
}