Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.09 KB

UserApi.md

File metadata and controls

114 lines (80 loc) · 3.09 KB

UserApi

Method HTTP request Description
getMaskedUserProfile GET /v2/user/profile/secure?userAuthorizationId={userAuthorizationId} Get masked user profile
getUserAuthorizationStatus GET /v2/user/authorizations?userAuthorizationId={userAuthorizationId} Get user authorization status
unlinkUser DELETE /v2/user/authorizations/{userAuthorizationId} Unlink user

getMaskedUserProfile

MaskedUserProfileResponse getMaskedUserProfile(userAuthorizationId)

Get masked user profile

Get the masked phone number of the user

Example

// Import classes:
import jp.ne.paypay.ApiException;
import jp.ne.paypay.api.UserApi;



UserApi apiInstance = new UserApi(apiClient);

String userAuthorizationId = "USER_AUTHORIZATION_ID"  

try {
    MaskedUserProfileResponse result = apiInstance.getMaskedUserProfile(userAuthorizationId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#getMaskedUserProfile");
    System.out.println(e.getResponseBody());
}
Please refer to the below document for more information :
https://www.paypay.ne.jp/opa/doc/v1.0/direct_debit#operation/getMaskedUserProfile

getUserAuthorizationStatus

UserAuthorizationStatus getUserAuthorizationStatus(userAuthorizationId)

Get user authorization status

Get the authorization status of a user Timeout: 15s

Example

// Import classes:
import jp.ne.paypay.ApiException;
import jp.ne.paypay.api.UserApi;



UserApi apiInstance = new UserApi(apiClient);

String userAuthorizationId = "USER_AUTHORIZATION_ID"; // String | 

try {
    UserAuthorizationStatus result = apiInstance.getUserAuthorizationStatus(userAuthorizationId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#getUserAuthorizationStatus");
    e.printStackTrace();
    System.out.println(e.getResponseBody());
}
Please refer to the below document for more information :
https://www.paypay.ne.jp/opa/doc/v1.0/direct_debit#operation/getUserAuthorizationStatus

unlinkUser

NotDataResponse unlinkUser(userAuthorizationId)

Unlink user

Unlink a user from the client Timeout: 15s

Example

// Import classes:
import jp.ne.paypay.ApiException;
import jp.ne.paypay.api.UserApi;



UserApi apiInstance = new UserApi(apiClient);

String userAuthorizationId = "USER_AUTHORIZATION_ID"; // String | 

try {
    NotDataResponse result = apiInstance.unlinkUser(userAuthorizationId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#unlinkUser");
    e.printStackTrace();
    System.out.println(e.getResponseBody());
}
Please refer to the below document for more information :
https://www.paypay.ne.jp/opa/doc/v1.0/direct_debit#operation/unlinkUser