Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://sandbox.soleaspay.com/api/action/account/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'operation: <operation>' \
--header 'service: <service>' \
--data '
{
"wallet": "677347922",
"amount": 250,
"currency": "XAF"
}
'import requests
url = "https://sandbox.soleaspay.com/api/action/account/withdraw"
payload = {
"wallet": "677347922",
"amount": 250,
"currency": "XAF"
}
headers = {
"operation": "<operation>",
"service": "<service>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
operation: '<operation>',
service: '<service>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({wallet: '677347922', amount: 250, currency: 'XAF'})
};
fetch('https://sandbox.soleaspay.com/api/action/account/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.soleaspay.com/api/action/account/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallet' => '677347922',
'amount' => 250,
'currency' => 'XAF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"operation: <operation>",
"service: <service>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.soleaspay.com/api/action/account/withdraw"
payload := strings.NewReader("{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("operation", "<operation>")
req.Header.Add("service", "<service>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.soleaspay.com/api/action/account/withdraw")
.header("operation", "<operation>")
.header("service", "<service>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.soleaspay.com/api/action/account/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["operation"] = '<operation>'
request["service"] = '<service>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 201,
"status": "PROCESSING",
"created_at": "2024-12-16 10:05:01",
"data": {
"reference": "MLS109P",
"external_reference": "withdraw reference",
"transaction_reference": "partner transaction reference",
"amount": 1000,
"currency": "XAF",
"operation": "WITHDRAW"
},
"message": "withdraw saved to queue"
}{
"success": false,
"message": "Invalid operation provide"
}{
"success": false,
"status": "FAILED",
"message": "INTERNAL_PROCESSING_ERROR"
}Withdraw cash from your SoleasPay account to your personal account. The request is queued for processing. Requires bearer token and headers: operation=4, service=SERVICE_ID.
curl --request POST \
--url https://sandbox.soleaspay.com/api/action/account/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'operation: <operation>' \
--header 'service: <service>' \
--data '
{
"wallet": "677347922",
"amount": 250,
"currency": "XAF"
}
'import requests
url = "https://sandbox.soleaspay.com/api/action/account/withdraw"
payload = {
"wallet": "677347922",
"amount": 250,
"currency": "XAF"
}
headers = {
"operation": "<operation>",
"service": "<service>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
operation: '<operation>',
service: '<service>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({wallet: '677347922', amount: 250, currency: 'XAF'})
};
fetch('https://sandbox.soleaspay.com/api/action/account/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.soleaspay.com/api/action/account/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallet' => '677347922',
'amount' => 250,
'currency' => 'XAF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"operation: <operation>",
"service: <service>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.soleaspay.com/api/action/account/withdraw"
payload := strings.NewReader("{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("operation", "<operation>")
req.Header.Add("service", "<service>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.soleaspay.com/api/action/account/withdraw")
.header("operation", "<operation>")
.header("service", "<service>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.soleaspay.com/api/action/account/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["operation"] = '<operation>'
request["service"] = '<service>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet\": \"677347922\",\n \"amount\": 250,\n \"currency\": \"XAF\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 201,
"status": "PROCESSING",
"created_at": "2024-12-16 10:05:01",
"data": {
"reference": "MLS109P",
"external_reference": "withdraw reference",
"transaction_reference": "partner transaction reference",
"amount": 1000,
"currency": "XAF",
"operation": "WITHDRAW"
},
"message": "withdraw saved to queue"
}{
"success": false,
"message": "Invalid operation provide"
}{
"success": false,
"status": "FAILED",
"message": "INTERNAL_PROCESSING_ERROR"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Operation type (must be 4 for withdrawal)
4
The service through which the customer will receive funds
1
