Vue d’ensemble
Cartes visa
Ajouter une carte Visa sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/julieroche' -i -u 'julieroche:julieroche' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1586
{
"id" : 308,
"username" : "julieroche",
"email" : "alexandre.legrand@gmail.com",
"firstName" : "Zoe",
"lastName" : "Pierre",
"birthDate" : "3831-11-14T10:34:48.157+0000",
"createDate" : "2023-03-21T23:01:44.908+0000",
"updateDate" : "2023-03-21T23:01:45.482+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"cardNumber" : "8076-5275-8971-4523",
"owner" : "Mlle Noa Sanchez",
"expiryDate" : "12-2017",
"id" : 136,
"valid" : false,
"bankMethod" : "VISA",
"bankDetails" : [ {
"id" : 128,
"createdAt" : "2023-03-21T23:01:45.956+0000",
"dailyVolume" : 6128.0,
"monthlyVolume" : 6343.0,
"weeklyVolume" : 7592.0,
"dailyNumberOfTrans" : 96.0,
"monthlyNumberOfTrans" : 418.0,
"weeklyNumberOfTrans" : 2019.0,
"approved" : false,
"approvedByAdmin" : null,
"merchant" : "julieroche"
} ],
"createAt" : "2023-03-21T23:01:45.472+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 302,
"statusElement" : {
"id" : 152,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:45.318+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:45.318+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Activer une carte visa
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/ethanaubry' -i -u 'ethanaubry:ethanaubry' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1213
{
"id" : 296,
"username" : "ethanaubry",
"email" : "mohamed.vincent@hotmail.fr",
"firstName" : "Clément",
"lastName" : "Leroy",
"birthDate" : "3858-05-19T20:52:52.239+0000",
"createDate" : "2023-03-21T23:01:40.960+0000",
"updateDate" : "2023-03-21T23:01:41.634+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"cardNumber" : "8185-0823-2876-2957",
"owner" : "Sarah Olivier",
"expiryDate" : "12-2017",
"id" : 132,
"valid" : true,
"bankMethod" : "VISA",
"bankDetails" : [ ],
"createAt" : "2023-03-21T23:01:41.381+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 290,
"statusElement" : {
"id" : 146,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:41.169+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:41.170+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Désactiver une carte Visa
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/raphaelrobert' -i -u 'raphaelrobert:raphaelrobert' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1217
{
"id" : 292,
"username" : "raphaelrobert",
"email" : "oceane.nguyen@hotmail.fr",
"firstName" : "Laura",
"lastName" : "Francois",
"birthDate" : "3815-08-31T07:59:09.566+0000",
"createDate" : "2023-03-21T23:01:39.875+0000",
"updateDate" : "2023-03-21T23:01:40.405+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"cardNumber" : "1802-4413-8724-3587",
"owner" : "Legrand Camille",
"expiryDate" : "12-2017",
"id" : 131,
"valid" : false,
"bankMethod" : "VISA",
"bankDetails" : [ ],
"createAt" : "2023-03-21T23:01:40.264+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 286,
"statusElement" : {
"id" : 144,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:40.102+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:40.103+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Comptes Mobile Money
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/sarahbarre' -i -u 'sarahbarre:sarahbarre' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 848
{
"id" : 324,
"username" : "sarahbarre",
"email" : "yanis.jacquet@yahoo.fr",
"firstName" : "Paul",
"lastName" : "Dubois",
"birthDate" : "3872-01-14T01:47:56.964+0000",
"createDate" : "2023-03-21T23:01:50.714+0000",
"updateDate" : "2023-03-21T23:01:51.488+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 318,
"statusElement" : {
"id" : 160,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:51.129+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:51.130+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Ajouter un compte mobile money sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/carlabarre' -i -u 'carlabarre:carlabarre' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1549
{
"id" : 288,
"username" : "carlabarre",
"email" : "louna.rodriguez@yahoo.fr",
"firstName" : "Ambre",
"lastName" : "Dufour",
"birthDate" : "3812-06-07T02:20:09.897+0000",
"createDate" : "2023-03-21T23:01:38.576+0000",
"updateDate" : "2023-03-21T23:01:38.998+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"mobileMoneyId" : "+400269171",
"owner" : "M. Adrien Jacquet",
"id" : 130,
"valid" : false,
"bankMethod" : "MOMO",
"bankDetails" : [ {
"id" : 126,
"createdAt" : "2023-03-21T23:01:39.428+0000",
"dailyVolume" : 5311.0,
"monthlyVolume" : 7340.0,
"weeklyVolume" : 7855.0,
"dailyNumberOfTrans" : 96.0,
"monthlyNumberOfTrans" : 50.0,
"weeklyNumberOfTrans" : 3005.0,
"approved" : false,
"approvedByAdmin" : null,
"merchant" : "carlabarre"
} ],
"createAt" : "2023-03-21T23:01:38.990+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 282,
"statusElement" : {
"id" : 142,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:38.775+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:38.775+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Activer un compte Mobile Money
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/kylianmathieu' -i -u 'kylianmathieu:kylianmathieu' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1177
{
"id" : 336,
"username" : "kylianmathieu",
"email" : "yanis.denis@hotmail.fr",
"firstName" : "Charlotte",
"lastName" : "Laine",
"birthDate" : "3890-09-17T01:36:47.240+0000",
"createDate" : "2023-03-21T23:01:54.259+0000",
"updateDate" : "2023-03-21T23:01:54.767+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"mobileMoneyId" : "+417934106",
"owner" : "Mlle Lena Roy",
"id" : 143,
"valid" : true,
"bankMethod" : "MOMO",
"bankDetails" : [ ],
"createAt" : "2023-03-21T23:01:54.610+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 330,
"statusElement" : {
"id" : 166,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:54.462+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:54.463+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Désactiver un compte Mobile Money
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/jadecarpentier' -i -u 'jadecarpentier:jadecarpentier' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1175
{
"id" : 332,
"username" : "jadecarpentier",
"email" : "ines.duval@gmail.com",
"firstName" : "Jeanne",
"lastName" : "Baron",
"birthDate" : "3876-10-17T04:28:12.643+0000",
"createDate" : "2023-03-21T23:01:53.087+0000",
"updateDate" : "2023-03-21T23:01:53.756+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"mobileMoneyId" : "+491421952",
"owner" : "Dr Paul Arnaud",
"id" : 142,
"valid" : false,
"bankMethod" : "MOMO",
"bankDetails" : [ ],
"createAt" : "2023-03-21T23:01:53.518+0000",
"lastDateUsed" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsedForReceivingMoney" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 326,
"statusElement" : {
"id" : 164,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:53.293+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:53.297+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Supprimer un compte mobile money sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/ambregauthier' -i -u 'ambregauthier:ambregauthier' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 850
{
"id" : 312,
"username" : "ambregauthier",
"email" : "adam.garcia@yahoo.fr",
"firstName" : "Jade",
"lastName" : "Leclerc",
"birthDate" : "3864-06-05T23:24:56.622+0000",
"createDate" : "2023-03-21T23:01:46.753+0000",
"updateDate" : "2023-03-21T23:01:47.384+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 306,
"statusElement" : {
"id" : 154,
"statusValue" : "ACTIVE",
"createdDate" : "2023-03-21T23:01:47.110+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2023-03-21T23:01:47.110+0000",
"updateDate" : null
} ],
"accountType" : "INTERNAL"
}
Pièces d’identité
Ajouter un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/enzocolin/passport' -i -u 'melissagarnier:melissagarnier' -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json' \
-d '{"idNumber":"125-79-0131","firstName":"Charlotte","lastName":"Hubert","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3920-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":null,"cardStatus":"DECLINED","createAt":"2023-03-21T23:01:09.493+0000","updateAt":null,"disabledByUser":null}'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1049
{"id":162,"username":"enzocolin","email":"sarah.huet@hotmail.fr","firstName":"Elisa","lastName":"Pierre","birthDate":"3875-08-02T21:16:46.302+0000","createDate":"2023-03-21T23:01:09.243+0000","updateDate":"2023-03-21T23:01:09.618+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[],"idCards":[{"idNumber":"125-79-0131","firstName":"Charlotte","lastName":"Hubert","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3917-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":null,"cardStatus":"DECLINED","createAt":"2023-03-21T23:01:09.615+0000","updateAt":null,"disabledByUser":null}],"kycElementClients":[{"id":155,"statusElement":{"id":77,"statusValue":"ACTIVE","createdDate":"2023-03-21T23:01:09.454+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2023-03-21T23:01:09.455+0000","updateDate":null}],"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/enzocolin"}}}
Consulter un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/adrienroyer/passport/628-82-4007' -i -u 'maximevidal:maximevidal' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 398
{"idNumber":"628-82-4007","firstName":"Axel","lastName":"Maillard","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3917-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":"Passport","cardStatus":"DECLINED","createAt":"2023-03-21T23:01:07.103+0000","updateAt":null,"disabledByUser":null,"_links":{"self":{"href":"http://localhost:8080/accounts/adrienroyer"}}}
Supprimer un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/antoinegaillard/passport/076-91-1770' -i -u 'mohameddavid:mohameddavid' -X DELETE \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 747
{"id":170,"username":"antoinegaillard","email":"julien.gonzalez@hotmail.fr","firstName":"Mohamed","lastName":"Gauthier","birthDate":"3838-02-10T09:03:19.325+0000","createDate":"2023-03-21T23:01:10.985+0000","updateDate":"2023-03-21T23:01:11.694+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[],"idCards":[],"kycElementClients":[{"id":163,"statusElement":{"id":81,"statusValue":"ACTIVE","createdDate":"2023-03-21T23:01:11.194+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2023-03-21T23:01:11.195+0000","updateDate":null}],"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/antoinegaillard"}}}
Ajouter une pièce jointe a un passeport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/paulinemarchal/attachments/id/613-25-0125/4c5366b3-fe23-472b-8eff-33d2039f53bd.txt' -i -u 'inesgirard:inesgirard' -X GET \
-H 'Accept: application/json'
Réponse obtenue
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: image/jpeg
Content-Disposition: filename=4c5366b3-fe23-472b-8eff-33d2039f53bd.txt
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 8
some xml