Créer une demande
curl --request POST \
--url https://egimgarsud.gimpayapp.com/api/v1/requests \
--header 'Content-Type: application/json' \
--data '
{
"refContributeurInitiateur": "<string>",
"refUtilisateur": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>",
"refRaisonResiliation": "<string>",
"commentaire": "<string>"
}
'import requests
url = "https://egimgarsud.gimpayapp.com/api/v1/requests"
payload = {
"refContributeurInitiateur": "<string>",
"refUtilisateur": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>",
"refRaisonResiliation": "<string>",
"commentaire": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
refContributeurInitiateur: '<string>',
refUtilisateur: '<string>',
montantRecharge: 123,
refRechargeCompte: '<string>',
urlFichierRecharge: '<string>',
refRaisonResiliation: '<string>',
commentaire: '<string>'
})
};
fetch('https://egimgarsud.gimpayapp.com/api/v1/requests', 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://egimgarsud.gimpayapp.com/api/v1/requests",
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([
'refContributeurInitiateur' => '<string>',
'refUtilisateur' => '<string>',
'montantRecharge' => 123,
'refRechargeCompte' => '<string>',
'urlFichierRecharge' => '<string>',
'refRaisonResiliation' => '<string>',
'commentaire' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://egimgarsud.gimpayapp.com/api/v1/requests"
payload := strings.NewReader("{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://egimgarsud.gimpayapp.com/api/v1/requests")
.header("Content-Type", "application/json")
.body("{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://egimgarsud.gimpayapp.com/api/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"status": 123,
"body": {
"id": 123,
"reference": "<string>",
"dateHeureCreation": "2023-11-07T05:31:56Z",
"commentaire": "<string>",
"raisonResiliation": "<string>",
"refContributeurMarchantInitiateur": "<string>",
"refUtilisateur": "<string>",
"motifRejetDemande": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}API Reference
Créer une demande
Permet de créer une demande d’ouverture de compte, de résiliation ou de rechargement de compte de fidélité.
POST
/
api
/
v1
/
requests
Créer une demande
curl --request POST \
--url https://egimgarsud.gimpayapp.com/api/v1/requests \
--header 'Content-Type: application/json' \
--data '
{
"refContributeurInitiateur": "<string>",
"refUtilisateur": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>",
"refRaisonResiliation": "<string>",
"commentaire": "<string>"
}
'import requests
url = "https://egimgarsud.gimpayapp.com/api/v1/requests"
payload = {
"refContributeurInitiateur": "<string>",
"refUtilisateur": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>",
"refRaisonResiliation": "<string>",
"commentaire": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
refContributeurInitiateur: '<string>',
refUtilisateur: '<string>',
montantRecharge: 123,
refRechargeCompte: '<string>',
urlFichierRecharge: '<string>',
refRaisonResiliation: '<string>',
commentaire: '<string>'
})
};
fetch('https://egimgarsud.gimpayapp.com/api/v1/requests', 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://egimgarsud.gimpayapp.com/api/v1/requests",
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([
'refContributeurInitiateur' => '<string>',
'refUtilisateur' => '<string>',
'montantRecharge' => 123,
'refRechargeCompte' => '<string>',
'urlFichierRecharge' => '<string>',
'refRaisonResiliation' => '<string>',
'commentaire' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://egimgarsud.gimpayapp.com/api/v1/requests"
payload := strings.NewReader("{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://egimgarsud.gimpayapp.com/api/v1/requests")
.header("Content-Type", "application/json")
.body("{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://egimgarsud.gimpayapp.com/api/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"refContributeurInitiateur\": \"<string>\",\n \"refUtilisateur\": \"<string>\",\n \"montantRecharge\": 123,\n \"refRechargeCompte\": \"<string>\",\n \"urlFichierRecharge\": \"<string>\",\n \"refRaisonResiliation\": \"<string>\",\n \"commentaire\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"status": 123,
"body": {
"id": 123,
"reference": "<string>",
"dateHeureCreation": "2023-11-07T05:31:56Z",
"commentaire": "<string>",
"raisonResiliation": "<string>",
"refContributeurMarchantInitiateur": "<string>",
"refUtilisateur": "<string>",
"motifRejetDemande": "<string>",
"montantRecharge": 123,
"refRechargeCompte": "<string>",
"urlFichierRecharge": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}Body
application/json
Type de la demande à créer.
Available options:
OUVERTURE_DE_COMPTE, RESILIATION, RECHARGEMENT_DE_COMPTE Référence du contributeur à l'origine de la demande.
Référence GIMpay de l'utilisateur concerné par la demande.
Montant du rechargement, pour une demande de type RECHARGEMENT_DE_COMPTE.
Référence du rechargement de compte associé.
URL du justificatif de rechargement.
Référence de la raison de résiliation, pour une demande de type RESILIATION.
Commentaire libre associé à la demande.
⌘I