curl -X POST \\
  -H "Content-Type: application/json" \\
  -d '{
    "memberId": 1,
    "orderId": 1234,
    "pointType": "SAVE",
    "point": 1000,
    "regUser": "SYSTEM"
  }' \\
  <http://localhost:8080/api/v1/point/save>

시나리오 테스트 (문제에서 제시한 예시 시나리오)

1000원 적립 (pointKey: A)

curl -X POST <http://localhost:8080/api/v1/point/save> \\
  -H "Content-Type: application/json" \\
  -d '{
    "memberId": 2001,     // 회원아이디
    "orderId": 7001,      // 주문번호
    "pointType": "SAVE",  // MANUAL_SAVE: 관리자 수기 적립, SAVE: 적립
    "point": 1000,        // point : 1 ~ 100,000 포인트 가능
    "expireDay": 365      // expiredDay: 만료일 설정, 1 ~ 1825(최대 5년(365*5))
  }'

500원 적립 (pointKey: B)

curl -X POST <http://localhost:8080/api/v1/point/save> \\
  -H "Content-Type: application/json" \\
  -d '{
    "memberId": 2001,
    "orderId": 7002,
    "pointType": "SAVE",
    "point": 500,
    "expireDay": 365,
    "regUser": "SYSTEM" // MANUAL_SAVE 경우 입력 강제
  }'

주문번호 A1234에서 1200원 사용 (pointKey: C)

curl -X POST <http://localhost:8080/api/v1/point/use> \\
  -H "Content-Type: application/json" \\
  -d '{
    "memberId": 2001,
    "orderId": 7003,
    "pointType": "USE",
    "point": 1200,
    "regUser": "SYSTEM"
  }'

사용금액 1200원 중 1100원 부분 취소 (pointKey: D)

curl -X POST <http://localhost:8080/api/v1/point/use-part-cancel> \\
  -H "Content-Type: application/json" \\
  -d '{
    "memberId": 2001,
    "orderId": 7003,
    "pointType": "USE_PART_CANCEL",
    "point": 1100
  }'

회원 포인트 조회 (1100 + 300 = 1400원이 되어야 함)

curl -X GET <http://localhost:8080/api/v1/point/2001>

회원 주문내역 추적