Transactions
Créer une transaction
Vers un compte existant sur Walkap
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-account/?byId=False' -i -u 'valentinvincent:valentinvincent' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{"sendMethod":"VISA","amount":"2000.0","receiveMethod":"MOMO","receiver":"aliciaadam","sender":"luciepierre","sendCardNumber":"6931-0766-5288-3979","receiveMobileMoneyId":"+237650194517"}'
Description des chanmps de la requête
| Path | Type | Description |
|---|---|---|
|
|
Montant envoyé |
|
|
Nom d’utilisateur de l’expéditeur |
|
|
Méthode de paiement de l’expéditeur |
|
|
Numéro de carte de l’expéditeur |
|
|
Nom d’utilisateur du destinataire |
|
|
Méthode de paiement du destinataire |
|
|
Numéro de compte Mobile money du destinataire |
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: 1218
{"sender":411,"senderAccountType":"INTERNAL","sendBankAccount":{"cardNumber":"6931-0766-5288-3979","owner":"Alexandre Brun","expiryDate":"05-3923","id":89,"valid":true,"bankMethod":"VISA","createAt":"2024-08-12T20:37:38.506+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":"2024-08-12T20:37:38.638+0000","lastDateUsed":"2024-08-12T20:37:38.638+0000"},"receiver":412,"receiverAccountType":"INTERNAL","receiveBankAccount":{"mobileMoneyId":"+237650194517","owner":"Sanchez Anaïs","id":92,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:38.507+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:38.638+0000","lastDateUsedForSendingMoney":null,"lastDateUsed":"2024-08-12T20:37:38.638+0000"},"amount":2000.0,"createDate":"2024-08-12T20:37:38.638+0000","externalId":null,"transactionStatus":{"id":17,"status":"INITIALIZED","message":"Initialized transaction between Bankable{id='89', codeId='6931-0766-5288-3979', owner='Alexandre Brun', valid=true, bankMethod=VISA} and Bankable{id='92', codeId='+237650194517', owner='Sanchez Anaïs', valid=true, bankMethod=MOMO}"},"reason":null,"id":16,"_links":{"self":{"href":"http://localhost:8080/transactions/send-to-account?byId=false"}}}
Vers un compte Visa non enregistré dans Walkap
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-guest/?byId=True' -i -u 'laurahubert:laurahubert' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{
"sendMethod" : "VISA",
"amount" : 100.0,
"receiveMethod" : "VISA",
"receiver" : {
"CardNumber" : "5839-4874-0889-6188",
"owner" : "Robert Anaïs",
"firstName" : "Camille",
"lastName" : "KONGUEM",
"expireDate" : "12-2017"
},
"sender" : 467,
"sendCardNumber" : "6918-5421-6036-4103",
"receiveCardNumber" : "5839-4874-0889-6188"
}'
Description des chanmps de la requête
| Path | Type | Description |
|---|---|---|
|
|
Montant envoyé |
|
|
Nom d’utilisateur de l’expéditeur |
|
|
Méthode de paiement de l’expéditeur |
|
|
Numéro de carte de l’expéditeur |
|
|
Nom du destinataire |
|
|
Prénom du destinataire |
|
|
Nom présent sur la carte du destinataire |
|
|
Numéro de carte du destinataire |
|
|
Date d’expiration de la carte du destinataire |
|
|
Méthode de paiement du destinataire |
|
|
Numéro de carte du destinataire |
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: 1511
{
"sender" : 467,
"senderAccountType" : "INTERNAL",
"sendBankAccount" : {
"cardNumber" : "6918-5421-6036-4103",
"owner" : "Marchal Clémence",
"expiryDate" : "12-3922",
"id" : 164,
"valid" : true,
"bankMethod" : "VISA",
"createAt" : "2024-08-12T20:37:47.637+0000",
"lastDateUsedForReceivingMoney" : null,
"lastDateUsedForSendingMoney" : "2024-08-12T20:37:47.899+0000",
"lastDateUsed" : "2024-08-12T20:37:47.899+0000"
},
"receiver" : 7,
"receiverAccountType" : "GUEST",
"receiveBankAccount" : {
"cardNumber" : "5839-4874-0889-6188",
"owner" : "Robert Anaïs",
"expiryDate" : "12-2017",
"id" : 169,
"valid" : false,
"bankMethod" : "VISA",
"createAt" : "2024-08-12T20:37:47.893+0000",
"lastDateUsedForReceivingMoney" : "2024-08-12T20:37:47.899+0000",
"lastDateUsedForSendingMoney" : null,
"lastDateUsed" : "2024-08-12T20:37:47.899+0000"
},
"amount" : 100.0,
"createDate" : "2024-08-12T20:37:47.899+0000",
"externalId" : null,
"transactionStatus" : {
"id" : 29,
"status" : "INITIALIZED",
"message" : "Initialized transaction between Bankable{id='164', codeId='6918-5421-6036-4103', owner='Marchal Clémence', valid=true, bankMethod=VISA} and Bankable{id='169', codeId='5839-4874-0889-6188', owner='Robert Anaïs', valid=false, bankMethod=VISA}"
},
"reason" : null,
"id" : 27,
"_links" : {
"self" : {
"href" : "http://localhost:8080/transactions/send-to-guest?byId=true"
}
}
}
Vers un compte Mobile Money non enregistré dans Walkap
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-guest/?byId=True' -i -u 'alicialouis:alicialouis' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{
"sendMethod" : "VISA",
"amount" : 100.0,
"receiveMethod" : "MOMO",
"receiver" : {
"owner" : "Alexandre Lefèvre",
"firstName" : "Camille",
"lastName" : "KONGUEM",
"MobileMoneyId" : "+237650402122"
},
"sender" : 463,
"sendCardNumber" : "1899-1352-0838-8693",
"receiveMobileMoneyId" : "+237650402122"
}'
Description des chanmps de la requête
| Path | Type | Description |
|---|---|---|
|
|
Montant envoyé |
|
|
Nom d’utilisateur de l’expéditeur |
|
|
Méthode de paiement de l’expéditeur |
|
|
Numéro de carte de l’expéditeur |
|
|
Nom du destinataire |
|
|
Prénom du destinataire |
|
|
Nom présent sur la carte du destinataire |
|
|
Numéro de carte du destinataire |
|
|
Méthode de paiement du destinataire |
|
|
Numéro Mobile Money du destinataire |
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: 1478
{
"sender" : 463,
"senderAccountType" : "INTERNAL",
"sendBankAccount" : {
"cardNumber" : "1899-1352-0838-8693",
"owner" : "M Ethan Gautier",
"expiryDate" : "11-3921",
"id" : 157,
"valid" : true,
"bankMethod" : "VISA",
"createAt" : "2024-08-12T20:37:47.014+0000",
"lastDateUsedForReceivingMoney" : null,
"lastDateUsedForSendingMoney" : "2024-08-12T20:37:47.271+0000",
"lastDateUsed" : "2024-08-12T20:37:47.271+0000"
},
"receiver" : 5,
"receiverAccountType" : "GUEST",
"receiveBankAccount" : {
"mobileMoneyId" : "+237650402122",
"owner" : "Alexandre Lefèvre",
"id" : 162,
"valid" : false,
"bankMethod" : "MOMO",
"createAt" : "2024-08-12T20:37:47.260+0000",
"lastDateUsedForReceivingMoney" : "2024-08-12T20:37:47.271+0000",
"lastDateUsedForSendingMoney" : null,
"lastDateUsed" : "2024-08-12T20:37:47.271+0000"
},
"amount" : 100.0,
"createDate" : "2024-08-12T20:37:47.271+0000",
"externalId" : null,
"transactionStatus" : {
"id" : 27,
"status" : "INITIALIZED",
"message" : "Initialized transaction between Bankable{id='157', codeId='1899-1352-0838-8693', owner='M Ethan Gautier', valid=true, bankMethod=VISA} and Bankable{id='162', codeId='+237650402122', owner='Alexandre Lefèvre', valid=false, bankMethod=MOMO}"
},
"reason" : null,
"id" : 25,
"_links" : {
"self" : {
"href" : "http://localhost:8080/transactions/send-to-guest?byId=true"
}
}
}
Les transactions interdites
Une transaction à sois-même
On ne peut pas s’envoyer de l’argent à soit-même.
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-account/?byId=False' -i -u 'maelysarnaud:maelysarnaud' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{"sendMethod":"VISA","amount":"14.0","receiveMethod":"VISA","receiver":"mathildebreton","sender":"mathildebreton","sendCardNumber":"5937-3687-6143-3784","receiveCardNumber":"5937-3687-6143-3784"}'
Réponse obtenue
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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
Une transaction provenant d’un compte non activé
On peut envoyer de l’argent même si notre Walkap n’est pas encore activé, mais la limite de transaction est fixée à 2 transaction pour un compte.
Au delà, un message d’erreur sera transmis
Premier envoi
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-account/?byId=False' -i -u 'lauramorel:lauramorel' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{
"sendMethod" : "VISA",
"amount" : "14.0",
"receiveMethod" : "MOMO",
"receiver" : "noamartinez",
"sender" : "mohamedguyot",
"sendCardNumber" : "1296-7562-9992-4476",
"receiveMobileMoneyId" : "+237650283430"
}'
Réponse obtenue
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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
Deuxième envoi
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-account/?byId=False' -i -u 'lauramorel:lauramorel' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{"sendMethod":"VISA","amount":"14.0","receiveMethod":"MOMO","receiver":"noamartinez","sender":"mohamedguyot","sendCardNumber":"1296-7562-9992-4476","receiveMobileMoneyId":"+237650283430"}'
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: 1218
{"sender":403,"senderAccountType":"INTERNAL","sendBankAccount":{"cardNumber":"1296-7562-9992-4476","owner":"Fernandez Kylian","expiryDate":"09-3923","id":79,"valid":false,"bankMethod":"VISA","createAt":"2024-08-12T20:37:36.799+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":"2024-08-12T20:37:37.108+0000","lastDateUsed":"2024-08-12T20:37:37.108+0000"},"receiver":404,"receiverAccountType":"INTERNAL","receiveBankAccount":{"mobileMoneyId":"+237650283430","owner":"Louna Breton","id":82,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:36.799+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:37.108+0000","lastDateUsedForSendingMoney":null,"lastDateUsed":"2024-08-12T20:37:37.108+0000"},"amount":14.0,"createDate":"2024-08-12T20:37:37.108+0000","externalId":null,"transactionStatus":{"id":15,"status":"INITIALIZED","message":"Initialized transaction between Bankable{id='79', codeId='1296-7562-9992-4476', owner='Fernandez Kylian', valid=false, bankMethod=VISA} and Bankable{id='82', codeId='+237650283430', owner='Louna Breton', valid=true, bankMethod=MOMO}"},"reason":null,"id":14,"_links":{"self":{"href":"http://localhost:8080/transactions/send-to-account?byId=false"}}}
Troisème envoi
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/send-to-account/?byId=False' -i -u 'lauramorel:lauramorel' -X POST \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/json' \
-d '{"sendMethod":"VISA","amount":"14.0","receiveMethod":"MOMO","receiver":"noamartinez","sender":"mohamedguyot","sendCardNumber":"1296-7562-9992-4476","receiveMobileMoneyId":"+237650283430"}'
Réponse obtenue
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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
Liste de toutes les transactions
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/' -i -u 'julesmorel:julesmorel' -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: 1427
{"content":[{"sender":379,"senderAccountType":"INTERNAL","sendBankAccount":{"cardNumber":"1533-6220-9666-9664","owner":"Lacroix Zoe","expiryDate":"09-3923","id":49,"valid":true,"bankMethod":"VISA","createAt":"2024-08-12T20:37:30.941+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":"2024-08-12T20:37:31.081+0000","lastDateUsed":"2024-08-12T20:37:31.081+0000"},"receiver":380,"receiverAccountType":"INTERNAL","receiveBankAccount":{"mobileMoneyId":"+237650370358","owner":"Paul Marty","id":52,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:30.941+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:31.081+0000","lastDateUsedForSendingMoney":null,"lastDateUsed":"2024-08-12T20:37:31.081+0000"},"amount":20.0,"createDate":"2024-08-12T20:37:31.081+0000","externalId":null,"transactionStatus":{"id":4,"status":"INITIALIZED","message":"Initialized transaction between Bankable{id='49', codeId='1533-6220-9666-9664', owner='Lacroix Zoe', valid=true, bankMethod=VISA} and Bankable{id='52', codeId='+237650370358', owner='Paul Marty', valid=true, bankMethod=MOMO}"},"reason":null,"id":4}],"pageable":{"sort":{"sorted":true,"unsorted":false,"empty":false},"offset":0,"pageNumber":0,"pageSize":10,"paged":true,"unpaged":false},"totalPages":1,"totalElements":1,"last":true,"size":10,"number":0,"sort":{"sorted":true,"unsorted":false,"empty":false},"numberOfElements":1,"first":true,"empty":false}
Statistiques sur les transactions par jour
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/nathanarnaud/stats/day' -i -u 'mathismoreau:mathismoreau' -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: 205
{"send":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,400.0],"receive":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,400.0],"period":["05-08-2024","06-08-2024","07-08-2024","08-08-2024","09-08-2024","10-08-2024","11-08-2024","12-08-2024"]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions envoyées groupées par jour |
|
|
Transactions reçues groupées par jour |
|
|
Liste des jours concernés par les résultats |
Statistiques sur les transactions par utilisateurs
Exemple de requête curl
$ curl 'http://localhost:8080/transactions/maxencemaillard/stats/account' -i -u 'antoinedvnis:antoinedvnis' -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: 11092
{"send":[{"account":{"id":478,"username":"antoinedvnis","email":"tom.dumas@yahoo.fr","firstName":"Mattéo","lastName":"Charles","birthDate":"3861-05-16T07:49:53.628+0000","createDate":"2024-08-12T20:37:50.459+0000","updateDate":null,"lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF","ROLE_ADMIN"],"address":[],"tokenRegister":[],"bankAccounts":[{"cardNumber":"2795-6480-8270-1775","owner":"Mme Marie Gérard","expiryDate":"08-3924","id":180,"valid":true,"bankMethod":"VISA","createAt":"2024-08-12T20:37:50.708+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:50.978+0000","lastDateUsedForSendingMoney":"2024-08-12T20:37:51.130+0000","lastDateUsed":"2024-08-12T20:37:51.130+0000"},{"mobileMoneyId":"+237650220513","owner":"Jeanne Le roux","id":183,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:50.708+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":null,"lastDateUsed":null}],"idCards":[],"kycElementClients":[{"id":481,"statusElement":{"id":245,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:37:50.719+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:37:50.719+0000","updateDate":null}],"accountLimits":[{"id":1891,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1892,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1893,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1894,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:37:51.292+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":"antoinedvnis","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:37:51.292+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":"antoinedvnis","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:37:51.292+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":"antoinedvnis","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:37:51.292+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":"antoinedvnis","approved":false}},"accountType":"INTERNAL"},"total":100.0}],"receive":[{"account":{"id":480,"username":"elisadasilva","email":"hugo.rolland@hotmail.fr","firstName":"Ethan","lastName":"Charles","birthDate":"3855-04-17T21:14:25.894+0000","createDate":"2024-08-12T20:37:50.622+0000","updateDate":null,"lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_USER"],"address":[],"tokenRegister":[],"bankAccounts":[{"mobileMoneyId":"+237650940867","owner":"Romain Francois","id":184,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:50.708+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:50.830+0000","lastDateUsedForSendingMoney":null,"lastDateUsed":"2024-08-12T20:37:50.830+0000"}],"idCards":[],"kycElementClients":[{"id":484,"statusElement":{"id":245,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:37:50.719+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:37:50.719+0000","updateDate":null}],"accountLimits":[{"id":1899,"createdAt":"2024-08-12T20:37:50.622+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":"elisadasilva","approved":false},{"id":1900,"createdAt":"2024-08-12T20:37:50.622+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":"elisadasilva","approved":false},{"id":1901,"createdAt":"2024-08-12T20:37:50.622+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":"elisadasilva","approved":false},{"id":1902,"createdAt":"2024-08-12T20:37:50.622+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":"elisadasilva","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:37:51.295+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":"elisadasilva","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:37:51.295+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":"elisadasilva","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:37:51.295+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":"elisadasilva","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:37:51.295+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":"elisadasilva","approved":false}},"accountType":"INTERNAL"},"total":200.0},{"account":{"id":478,"username":"antoinedvnis","email":"tom.dumas@yahoo.fr","firstName":"Mattéo","lastName":"Charles","birthDate":"3861-05-16T07:49:53.628+0000","createDate":"2024-08-12T20:37:50.459+0000","updateDate":null,"lastLoginDate":null,"preferredLang":"fr","roles":["ROLE_STAFF","ROLE_ADMIN"],"address":[],"tokenRegister":[],"bankAccounts":[{"cardNumber":"2795-6480-8270-1775","owner":"Mme Marie Gérard","expiryDate":"08-3924","id":180,"valid":true,"bankMethod":"VISA","createAt":"2024-08-12T20:37:50.708+0000","lastDateUsedForReceivingMoney":"2024-08-12T20:37:50.978+0000","lastDateUsedForSendingMoney":"2024-08-12T20:37:51.130+0000","lastDateUsed":"2024-08-12T20:37:51.130+0000"},{"mobileMoneyId":"+237650220513","owner":"Jeanne Le roux","id":183,"valid":true,"bankMethod":"MOMO","createAt":"2024-08-12T20:37:50.708+0000","lastDateUsedForReceivingMoney":null,"lastDateUsedForSendingMoney":null,"lastDateUsed":null}],"idCards":[],"kycElementClients":[{"id":481,"statusElement":{"id":245,"statusValue":"ACTIVE","createdDate":"2024-08-12T20:37:50.719+0000","updatedDate":null,"kycElementClients":[]},"statusChanger":null,"reason":null,"createdDate":"2024-08-12T20:37:50.719+0000","updateDate":null}],"accountLimits":[{"id":1891,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1892,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1893,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false},{"id":1894,"createdAt":"2024-08-12T20:37:50.459+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":"antoinedvnis","approved":false}],"walkapTax":null,"accountLimit":{"PAYPAL":{"id":0,"createdAt":"2024-08-12T20:37:51.298+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":"antoinedvnis","approved":false},"VISA":{"id":0,"createdAt":"2024-08-12T20:37:51.298+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":"antoinedvnis","approved":false},"MOMO":{"id":0,"createdAt":"2024-08-12T20:37:51.298+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":"antoinedvnis","approved":false},"ORANGE":{"id":0,"createdAt":"2024-08-12T20:37:51.298+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":"antoinedvnis","approved":false}},"accountType":"INTERNAL"},"total":200.0}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions envoyées groupées par destinataires |
|
|
Transactions reçues groupées par expéditeurs |
Statistiques sur les transactions envoyées par un utilisateur par mois.
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/nicolaslefevre/transactions/stats/sent?periodType=month' -i -u 'nicolaslefevre:nicolaslefevre' -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: 52
{"INITIALIZED":[{"total":400.0,"period":"08-2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions envoyées groupées par mois |
Statistiques sur les transactions envoyées par un utilisateur par jour
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/nicolaslefevre/transactions/stats/sent?periodType=day' -i -u 'nicolaslefevre:nicolaslefevre' -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: 55
{"INITIALIZED":[{"total":400.0,"period":"12-08-2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions envoyées groupées par jour |
Statistiques sur les transactions envoyées par un utilisateur par année
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/nicolaslefevre/transactions/stats/sent?periodType=year' -i -u 'nicolaslefevre:nicolaslefevre' -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: 49
{"INITIALIZED":[{"total":400.0,"period":"2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions envoyées groupées par an |
Statistiques sur les transactions reçues par un utilisateur par mois.
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/juliettemasson/transactions/stats/receive?periodType=month' -i -u 'juliettemasson:juliettemasson' -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: 52
{"INITIALIZED":[{"total":100.0,"period":"08-2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions reçues groupées par mois |
Statistiques sur les transactions reçues par un utilisateur par jour
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/juliettemasson/transactions/stats/receive?periodType=day' -i -u 'juliettemasson:juliettemasson' -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: 55
{"INITIALIZED":[{"total":100.0,"period":"12-08-2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions reçues groupées par jour |
Statistiques sur les transactions reçues par un utilisateur par année
Exemple de requête curl
$ curl 'http://localhost:8080/accounts/juliettemasson/transactions/stats/receive?periodType=year' -i -u 'juliettemasson:juliettemasson' -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: 49
{"INITIALIZED":[{"total":100.0,"period":"2024"}]}
Description des chanmps de la réponse
| Path | Type | Description |
|---|---|---|
|
|
Transactions reçues groupées par an |