Payouts
Request Manual Withdrawal
Request a payout withdrawal, if the frequency is set to manual. Refer to our `/payouts/balances` endpoint to retrieve the minimum and maximum withdrawal amounts.
AuthorizationBearer <token>
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
In: header
Path Parameters
accountstring
The Account ID
amountinteger
The amount to withdraw. Amount may not be higher than the current balance.
Response Body
curl -X POST "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal" \
-H "Content-Type: application/json" \
-d '{
"amount": 50
}'
const body = JSON.stringify({
"amount": 50
})
fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal", {
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal"
body := strings.NewReader(`{
"amount": 50
}`)
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal"
body = {
"amount": 50
}
response = requests.request("POST", url, json = body, headers = {
"Content-Type": "application/json"
})
print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
import java.net.http.HttpRequest.BodyPublishers;
var body = BodyPublishers.ofString("""{
"amount": 50
}""");
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal"))
.header("Content-Type", "application/json")
.POST(body)
.build();
try {
HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Response body: " + response.body());
} catch (Exception e) {
e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;
var body = new StringContent("""
{
"amount": 50
}
""", Encoding.UTF8, "application/json");
var client = new HttpClient();
var response = await client.PostAsync("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/payouts/request-manual-withdrawal", body);
var responseBody = await response.Content.ReadAsStringAsync();
""
{
"error": "ONLYFANS_COM_ERROR",
"message": "Bad Request - The request could not be understood by the server.",
"description": "This error happened most probably because of a bug in the OnlyFans.com API or you sent wrong parameters (like a non-existing user id).",
"onlyfans_response": {
"status": 400,
"body": {
"error": {
"code": 0,
"message": "Not enough funds to request a payout"
}
}
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999866,
"note": "OnlyFans returned an error, but we still had to make an API request to OnlyFans.com"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 10000000,
"limit_day": 50000,
"remaining_minute": 9999997,
"remaining_day": 49984
}
}
}