Account Withdraw
This endpoint allows you to deduct funds from a player’s account. It returns the updated balance after the withdrawal is processed.
API Integration Examples
Section titled “API Integration Examples”fetch('https://API-PLATFORM/account-withdraw', {method: 'POST',headers: { 'Content-Type': 'application/json', 'Api-Id': 'YOUR_SECRET_TOKEN', 'Api-Key': 'YOUR_SECRET_TOKEN'},body: JSON.stringify({ user_id: '', currency: 'KRW', transaction_id: '', amount: 1})})import axios from 'axios';
const options = {method: 'POST',url: 'https://API-PLATFORM/account-withdraw',headers: { 'Content-Type': 'application/json', 'Api-Id': 'YOUR_SECRET_TOKEN', 'Api-Key': 'YOUR_SECRET_TOKEN'},data: {user_id: '', currency: 'KRW', transaction_id: '', amount: 1}};
try {const { data } = await axios.request(options);console.log(data);} catch (error) {console.error(error);}Sample Request
Section titled “Sample Request”{ "user_id": "testuser", "currency": "USD", "amount": 50, "transaction_id": "ASDASDSADAS"}Sample Response
Section titled “Sample Response”{ "code": 0, "data": { "balance": 50, "transaction_id": "ASDASDSADAS" }}