Mettre à jour un sous-portefeuille
curl --request PATCH \
--url https://api.pay.izichange.com/v1/accounts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Jean Dupont",
"externalRef": "user_42",
"email": "jean.dupont@example.com",
"phoneNumber": "+22990000000",
"status": "active"
}
'import requests
url = "https://api.pay.izichange.com/v1/accounts/{id}"
payload = {
"label": "Jean Dupont",
"externalRef": "user_42",
"email": "jean.dupont@example.com",
"phoneNumber": "+22990000000",
"status": "active"
}
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: 'Jean Dupont',
externalRef: 'user_42',
email: 'jean.dupont@example.com',
phoneNumber: '+22990000000',
status: 'active'
})
};
fetch('https://api.pay.izichange.com/v1/accounts/{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.pay.izichange.com/v1/accounts/{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' => 'Jean Dupont',
'externalRef' => 'user_42',
'email' => 'jean.dupont@example.com',
'phoneNumber' => '+22990000000',
'status' => 'active'
]),
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/accounts/{id}"
payload := strings.NewReader("{\n \"label\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\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.pay.izichange.com/v1/accounts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pay.izichange.com/v1/accounts/{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\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_bodyAccounts
Mettre à jour un sous-portefeuille
PATCH
/
v1
/
accounts
/
{id}
Mettre à jour un sous-portefeuille
curl --request PATCH \
--url https://api.pay.izichange.com/v1/accounts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Jean Dupont",
"externalRef": "user_42",
"email": "jean.dupont@example.com",
"phoneNumber": "+22990000000",
"status": "active"
}
'import requests
url = "https://api.pay.izichange.com/v1/accounts/{id}"
payload = {
"label": "Jean Dupont",
"externalRef": "user_42",
"email": "jean.dupont@example.com",
"phoneNumber": "+22990000000",
"status": "active"
}
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: 'Jean Dupont',
externalRef: 'user_42',
email: 'jean.dupont@example.com',
phoneNumber: '+22990000000',
status: 'active'
})
};
fetch('https://api.pay.izichange.com/v1/accounts/{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.pay.izichange.com/v1/accounts/{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' => 'Jean Dupont',
'externalRef' => 'user_42',
'email' => 'jean.dupont@example.com',
'phoneNumber' => '+22990000000',
'status' => 'active'
]),
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/accounts/{id}"
payload := strings.NewReader("{\n \"label\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\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.pay.izichange.com/v1/accounts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pay.izichange.com/v1/accounts/{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\": \"Jean Dupont\",\n \"externalRef\": \"user_42\",\n \"email\": \"jean.dupont@example.com\",\n \"phoneNumber\": \"+22990000000\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_bodyAutorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
Corps
application/json
Nouveau libellé du sous-portefeuille (nom affiché de l'utilisateur final).
Maximum string length:
120Exemple:
"Jean Dupont"
Nouvelle référence externe côté marchand. Unique par marchand si fournie.
Maximum string length:
120Exemple:
"user_42"
Email de l'utilisateur final. Facultatif et purement informatif : aucun message ne lui est envoyé.
Maximum string length:
200Exemple:
"jean.dupont@example.com"
Téléphone de l'utilisateur final, au format international. Facultatif et purement informatif.
Maximum string length:
40Exemple:
"+22990000000"
Statut du sous-portefeuille. frozen bloque les mouvements sortants (retraits, transferts) tout en laissant les dépôts arriver ; closed archive le compte.
Options disponibles:
active, frozen, closed Exemple:
"active"
Réponse
200 - undefined