Project

General

Profile

Actions

New Function #367

closed

[API] 사용자 포인트 사용 취소 API 항목 수정

Added by Jisoo Choi 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
02/19/2024
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

 

 

 

코레일유통 쪽에 아래 내용대로 괜찮을지 확인 요청 중입니다.

확인 완료 및 내용 확정될 경우 따로 전달드리도록 하겠습니다.

 

/api/pos/point_use_cancel 사용자 포인트 사용 취소 API 사용 시, 포인트 사용 시점에 저장했던 액세스 토큰을 사용할 수 없는 문제가 있습니다.

(사용 직후 취소가 아니라면, 액세스 토큰 값이 변해서 액세스 토큰 만료됨 -> api 사용 불가)

 

따라서 API에서 입력받는 값을 수정하려고 합니다.

 

(현재) access_token / use_point_seq

(수정) use_point_seq / id / mall_code / use_point / 포인트 사용 승인일자(new)

 

액세스 토큰 값을 삭제하고, 사용 시점의 사용자 ID, 매장 코드, 사용 포인트, 포인트 사용 승인일자 값을 함께 받아서 처리하려고 합니다.

*포인트 사용 승인일자 외에는 기본에 사용 시 입력받는 값

**4개(또는 5개)의 값 중 일치하지 않는 정보가 있을 경우 "****가 일치하지 않습니다."로 회신

 

 

 

Actions #1

Updated by Deca Park 7 months ago

[API] GET /api/pos/point_use_cancel

1.To-be
  1) don't check access_token (permit all)
  2) parameters
    a) use_point_seq : 사용포인트번호 (integer)
    b) id : 사용자ID (string)
    c) mall_code : 쇼핑몰코드 (string)
    d) use_point : 사용포인트 (integer)
  3) logic
    3-1) validate
      a) get DB (st_user_use_point) by use_point_seq
      b) if no data, 400 error
        - "errorCode": "common.error.wrongField",
        - "message" : "{0}가 일치하지 않습니다."
        - {0}: "사용포인트번호"
      c) if data exists
        c-1) if id param is not same with st_user_use_point.user_seq's id, 400 error
          - {0}: "사용자ID"
        c-2) if mall_code param is not same with st_user_use_point.mall_code, 400 error
          - {0}: "쇼핑몰코드"
        c-3) if use_point param is not same with st_user_use_point.use_point, 400 error
          - {0}: "사용포인트"
    3-2) process
      - same as current

Actions #2

Updated by Deca Park 7 months ago

  • Assignee changed from Deca Park to Toby Pham
Actions #3

Updated by Toby Pham 7 months ago

  • Status changed from New to Resolved
  • Assignee changed from Toby Pham to Deca Park
Actions #4

Updated by Deca Park 7 months ago

  • Assignee changed from Deca Park to Jisoo Choi
Actions #5

Updated by Jisoo Choi 7 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF