Vue d’ensemble
Cartes visa
Ajouter une carte Visa sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/carlaroy/bank/visa' -i -u 'carlaroy:carlaroy' -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json' \
-d '{"owner":"Dr Lisa Roy","expireDate":"12-2017","cardNumber":"9894-7622-2872-1619"}'
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: 3493
{"id":184,"username":"carlaroy","email":"lucas.schneider@gmail.com","firstName":"Maëlys","lastName":"Leclercq","birthDate":"3805-12-27T18:15:11.181+0000","createDate":"2024-08-12T20:37:02.744+0000","updateDate":"2024-08-12T20:37:03.008+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[{"cardNumber":"9894-7622-2872-1619","owner":"Dr Lisa Roy","expiryDate":"12-2017","id":16,"valid":false,"bankMethod":"VISA","createAt":"2024-08-12T20:37:03.005+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":null,"lastDateUsed":null}],"idCards":[],"kycElementClients":[{"id":185,"statusElement":{"id":93,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:37:02.903+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:37:02.904+0000","updateDate":null}],"accountLimits":[{"id":725,"createdAt":"2024-08-12T20:37:02.744+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"carlaroy","approved":false},{"id":726,"createdAt":"2024-08-12T20:37:02.744+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"carlaroy","approved":false},{"id":727,"createdAt":"2024-08-12T20:37:02.744+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"carlaroy","approved":false},{"id":728,"createdAt":"2024-08-12T20:37:02.744+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"carlaroy","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:37:03.018+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"carlaroy","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:37:03.018+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"carlaroy","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:37:03.018+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"carlaroy","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:37:03.018+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"carlaroy","approved":false}},"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/carlaroy"}}}
Activer une carte visa
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/aliceguerin' -i -u 'aliceguerin:aliceguerin' -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: 4624
{
"id" : 140,
"username" : "aliceguerin",
"email" : "noa.legall@gmail.com",
"firstName" : "Julien",
"lastName" : "Lambert",
"birthDate" : "3895-12-29T12:30:42.834+0000",
"createDate" : "2024-08-12T20:36:53.977+0000",
"updateDate" : "2024-08-12T20:36:54.499+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"cardNumber" : "9150-1207-7462-0571",
"owner" : "M Evan Mercier",
"expiryDate" : "12-2017",
"id" : 4,
"valid" : true,
"bankMethod" : "VISA",
"createAt" : "2024-08-12T20:36:54.268+0000",
"lastDateUsedForReceivingMoney" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsed" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 141,
"statusElement" : {
"id" : 71,
"statusValue" : "ACTIVE",
"createdDate" : "2024-08-12T20:36:54.157+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2024-08-12T20:36:54.158+0000",
"updateDate" : null
} ],
"accountLimits" : [ {
"id" : 549,
"createdAt" : "2024-08-12T20:36:53.977+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
}, {
"id" : 550,
"createdAt" : "2024-08-12T20:36:53.977+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
}, {
"id" : 551,
"createdAt" : "2024-08-12T20:36:53.977+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
}, {
"id" : 552,
"createdAt" : "2024-08-12T20:36:53.977+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
} ],
"walkapTax" : null,
"accountLimit" : {
"PAYPAL" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:54.615+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
},
"VISA" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:54.615+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
},
"MOMO" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:54.615+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
},
"ORANGE" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:54.615+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "aliceguerin",
"approved" : false
}
},
"accountType" : "INTERNAL"
}
Désactiver une carte Visa
Exemple de requête curl
Snippet curl-request not found for operation::disabled-visa-account
Réponse obtenue
Snippet http-response not found for operation::disabled-visa-account
Comptes Mobile Money
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/ethanfrancois' -i -u 'ethanfrancois:ethanfrancois' -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: 4308
{
"id" : 180,
"username" : "ethanfrancois",
"email" : "maeva.roche@yahoo.fr",
"firstName" : "Noah",
"lastName" : "Lacroix",
"birthDate" : "3809-07-12T06:01:11.991+0000",
"createDate" : "2024-08-12T20:37:01.931+0000",
"updateDate" : "2024-08-12T20:37:02.440+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 181,
"statusElement" : {
"id" : 91,
"statusValue" : "ACTIVE",
"createdDate" : "2024-08-12T20:37:02.094+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2024-08-12T20:37:02.095+0000",
"updateDate" : null
} ],
"accountLimits" : [ {
"id" : 709,
"createdAt" : "2024-08-12T20:37:01.931+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
}, {
"id" : 710,
"createdAt" : "2024-08-12T20:37:01.931+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
}, {
"id" : 711,
"createdAt" : "2024-08-12T20:37:01.931+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
}, {
"id" : 712,
"createdAt" : "2024-08-12T20:37:01.931+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
} ],
"walkapTax" : null,
"accountLimit" : {
"PAYPAL" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:02.553+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
},
"VISA" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:02.553+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
},
"MOMO" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:02.553+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
},
"ORANGE" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:02.553+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "ethanfrancois",
"approved" : false
}
},
"accountType" : "INTERNAL"
}
Ajouter un compte mobile money sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/victormarchand/bank/momo' -i -u 'victormarchand:victormarchand' -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json' \
-d '{"mobileMoneyId":"+237650426480","owner":"Nguyen Valentin"}'
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: 3528
{"id":188,"username":"victormarchand","email":"nathan.blanchard@hotmail.fr","firstName":"Rayan","lastName":"Leroy","birthDate":"3833-05-12T17:05:55.208+0000","createDate":"2024-08-12T20:37:03.508+0000","updateDate":"2024-08-12T20:37:03.770+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[{"mobileMoneyId":"+237650426480","owner":"Nguyen Valentin","id":17,"valid":false,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:03.768+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":null,"lastDateUsed":null}],"idCards":[],"kycElementClients":[{"id":189,"statusElement":{"id":95,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:37:03.669+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:37:03.670+0000","updateDate":null}],"accountLimits":[{"id":741,"createdAt":"2024-08-12T20:37:03.508+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"victormarchand","approved":false},{"id":742,"createdAt":"2024-08-12T20:37:03.508+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"victormarchand","approved":false},{"id":743,"createdAt":"2024-08-12T20:37:03.508+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"victormarchand","approved":false},{"id":744,"createdAt":"2024-08-12T20:37:03.508+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"victormarchand","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:37:03.778+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"victormarchand","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:37:03.778+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"victormarchand","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:37:03.778+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"victormarchand","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:37:03.778+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"victormarchand","approved":false}},"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/victormarchand"}}}
Activer un compte Mobile Money
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/victormarchand' -i -u 'victormarchand:victormarchand' -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: 4624
{
"id" : 188,
"username" : "victormarchand",
"email" : "nathan.blanchard@hotmail.fr",
"firstName" : "Rayan",
"lastName" : "Leroy",
"birthDate" : "3833-05-12T17:05:55.208+0000",
"createDate" : "2024-08-12T20:37:03.508+0000",
"updateDate" : "2024-08-12T20:37:03.975+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ {
"mobileMoneyId" : "+237650426480",
"owner" : "Nguyen Valentin",
"id" : 17,
"valid" : true,
"bankMethod" : "MOMO",
"createAt" : "2024-08-12T20:37:03.768+0000",
"lastDateUsedForReceivingMoney" : null,
"lastDateUsedForSendingMoney" : null,
"lastDateUsed" : null
} ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 189,
"statusElement" : {
"id" : 95,
"statusValue" : "ACTIVE",
"createdDate" : "2024-08-12T20:37:03.669+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2024-08-12T20:37:03.670+0000",
"updateDate" : null
} ],
"accountLimits" : [ {
"id" : 741,
"createdAt" : "2024-08-12T20:37:03.508+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
}, {
"id" : 742,
"createdAt" : "2024-08-12T20:37:03.508+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
}, {
"id" : 743,
"createdAt" : "2024-08-12T20:37:03.508+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
}, {
"id" : 744,
"createdAt" : "2024-08-12T20:37:03.508+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
} ],
"walkapTax" : null,
"accountLimit" : {
"PAYPAL" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:04.088+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
},
"VISA" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:04.088+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
},
"MOMO" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:04.088+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
},
"ORANGE" : {
"id" : 0,
"createdAt" : "2024-08-12T20:37:04.088+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "victormarchand",
"approved" : false
}
},
"accountType" : "INTERNAL"
}
Désactiver un compte Mobile Money
Exemple de requête curl
Snippet curl-request not found for operation::disabled-momo-account
Réponse obtenue
Snippet http-response not found for operation::disabled-momo-account
Supprimer un compte mobile money sur un compte
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/victorfontaine' -i -u 'victorfontaine:victorfontaine' -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: 4324
{
"id" : 164,
"username" : "victorfontaine",
"email" : "theo.vasseur@gmail.com",
"firstName" : "Baptiste",
"lastName" : "Marchand",
"birthDate" : "3851-09-09T21:53:23.764+0000",
"createDate" : "2024-08-12T20:36:58.732+0000",
"updateDate" : "2024-08-12T20:36:59.294+0000",
"lastLoginDate" : null,
"preferredLang" : "fr",
"roles" : [ "ROLE_STAFF" ],
"address" : [ ],
"tokenRegister" : [ ],
"bankAccounts" : [ ],
"idCards" : [ ],
"kycElementClients" : [ {
"id" : 165,
"statusElement" : {
"id" : 83,
"statusValue" : "ACTIVE",
"createdDate" : "2024-08-12T20:36:58.896+0000",
"updatedDate" : null,
"kycElementClients" : [ ]
},
"statusChanger" : null,
"reason" : null,
"createdDate" : "2024-08-12T20:36:58.897+0000",
"updateDate" : null
} ],
"accountLimits" : [ {
"id" : 645,
"createdAt" : "2024-08-12T20:36:58.732+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
}, {
"id" : 646,
"createdAt" : "2024-08-12T20:36:58.732+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
}, {
"id" : 647,
"createdAt" : "2024-08-12T20:36:58.732+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
}, {
"id" : 648,
"createdAt" : "2024-08-12T20:36:58.732+0000",
"approvedDate" : null,
"dailyVolume" : 10000.0,
"monthlyVolume" : 10000.0,
"weeklyVolume" : 10000.0,
"dailyNumberOfTrans" : 10000.0,
"monthlyNumberOfTrans" : 1000.0,
"weeklyNumberOfTrans" : 10000.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
} ],
"walkapTax" : null,
"accountLimit" : {
"PAYPAL" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:59.411+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "PAYPAL",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
},
"VISA" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:59.411+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "VISA",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
},
"MOMO" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:59.411+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "MOMO",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
},
"ORANGE" : {
"id" : 0,
"createdAt" : "2024-08-12T20:36:59.411+0000",
"approvedDate" : null,
"dailyVolume" : 0.0,
"monthlyVolume" : 0.0,
"weeklyVolume" : 0.0,
"dailyNumberOfTrans" : 0.0,
"monthlyNumberOfTrans" : 0.0,
"weeklyNumberOfTrans" : 0.0,
"bankMethod" : "ORANGE",
"approvedByAdmin" : null,
"merchant" : "victorfontaine",
"approved" : false
}
},
"accountType" : "INTERNAL"
}
Pièces d’identité
Ajouter un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/anaisprevost/passport' -i -u 'maellecharpentier:maellecharpentier' -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json' \
-d '{"idNumber":"087-36-4850","firstName":"Axel","lastName":"Lacroix","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3920-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":null,"cardStatus":"DECLINED","createAt":"2024-08-12T20:36:39.837+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: 3595
{"id":58,"username":"anaisprevost","email":"juliette.giraud@hotmail.fr","firstName":"Alexandre","lastName":"Ménard","birthDate":"3885-07-25T08:32:37.284+0000","createDate":"2024-08-12T20:36:39.580+0000","updateDate":"2024-08-12T20:36:39.956+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[],"idCards":[{"idNumber":"087-36-4850","firstName":"Axel","lastName":"Lacroix","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3917-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":null,"cardStatus":"DECLINED","createAt":"2024-08-12T20:36:39.949+0000","updateAt":null,"disabledByUser":null}],"kycElementClients":[{"id":59,"statusElement":{"id":29,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:36:39.776+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:36:39.778+0000","updateDate":null}],"accountLimits":[{"id":229,"createdAt":"2024-08-12T20:36:39.580+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},{"id":230,"createdAt":"2024-08-12T20:36:39.580+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},{"id":231,"createdAt":"2024-08-12T20:36:39.580+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},{"id":232,"createdAt":"2024-08-12T20:36:39.580+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"anaisprevost","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:36:39.974+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:36:39.974+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:36:39.974+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"anaisprevost","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:36:39.974+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"anaisprevost","approved":false}},"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/anaisprevost"}}}
Consulter un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/celiamoulin/passport/065-53-0764' -i -u 'julienjean:julienjean' -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: 400
{"idNumber":"065-53-0764","firstName":"Pauline","lastName":"Bernard","validityStartDate":"3917-02-01T00:00:00.000+0000","validityEndDate":"3917-02-01T00:00:00.000+0000","uploaded":false,"fileList":[],"typeOfCard":"Passport","cardStatus":"DECLINED","createAt":"2024-08-12T20:36:38.075+0000","updateAt":null,"disabledByUser":null,"_links":{"self":{"href":"http://localhost:8080/accounts/celiamoulin"}}}
Supprimer un passport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/linarenault/passport/848-65-6621' -i -u 'valentinlecomte:valentinlecomte' -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: 3258
{"id":66,"username":"linarenault","email":"nathan.moreau@gmail.com","firstName":"Paul","lastName":"Laurent","birthDate":"3866-04-08T13:52:55.342+0000","createDate":"2024-08-12T20:36:40.900+0000","updateDate":"2024-08-12T20:36:41.323+0000","lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF"],"address":[],"tokenRegister":[],"bankAccounts":[],"idCards":[],"kycElementClients":[{"id":67,"statusElement":{"id":33,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:36:41.073+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:36:41.075+0000","updateDate":null}],"accountLimits":[{"id":261,"createdAt":"2024-08-12T20:36:40.900+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"linarenault","approved":false},{"id":262,"createdAt":"2024-08-12T20:36:40.900+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"linarenault","approved":false},{"id":263,"createdAt":"2024-08-12T20:36:40.900+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"linarenault","approved":false},{"id":264,"createdAt":"2024-08-12T20:36:40.900+0000","approvedDate":null,"dailyVolume":10000.0,"monthlyVolume":10000.0,"weeklyVolume":10000.0,"dailyNumberOfTrans":10000.0,"monthlyNumberOfTrans":1000.0,"weeklyNumberOfTrans":10000.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"linarenault","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:36:41.335+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"PAYPAL","approvedByAdmin":null,"merchant":"linarenault","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:36:41.335+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"VISA","approvedByAdmin":null,"merchant":"linarenault","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:36:41.335+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"MOMO","approvedByAdmin":null,"merchant":"linarenault","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:36:41.335+0000","approvedDate":null,"dailyVolume":0.0,"monthlyVolume":0.0,"weeklyVolume":0.0,"dailyNumberOfTrans":0.0,"monthlyNumberOfTrans":0.0,"weeklyNumberOfTrans":0.0,"bankMethod":"ORANGE","approvedByAdmin":null,"merchant":"linarenault","approved":false}},"accountType":"INTERNAL","_links":{"self":{"href":"http://localhost:8080/accounts/linarenault"}}}
Ajouter une pièce jointe a un passeport
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/victorgaillard/attachments/id/190-46-8558/35c3dd6e-861a-4588-a853-363ac6ff404e.txt' -i -u 'mathildemercier:mathildemercier' -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=35c3dd6e-861a-4588-a853-363ac6ff404e.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