Skip to main content

Withdrawal Account Information Lookup

This API retrieves withdrawal information using a withdrawal key.

URL Confirmation

This API uses the service-account.playnanoo.com domain.

API Information

  • URL: https://service-account.playnanoo.com/api/v20240101/withdrawal/search
  • Method: PUT
  • Authentication Required: No

Request Parameters

ParameterTypeRequiredDescription
withdrawal_keystringRequiredWithdrawal key
platformstringRequiredPlatform (e.g., "aos", "ios")
device_idstringRequiredDevice unique ID
device_modelstringRequiredDevice model name
device_osstringRequiredDevice OS
device_languagestringRequiredDevice language (e.g., "KO", "EN")
DeviceInfo Inheritance

The Req class for this API inherits from DeviceInfo. All properties of DeviceInfo are automatically included.

Response Data

Res Class

FieldTypeDescription
StatusstringWithdrawal status
MemostringWithdrawal reason memo
WithdrawalDatestringScheduled withdrawal date

Unity C# Implementation

BaseResponse Class

Base class for all API responses.

public class BaseResponse
{
public string ErrorCode;
public string Message;
public string WithdrawalKey;
public string BlockKey;
}

Field descriptions:

  • ErrorCode: Error code
  • Message: Error message
  • WithdrawalKey: Key required for recovery when the account is in withdrawal grace period (only provided for accounts in withdrawal grace period)
  • BlockKey: Key provided when the account is blocked (only provided for blocked accounts)

Withdrawal Information Lookup Class

using System;
using System.Collections;
using UnityEngine.Networking;

public class WithDrawalSearch
{
static string path = "https://service-account.playnanoo.com/api/v20240101/withdrawal/search";

[Serializable]
public class Req : DeviceInfo
{
public string withdrawal_key;

public IEnumerator Send(
string withdrawalKey,
Action<Res> onSuccess,
Action<BaseResponse> onError)
{
if (!string.IsNullOrEmpty(withdrawalKey)) this.withdrawal_key = withdrawalKey;

yield return HttpClient.Send<Req, Res>(
UnityWebRequest.kHttpVerbPUT,
path,
requireToken: false,
body: this,
onSuccess: onSuccess,
onError: onError
);
}
}

[Serializable]
public class Res : BaseResponse
{
public string Status;
public string Memo;
public string WithdrawalDate;
}
}

Usage Example

public void SearchWithdrawalInfo(string withdrawalKey)
{
WithDrawalSearch.Req req = new WithDrawalSearch.Req();

StartCoroutine(req.Send(
withdrawalKey: withdrawalKey,
onSuccess: res =>
{
Debug.Log($"탈퇴 상태: {res.Status}");
Debug.Log($"탈퇴 사유: {res.Memo}");
Debug.Log($"탈퇴 예정일: {res.WithdrawalDate}");

// 날짜 파싱 예제
if (DateTime.TryParse(res.WithdrawalDate, out DateTime withdrawalDate))
{
TimeSpan remaining = withdrawalDate - DateTime.Now;
Debug.Log($"남은 기간: {remaining.Days}일 {remaining.Hours}시간");
}
},
onError: (error) =>
{
Debug.LogError($"탈퇴 정보 조회 실패: [{error.ErrorCode}] [{error.Message}]");
}
));
}
Checking Scheduled Withdrawal Date

You can check the date when the account will be completely deleted through the WithdrawalDate field. You can recover the account by calling the recovery API before this date.