잔액 관리(조회/충전) API

유저 ID를 통해 해당 유저의 현재 잔액을 반환합니다.

잔액 조회

GET /users/balance/{userId}

<엔드포인트 설명>

Headers

Name
Value

Content-Type

application/json

Path Parameter

Name
Type
Description

userId

number

잔액을 조회 할 유저의 ID

Response

{
  "code" : "S",
  "message" : "잔액 조회 성공",
  "data" : {
      "userId" : 16547,
      "balance" : 100000
  },
  "error" : null
}

잔액 충전

POST /users/balance/charge

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

userId

number

잔액을 충전 할 유저의 ID

amount

number

충전 할 금액

Response

Last updated