Skip to content
Store Dev
Last Updated

Game Withdrawal API Guide

This document is a developer guide for game developers on the STOVE store (studio.onstove.com).

Table of Contents

  1. Overview
  2. Common Information
  3. API Details
    • Game Withdrawal Request API
    • Game Withdrawal Complete API
    • Game Withdrawal Cancel API
  4. Implementation Guidelines
  5. Processing Flow

Overview

Feature Description

The Game Withdrawal feature is not a complete STOVE service withdrawal, but rather deletes only the user information linked to the current game within the STOVE platform.\

Key Features

  • STOVE Platform integrated account is maintained
  • Server authentication tokens and character information for the specific game are deleted
  • If using the STOVE Cash system, character-owned currency is also deleted
  • Character recovery is possible within 30 days after withdrawal (currency cannot be recovered)\

User Identifier Policy

Game TypeIdentifierPost-Withdrawal Re-registration
MemberNo-based (Epic Seven, GOH, etc.)member_noSame member_no is retained
GUID-based (New games)guidNew guid is issued

Note: For the member_no field, GUID-based games should use the guid value, and MemberNo-based games should use the member_no value.


Common Information

Server Domains

EnvironmentDomain
Sandbox (QA)https://api.gate8.com
Live (Production)https://api.onstove.com

Common Headers

NameTypeRequiredDescription
Content-TypeStringYapplication/json
AuthorizationStringYVaries by token type (see below)
caller-idStringYFormat: {service_id}_SERVER Example: GAME_IND_SERVER

Authentication Token Types

1. User Access Token

  • Used By: Game Withdrawal Request, Game Withdrawal Cancel
  • Format: Bearer {User_Access_Token}
  • Validity: 6 hours
  • Acquisition Method: Obtained by Game Client through STOVE SDK Login
  • ⚠️ Critical Notes:
    • Never cache or store on the server
    • Must be retrieved in real-time when needed
    • Using stored tokens in batch jobs will cause expiration errors\

2. API Access Token (Platform Authentication Token)

  • Used By: Game Withdrawal Complete
  • Format: Bearer {API_Access_Token}
  • Acquisition Method: Server authentication token issued by the platform (auth/v5/server_token)

API Details

1. Game Withdrawal Request API

Basic Information

text
Method: DELETE
Endpoint: /stove-terms/v3.0/agree

Functionality

Makes the user withdraw immediately or changes them to withdrawal request status (grace period status).

Request

NameTypeRequiredExampleDescription
Content-Typeapplication/jsonY-Resource media type
AuthorizationStringYBearer {token}User Access Token (valid for 6 hours)
caller-idStringYGAME_IND_SERVERAPI caller information

Query Parameters

NameTypeRequiredExampleDescription
service_idStringYGAME_INDGame ID registered with STOVE
delete_ynStringYNY: Immediate withdrawal N: Withdrawal request status (grace period)

Response

Success Response

json
{
  "code": 0,
  "message": "OK"
}

Response Fields

NameTypeExampleDescription
codeInteger0Return code (0: Success)
messageStringOKReturn message

Return Codes

CodeMessageHTTP StatusDescription
0OK200Success
400Bad request200Invalid input value
500An error occurred during the requested work200Internal server error
70800Not found this service terms200Input value is invalid
70806Not found gameInfo200service_id is invalid
70816check db status200Internal server error (DB)
70820Withdraw request user200User already has pending withdrawal request (duplicate request not allowed)
70825Check agree of terms200User has not agreed to terms (withdrawal not allowed)
70853check event broker server status200Internal server error
70854check megauth server status200Internal server error
70870check caller id200Missing caller-id in header
70899Parameter is invalid200Parameter is invalid

cURL Example

bash
curl --location --request DELETE 'https://api.onstove.com/stove-terms/v3.0/agree?service_id=GAME_IND&delete_yn=N' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {USER_ACCESS_TOKEN}' \
--header 'caller-id: GAME_IND_SERVER'

2. Game Withdrawal Complete API

Basic Information

text
Method: DELETE
Endpoint: /stove-terms/v3.0/withdraw/complete

Functionality

Completes withdrawal for users in withdrawal request status (grace period status).

Usage Scenarios

  • Called from game company’s batch server
  • Batch processing of users whose grace period has expired
  • Can process up to 100 users at once

Request

Header

NameTypeRequiredExampleDescription
Content-Typeapplication/jsonY-Resource media type
AuthorizationStringYBearer {token}API Access Token (Platform authentication token)
caller-idStringYGAME_IND_SERVERAPI caller information

Query Parameters

NameTypeRequiredExampleDescription
service_idStringYGAME_INDGame ID registered with STOVE
member_nosArray(Long)Y20070509783,20070509784member_no (or guid) of users to withdraw Maximum 100

Note: Only members with pending withdrawal requests will be withdrawn. Others are ignored.

Response

Success Response

json
{
  "code": 0,
  "message": "OK",
  "value": {
    "fail_user_list": [211104564, 211104565]
  }
}

Response Fields

NameTypeExampleDescription
codeInteger0Return code (0: Success)
messageStringOKReturn message
valueObject-Return structure (to be reflected in Live deployment on 02/11)

value Object

NameTypeExampleDescription
fail_user_listArray(Long)211104564, 211104565List of users who failed withdrawal (users not in withdrawal request status or not registered)

Return Codes

CodeMessageHTTP StatusDescription
0OK200Success
400Bad request200Invalid input value
500An error occurred during the requested work200Internal server error
70899Parameter is invalid200Parameter is invalid

cURL Example

bash
curl --location --request DELETE 'https://api.onstove.com/stove-terms/v3.0/withdraw/complete?service_id=GAME_IND&member_nos=20070509783,20070509784' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {API_ACCESS_TOKEN}' \
--header 'caller-id: GAME_IND_SERVER'

3. Game Withdrawal Cancel API

Basic Information

text
Method: DELETE
Endpoint: /stove-terms/v3.0/withdraw/cancel

Functionality

Users can cancel their game withdrawal grace period status. After cancellation, they can play the game normally.

Request

Header

NameTypeRequiredExampleDescription
Content-Typeapplication/jsonY-Resource media type
AuthorizationStringYBearer {token}User Access Token (valid for 6 hours)
caller-idStringYGAME_IND_SERVERAPI caller information

Query Parameters

NameTypeRequiredExampleDescription
service_idStringYGAME_INDGame ID registered with STOVE

Response

Success Response

json
{
  "code": 0,
  "message": "OK",
  "value": {
    "service_id": "GAME_IND"
  }
}

Response Fields

NameTypeExampleDescription
codeInteger0Return code (0: Success)
messageStringOKReturn message
valueObject-Return value

value Object

NameTypeExampleDescription
service_idStringGAME_INDGame ID for which withdrawal was cancelled

Return Codes

CodeMessageHTTP StatusDescription
0OK200Success
400Bad request200Invalid input value
500An error occurred during the requested work200Internal server error
70806Not found gameInfo200service_id is invalid
70816check db status200Internal server error (DB)
70819Already delete terms200User has already completed withdrawal cancellation
70853check event broker server status200Internal server error
70854check megauth server status200Internal server error
70870check caller id200Missing caller-id in header
70899Parameter is invalid200Parameter is invalid

cURL Example

bash
curl --location --request DELETE 'https://api.onstove.com/stove-terms/v3.0/withdraw/cancel?service_id=GAME_IND' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {USER_ACCESS_TOKEN}' \
--header 'caller-id: GAME_IND_SERVER'

Implementation Guidelines

1. User Access Token Management

⚠️ Critical

Since User Access Token is only valid for 6 hours:

  • ❌ Never cache
  • ❌ Never store on server
  • ✅ Retrieve in real-time when needed
  • ✅ Use real-time tokens in batch jobs, not stored ones\

