Account Deposit
This endpoint allows you to add funds to a player’s account. Ensure you provide a unique transaction ID for each deposit request.
API Integration Examples
Section titled “API Integration Examples”fetch('https://API-PLATFORM/account-deposit', {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-deposit',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”headersPOST /account_depositContent-Type: application/jsonapi-id: your-agent-idapi-key: your-secret-keybody{ "user_id": "testuser", "amount": 100, "currency": "USD"}Sample Response
Section titled “Sample Response”{ "code": 0, "transaction_id": "txn_1234567890"}