잔액조회
get

충전금액 잔액 조회

https://papi.udpay.co.kr/api/v1/common/member/chargePrice
  • pApiToken

    STRING 필수

    연동토큰

    UDPAY 부가서비스 연동토큰

  • state

    STRING 필수

    요청 결과

    true 성공, false 실패

  • message

    STRING

    메세지

    요청 결과 메세지

  • errorMessage

    STRING

    오류 메세지

    요청 결과에 대한 오류 메세지

  • errorType

    STRING

    오류 번호

    요청 결과에 대한 오류 번호

  • result

    NUMBER

    잔액

    연동토큰에 연결된 판매점 잔액

코드샘플
// https://mvnrepository.com/artifact/com.konghq/unirest-java/3.6.01


HttpResponse response = Unirest.get("https://papi.udpay.co.kr/api/v1/common/member/chargePrice")
.header("accept", "application/json")
.header("pApiToken", "") // 연동토큰
.asJson();

// JSONObject obj = response.getBody().getObject().getJSONObject("objKey");
// String strVal = obj.getString ("strKey");
// JSONArray arr = response.getBody().getObject().getJsonArray("arrayKey");