2. User Experience (UX) Requirements

Must be implemented to prevent user mistakes:

  1. Warning Notice: Clearly state what will be deleted upon withdrawal
  2. Final Confirmation: Withdrawal intention re-confirmation popup\

3. Grace Period Configuration Guide

  • Managed by each game’s own policy
  • Character recovery is possible within 30 days after withdrawal completion
  • Recommend not deleting user data immediately
  • Recommended order: DB flag change → Backup → Deletion\

4. Multi-World Game Considerations

  • Game withdrawal deletes all character information across all worlds
  • If only specific world deletion is needed: Call STOVE character deletion API individually\

5. GUID Game Special Cases

When using game withdrawal in GUID-based games:

  • New GUID issued upon re-registration after withdrawal
  • Difficult to identify same user (possible metric distortion)
  • Alternative: Consider implementing “account withdrawal” feature using STOVE character deletion API\

6. Cross-Server Synchronization

When implementing grace period for withdrawal:

  • When operating individual worlds (not using common server)
  • Cross-server synchronization is essential for withdrawal cancellations

Processing Flow

Scenario 1: Immediate Withdrawal (No Grace Period)

text
1. User: Selects withdrawal menu in-game
2. Game Client: Displays warning notice popup
3. User: Confirms final withdrawal
4. Game Client → Game Server: Withdrawal request
5. Game Server → STOVE API: DELETE /agree (delete_yn=Y)
6. STOVE: Process immediate withdrawal
7. Game Server: Change user data flag
8. User: Receives withdrawal completion notice

Scenario 2: Withdrawal with Grace Period

text
[Withdrawal Request]
1. User: Selects withdrawal menu in-game
2. Game Client: Warning notice + Grace period notice
3. User: Confirms withdrawal request
4. Game Server → STOVE API: DELETE /agree (delete_yn=N)
5. STOVE: Change to withdrawal request status
6. Game Server: Change user data flag (scheduled for withdrawal)

[Game Entry During Grace Period]
1. User: Attempts to login to game
2. Game Server: Checks withdrawal request status
3. Game Client: Displays withdrawal cancellation notice popup
4. User: Selects withdrawal cancellation
5. Game Server → STOVE API: DELETE /withdraw/cancel
6. STOVE: Restore to normal status
7. Game Server: Restore user data flag

[Withdrawal Completion]
1. Game Batch Server: Query users with expired grace period
2. Game Batch Server → STOVE API: DELETE /withdraw/complete
3. STOVE: Process withdrawal completion
4. Game Batch Server: Backup and delete user data

Scenario 3: STOVE Automatic Withdrawal Completion

text
1. STOVE Batch Server: Automatically detect users with expired grace period
2. STOVE: Automatically process withdrawal completion
3. Game Server: Detect withdrawal completion via webhook or periodic polling
4. Game Server: Backup and delete user data

API Comparison Summary

CategoryGame Withdrawal RequestGame Withdrawal CompleteGame Withdrawal Cancel
Endpoint/agree/withdraw/complete/withdraw/cancel
Authentication TokenUser Access TokenAPI Access TokenUser Access Token
CallerGame Client/ServerGame Batch ServerGame Client/Server
delete_ynY(Immediate) / N(Grace)--
member_nos-Required (Max 100)-
Main FunctionWithdrawal request or immediate withdrawalBatch withdrawal completionCancel withdrawal request
Token Validity6 hours30 days6 hours

Additional Notes

Information to be Deleted

  • Server authentication tokens
  • STOVE character information (all worlds)
  • STOVE currency (cannot be recovered)

Information to be Retained

  • STOVE Platform integrated account
  • MemberNo-based games: member_no (GUID-based games get new GUID)

Recovery Options

  • Characters: Recovery possible within 30 days (CS request required)
  • Currency: Cannot be recovered

Contact

Implementation methods and policies must be discussed with business/planning personnel before application.

Contact Us


If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.