Confirm Withdrawal
POST https://api.sfox.com/v1/user/withdraw/confirm
Confirm a user's withdrawal request.
Once a withdrawal is initiated, a 6-digit code will be sent to the user's email address. Collect this code from the user and submit it along with the ID of the withdrawal using this request to confirm the user's withdrawal. Once confirmed, the withdrawal will begin processing.
Body Parameters
Name
Type
Description
otp required
string
The 6-digit OTP code sent to the user's email
atx_id required
number
The transaction ID (atx_id) of the withdrawal you are confirming
Response Body
Key
Description
success
Whether the request for a new confirmation code was successful or not
atx_id
The transaction ID of the withdrawal you are requesting a code for
tx_status
The transaction status of the withdrawal
Responses
curl -X POST \
-H 'Content-type: application/json' \
-H "Authorization: Bearer ${USER_AUTH_TOKEN}" \
--data '{ "otp": "123456",
"atx_id": 987654 }' \
'https://api.sfox.com/v1/user/withdraw/confirm'const axios = require('axios');
const config = {
method: 'post',
url: 'https://api.sfox.com/v1/user/withdraw/confirm',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer {process.env.USER_AUTH_TOKEN}`
},
data: {
otp: '123456',
atx_id: 987654
}
}
axios(config)
.then(response => {
console.log(response.status);
console.log(respones.data);
})
.catch(err => {
console.error(err.response.status);
console.error(err.respones.data);
});import requests
import os
data = requests.post(
"https://api.sfox.com/v1/user/withdraw/confirm",
headers={
"Authorization": f"Bearer {os.environ['ENTERPRISE_API_KEY']}"
},
json={
"otp": "123456",
"atx_id": 987654
}
)
print(data.status_code)
print(data.json())Last updated