Modifier une méthode de retrait
curl --request PATCH \
--url https://api.saspay.me/api/v1/merchant-payout-methods/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "MTN Bénin — compte principal"
}
'import requests
url = "https://api.saspay.me/api/v1/merchant-payout-methods/{id}/"
payload = { "label": "MTN Bénin — compte principal" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'MTN Bénin — compte principal'})
};
fetch('https://api.saspay.me/api/v1/merchant-payout-methods/{id}/', 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://api.saspay.me/api/v1/merchant-payout-methods/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'MTN Bénin — compte principal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.saspay.me/api/v1/merchant-payout-methods/{id}/"
payload := strings.NewReader("{\n \"label\": \"MTN Bénin — compte principal\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.saspay.me/api/v1/merchant-payout-methods/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"MTN Bénin — compte principal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saspay.me/api/v1/merchant-payout-methods/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"MTN Bénin — compte principal\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b3e1c2d4-1111-2222-3333-444455556666",
"merchant": "8a1f5c3e-0000-1111-2222-333344445555",
"type": "MOBILE_MONEY",
"label": "MTN Bénin principal",
"is_active": true,
"is_verified": false,
"verified_by_admin": null,
"verified_at": null,
"network": "4c119a2e-aaaa-bbbb-cccc-ddddeeeeffff",
"phone_number": "+22997001122",
"bank_name": null,
"account_holder_name": null,
"account_number": null,
"iban": null,
"swift_bic": null,
"bank_code": null,
"branch_code": null,
"created_at": "2026-08-12T10:00:00Z",
"updated_at": "2026-08-12T10:00:00Z"
}Wallet
Modifier une méthode de retrait
Mise à jour partielle des champs d’une méthode de retrait
PATCH
/
merchant-payout-methods
/
{id}
/
Modifier une méthode de retrait
curl --request PATCH \
--url https://api.saspay.me/api/v1/merchant-payout-methods/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "MTN Bénin — compte principal"
}
'import requests
url = "https://api.saspay.me/api/v1/merchant-payout-methods/{id}/"
payload = { "label": "MTN Bénin — compte principal" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'MTN Bénin — compte principal'})
};
fetch('https://api.saspay.me/api/v1/merchant-payout-methods/{id}/', 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://api.saspay.me/api/v1/merchant-payout-methods/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'MTN Bénin — compte principal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.saspay.me/api/v1/merchant-payout-methods/{id}/"
payload := strings.NewReader("{\n \"label\": \"MTN Bénin — compte principal\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.saspay.me/api/v1/merchant-payout-methods/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"MTN Bénin — compte principal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saspay.me/api/v1/merchant-payout-methods/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"MTN Bénin — compte principal\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b3e1c2d4-1111-2222-3333-444455556666",
"merchant": "8a1f5c3e-0000-1111-2222-333344445555",
"type": "MOBILE_MONEY",
"label": "MTN Bénin principal",
"is_active": true,
"is_verified": false,
"verified_by_admin": null,
"verified_at": null,
"network": "4c119a2e-aaaa-bbbb-cccc-ddddeeeeffff",
"phone_number": "+22997001122",
"bank_name": null,
"account_holder_name": null,
"account_number": null,
"iban": null,
"swift_bic": null,
"bank_code": null,
"branch_code": null,
"created_at": "2026-08-12T10:00:00Z",
"updated_at": "2026-08-12T10:00:00Z"
}merchant n’est pas modifiable. PUT est également disponible pour un remplacement complet, avec les mêmes champs que PATCH. Aucune garde particulière n’empêche de modifier une méthode déjà utilisée dans un retrait PENDING.Authorizations
Clé API secrète du marchand — header Authorization: Bearer sk_live_xxx (ou sk_test_xxx en environnement de test).
Path Parameters
Body
application/json
Available options:
MOBILE_MONEY, BANK_TRANSFER Maximum string length:
100Pertinent si type=MOBILE_MONEY
Pertinent si type=BANK_TRANSFER
Response
200 - application/json
Méthode modifiée
⌘I