curl --request POST \
--url https://api.pay.izichange.com/v1/settlement-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settlementPaymentMethodId": "3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34",
"receptionAddress": "22961234567",
"label": "MoMo principal",
"isDefault": true
}
'import requests
url = "https://api.pay.izichange.com/v1/settlement-accounts"
payload = {
"settlementPaymentMethodId": "3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34",
"receptionAddress": "22961234567",
"label": "MoMo principal",
"isDefault": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
settlementPaymentMethodId: '3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34',
receptionAddress: '22961234567',
label: 'MoMo principal',
isDefault: true
})
};
fetch('https://api.pay.izichange.com/v1/settlement-accounts', 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.pay.izichange.com/v1/settlement-accounts",
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([
'settlementPaymentMethodId' => '3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34',
'receptionAddress' => '22961234567',
'label' => 'MoMo principal',
'isDefault' => true
]),
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.pay.izichange.com/v1/settlement-accounts"
payload := strings.NewReader("{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.pay.izichange.com/v1/settlement-accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pay.izichange.com/v1/settlement-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"receptionAddress": "<string>",
"label": {},
"isDefault": true,
"settlementPaymentMethodId": "<string>",
"createdAt": "<string>",
"maturedAt": "<string>",
"isMatured": true,
"revokedAt": {},
"settlementPaymentMethod": {
"id": "<string>",
"displayName": "<string>",
"accountType": "<string>",
"country": "<string>",
"network": "<string>",
"currency": {}
},
"paymentMethod": {}
}Créer un compte de retrait
Crée un nouveau compte de retrait fiat (mobile money, virement bancaire, …) pour le marchand. L’adresse de réception est validée contre le format attendu par le moyen de paiement. Si isDefault est positionné, le précédent compte par défaut est automatiquement déclassé.
curl --request POST \
--url https://api.pay.izichange.com/v1/settlement-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settlementPaymentMethodId": "3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34",
"receptionAddress": "22961234567",
"label": "MoMo principal",
"isDefault": true
}
'import requests
url = "https://api.pay.izichange.com/v1/settlement-accounts"
payload = {
"settlementPaymentMethodId": "3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34",
"receptionAddress": "22961234567",
"label": "MoMo principal",
"isDefault": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
settlementPaymentMethodId: '3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34',
receptionAddress: '22961234567',
label: 'MoMo principal',
isDefault: true
})
};
fetch('https://api.pay.izichange.com/v1/settlement-accounts', 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.pay.izichange.com/v1/settlement-accounts",
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([
'settlementPaymentMethodId' => '3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34',
'receptionAddress' => '22961234567',
'label' => 'MoMo principal',
'isDefault' => true
]),
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.pay.izichange.com/v1/settlement-accounts"
payload := strings.NewReader("{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.pay.izichange.com/v1/settlement-accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pay.izichange.com/v1/settlement-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"settlementPaymentMethodId\": \"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34\",\n \"receptionAddress\": \"22961234567\",\n \"label\": \"MoMo principal\",\n \"isDefault\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"receptionAddress": "<string>",
"label": {},
"isDefault": true,
"settlementPaymentMethodId": "<string>",
"createdAt": "<string>",
"maturedAt": "<string>",
"isMatured": true,
"revokedAt": {},
"settlementPaymentMethod": {
"id": "<string>",
"displayName": "<string>",
"accountType": "<string>",
"country": "<string>",
"network": "<string>",
"currency": {}
},
"paymentMethod": {}
}Autorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corps
Identifiant du moyen de paiement (rail de cash-out) sur lequel ouvrir le compte de retrait. À récupérer via GET /v1/settlement-accounts/payment-methods (mobile money, virement bancaire… selon le pays/devise).
"3f9a1c2e-6b4d-4a1e-9c8f-2b7d5e0a1f34"
Adresse de réception des fonds : numéro mobile money, IBAN ou numéro de compte selon le moyen de paiement. Validée contre le format attendu par ce moyen de paiement ; les espaces sont automatiquement retirés (« 01 96 12 34 56 » est accepté).
255"22961234567"
Libellé libre pour identifier ce compte de retrait dans votre tableau de bord.
120"MoMo principal"
Définit ce compte comme destination de retrait par défaut. Le précédent compte par défaut est alors automatiquement déclassé.
true
Réponse
Compte de retrait créé.
Identifiant unique du compte de retrait.
Adresse de réception (numéro mobile, IBAN, …).
Libellé personnel du compte choisi par le marchand.
Compte par défaut pour les settlements.
Identifiant du moyen de paiement associé.
Date de création — ISO 8601.
Date à partir de laquelle ce compte devient éligible au reversement AUTOMATIQUE — ISO 8601. N'affecte jamais un settlement manuel.
Vrai si maturedAt est déjà passé.
Date de révocation — ISO 8601, ou null si le compte est actif.
Détails du moyen de paiement associé.
Show child attributes
Show child attributes
Alias historique de settlementPaymentMethod (mêmes champs sans id).