Simplifiez les échanges de valeurs digitales entre vos utilisateurs en orchestrant des mouvements de wallet à wallet instantanés. Ouvrez des E-wallets en toute simplicité puis initiez des échanges dans un écosystème entièrement maitrisé, aux coûts de fonctionnement et aux risques de fraude limités.
Wallet Monnaie Electronique
1)Création du Customer
- Cette étape consiste à créer le customer.
Exemple de code Curl :
curl -v -X POST 'https://test-api.centralpay.net/v2/rest/customer' \ -u 'doctest:4I9HJRTd' \ -d 'firstName=Carla' \ -d 'lastName=Mauru' \ -d 'addressLine1=17 rue de la poste' \ -d 'postalCode=37000' \ -d 'city=Tours' \ -d 'country=FR' \ -d 'email=carlamauru@gmail.com' \ -d 'cardTokenId=e03de50d-e864-43c4-8da5-95dfd28e2e8a'
Plusieurs réponses sont possibles :
Customer créé :
{
"customerId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"creationDate": "2023-02-01T11:51:43.719426+01:00",
"merchantCustomerId": null,
"firstName": "CARLA",
"lastName": "MAURU",
"email": "carlamauru@gmail.com",
"phone": null,
"addressLine1": "17 RUE DE LA POSTE",
"addressLine2": null,
"addressLine3": null,
"addressLine4": null,
"postalCode": "37000",
"city": "TOURS",
"country": "FRA",
"cards": [
{
"cardId": "864b055e-7105-47e0-a4a4-37d47686ed40",
"creationDate": "2023-02-01T11:51:15.602631+01:00",
"customerId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"cardTokenId": "e03de50d-e864-43c4-8da5-95dfd28e2e8a",
"infoId": null,
"merchantCardId": null,
"commercialBrand": "VISA",
"first6": "400000",
"last4": "0010",
"expirationMonth": 12,
"expirationYear": 2023,
"country": null,
"cardholderName": "CARLA MAURU",
"cardholderEmail": "carlamauru@gmail.com",
"description": null,
"fingerprint": "b31d96aaa14cf7436c4ad6d4b95a1e15c7de7cb3",
"cardType": null,
"region": null,
"productType": null,
"europeanEconomicArea": null,
"check": false,
"additionalData": {}
}
],
"description": null,
"language": null,
"otpExpired": false,
"subscriptions": [],
"installmentPayments": [],
"fee": 0,
"totalCharge": 0,
"bankAccounts": [],
"metaData": null,
"movementId": "214676de-731e-456b-b039-2ac598badebc",
"otpExpirationDate": null,
"additionalData": {}
}
Cette réponse est renvoyée quand le customer a bien été créé.
Erreur de cardTokenId :
{
"errors": {
"cardTokenData": ""
}
}
Cette réponse est renvoyée quand le cardTokenId n'est pas valide.
2)Création du Wallet
- Cette étape consiste à créer le wallet du customer.
Exemple de code Curl :
curl -v POST 'https://test-api.centralpay.net/v2/rest/wallets' \ -u 'doctest:4I9HJRTd' \ -d 'currency=GTH' \ -d 'customerId=6bb22104-c271-43e9-8a8d-d47812dade76'
Plusieurs réponses sont possibles :
Wallet créé :
{
"walletId": "5b2307be-66f1-4b53-a7b1-9fc5fe22ba76",
"available": [],
"pending": [],
"currency": "GTH",
"bankAccount": {
"iban": "FR7699999000014363653393541",
"bic": "CEAYFR22"
},
"reference": null,
"expirationDate": null,
"activationDate": null,
"additionalData": {}
}
Cette réponse est renvoyée quand le wallet a bien été créé.
Erreur de customer :
{
"errors": {
"customerId": "Empty or invalid"
}
}
Cette réponse est renvoyée quand le customerId n'est pas valide.
3)Transaction
- Cette étape consiste à réaliser une transaction avec capture.
Exemple de code Curl :
curl -v POST 'https://test-api.centralpay.net/v2/rest/transaction' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'customerId=6bb22104-c271-43e9-8a8d-d47812dade76' \ -d 'currency=EUR' \ -d 'amount=2500' \ -d 'endUserIp=245.100.1.15' \ -d '3ds[threeDSServerTransID]=d9403f5b-1f53-4cb9-b7be-914bf533f0f4' \ -d '3ds[xid]=65846896528' \ -d '3ds[cavv]=JAmi21makAifmwqo2120cjq1AAA=' \ -d '3ds[eci]=01' \ -d '3ds[status]=Y'
Réponse :
{
"transactionId": "16aef720-d5aa-41e1-b541-b56ffe2dc56c",
"creationDate": "2023-02-01T11:54:55.875600+01:00",
"pointOfSaleId": "7ada08f0-e0f5-4c4a-96c0-a92a85aca539",
"contractId": "71602dd0-2790-4743-877b-e72530d7576d",
"merchantTransactionId": null,
"archivingReference": "GQW8WB5W8PVE",
"transactionStatus": "SUCCESS",
"authorizationStatus": "SUCCESS",
"bankCode": "0",
"bankMessage": "Simulation : Transaction Approved",
"authorizationCode": "000000",
"riskScore": null,
"source": "EC",
"description": null,
"currency": "EUR",
"payoutCurrency": "EUR",
"payoutAmount": 2500,
"commission": 0,
"fee": 0,
"amount": 2500,
"partialAuthorization": false,
"partialAuthorized": false,
"partialAuthorizedAmount": null,
"totalAmount": 2500,
"card": {
"cardId": "864b055e-7105-47e0-a4a4-37d47686ed40",
"creationDate": "2023-02-01T11:51:15.602631+01:00",
"customerId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"cardTokenId": "e03de50d-e864-43c4-8da5-95dfd28e2e8a",
"infoId": null,
"merchantCardId": null,
"commercialBrand": "VISA",
"first6": "400000",
"last4": "0010",
"expirationMonth": 12,
"expirationYear": 2023,
"country": null,
"cardholderName": "CARLA MAURU",
"cardholderEmail": "carlamauru@gmail.com",
"description": null,
"fingerprint": "b31d96aaa14cf7436c4ad6d4b95a1e15c7de7cb3",
"cardType": null,
"region": null,
"productType": null,
"europeanEconomicArea": null,
"check": false,
"additionalData": {}
},
"cardMerchantToken": null,
"captureStatus": "CAPTURED",
"amountCaptured": 2500,
"refunded": false,
"amountRefunded": 0,
"refunds": [],
"endUserIp": "245.100.1.15",
"endUserLanguage": null,
"browserUserAgent": null,
"browserAcceptLanguage": null,
"country": null,
"receiptEmail": "carlamauru@gmail.com",
"transactiontransfers": [],
"transferGroup": null,
"residualAmount": 0,
"order": {
"firstName": "CARLA",
"lastName": "MAURU",
"addressLine1": "17 RUE DE LA POSTE",
"addressLine2": null,
"addressLine3": null,
"addressLine4": null,
"postalCode": "37000",
"city": "TOURS",
"country": "FRA",
"email": "carlamauru@gmail.com",
"phone": null,
"cardCountry": null,
"cardholderName": "CARLA MAURU",
"cardholderEmail": "carlamauru@gmail.com"
},
"dispute": null,
"cardPresent": {
"cardSequenceNumber": null,
"cardEntryMode": null,
"pinEntryCapability": null,
"transactionSequenceCounter": null,
"uniqueTerminalId": null,
"cardholderSignatureImage": null,
"gpsLatitude": null,
"gpsLongitude": null,
"cardholderPhoto": null,
"cardAcceptorTerminalId": null,
"offlinePinIndicator": null,
"ucatTerminalIndicator": null,
"iccData": null,
"iccDataResponse": null
},
"clearingNumber": null,
"merchantCategoryCode": "6012",
"withCvv": true,
"authorizationCancellationDate": null,
"customerId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"captureDate": "2023-02-01T11:54:57.322075+01:00",
"clearingDate": null,
"captureCancellationDate": null,
"enrollmentId": null,
"movementId": "b8a00bdb-a6d0-4261-9d41-536fc77510c8",
"authorizationMovementId": "e26f1d33-7eb5-4382-a335-4a8ace8087f1",
"cancelMovementId": null,
"paymentRequestBreakdownId": null,
"paymentRequestId": null,
"invoiceId": null,
"installmentId": null,
"customAcceptanceData": {},
"additionalData": {},
"3ds": true
}
Cette réponse est renvoyée quand la transaction a bien été créé.
4)Transfert
- Cette étape consiste à transferer les fonds reçu vers le wallet customer.
Exemple de code Curl :
curl -v POST 'https://test-api.centralpay.net/v2/rest/transfer' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'amount=1133' \ -d 'emissionWalletId=8cb84d25-039f-496b-a4f7-2e54dc3ae142' \ -d 'fromCurrency=EUR' \ -d 'destinationWalletId=5b2307be-66f1-4b53-a7b1-9fc5fe22ba76' \ -d 'toCurrency=GTH'
Plusieurs réponses sont possibles :
Transfert créé :
{
"transferId": "8fb62992-5060-4f77-9a35-400e1d6ff8d1",
"creationDate": "2023-02-01T11:56:56.412634+01:00",
"merchantTransferId": null,
"currency": "EUR",
"amount": 2500,
"fee": 0,
"net": 2500,
"toCurrency": "GTH",
"exchangedAmount": 25,
"exchangedFee": 0,
"exchangedNet": 25,
"rate": 1.0,
"sourceType": null,
"transferGroup": null,
"description": null,
"status": "TRANSFERRED",
"transferReversals": [],
"reversed": false,
"metaData": null,
"escrowDate": null,
"emissionWalletId": "9b7f18d8-734f-4c72-8792-aea2ecdbdbaa",
"destinationWalletId": "5b2307be-66f1-4b53-a7b1-9fc5fe22ba76",
"sourceId": null,
"movementId": "b5202fb5-483e-4f06-b112-dd6b1b358ada",
"cancelMovementId": null,
"cancellationDate": null,
"additionalData": {}
}
Cette réponse est renvoyée quand le transfert a bien été créé.
Erreur de currency :
{
"errors": {
"currency": "Currency 'HUY' not found"
}
}
Cette réponse est renvoyée quand la currency n'est pas valide.
Erreur de destinationWalletId :
{
"errors": {
"walletId": "Empty or invalid"
}
}
Cette réponse est renvoyée quand le destinationWalletId n'est pas valide.
5a)Payout avec CB
- Cette étape consiste à réaliser un payout
Exemple de code Curl :
curl -v POST 'https://test-api.centralpay.net/v2/rest/payout' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'merchantPayoutId=' \ -d 'currency=EUR' \ -d 'amount=2500' \ -d 'customerId=6bb22104-c271-43e9-8a8d-d47812dade76' \ -d 'cardId=34a3f444-9e5a-45c0-bf1f-4348dec849fc' \ -d 'walletId=6bb22104-c271-43e9-8a8d-d47812dade76' \ -d 'payoutType=CREDIT' \
Réponse :
{
"payoutId": "b5d01971-a1a3-4ff9-b5a2-55bf2b72870f",
"creationDate": "2023-05-02T18:29:02.521631+02:00",
"destinationBankAccountId": null,
"cancellationDate": null,
"expectedArrivalDate": "2023-05-04",
"arrivalDate": null,
"merchantPayoutId": "payout marchand DEMO 02/05/2023",
"currency": "EUR",
"amount": 1,
"fee": 0,
"net": 1,
"description": "ma description",
"status": "PENDING",
"automatic": false,
"payoutReference": "PAYOUT-20230502182902",
"payoutType": "CREDIT",
"walletId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"movementId": null,
"cancelMovementId": null,
"additionalData": {},
"message": null
}
Cette réponse est renvoyée quand le payout a bien été créé
5b)Payout avec IBAN
- Cette étape consiste à réaliser un payout
Exemple de code Curl :
curl -v POST 'https://test-api.centralpay.net/v2/rest/payout' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'merchantPayoutId=valeurMarchand' \ -d 'currency=EUR' \ -d 'amount=2500' \ -d 'destinationBankAccountId=903bdc68-6b00-4434-8f42-d36d4dc3bd1d' \ -d 'walletId=6bb22104-c271-43e9-8a8d-d47812dade76' \ -d 'payoutType=SCT' \
Réponse :
{
"payoutId": "fff221b8-72f2-403c-88c9-5dbdd9725e11",
"creationDate": "2023-05-02T18:26:47.746120+02:00",
"destinationBankAccountId": "fa7ffc14-1250-4dfb-93ea-2df3b0be716e",
"cancellationDate": null,
"expectedArrivalDate": "2023-05-04",
"arrivalDate": null,
"merchantPayoutId": "payout marchand DEMO 02/05/2023",
"currency": "EUR",
"amount": 1,
"fee": 0,
"net": 1,
"description": "ma description",
"status": "PENDING",
"automatic": false,
"payoutReference": "PAYOUT-20230502182647",
"payoutType": "SCT",
"walletId": "6bb22104-c271-43e9-8a8d-d47812dade76",
"movementId": "89e62dba-feef-4b13-ae4f-34fe62f734da",
"cancelMovementId": null,
"additionalData": {},
"message": null
}
Cette réponse est renvoyée quand le payout a bien été créé.
Conformité (KYC)
1)Création de l'enrolement
- Cette étape consiste à créer un enrolement.
Exemple de code Curl :
curl -v POST 'https://test-onboarding-api.centralpay.net/api/merchant-enrollment/' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'profileWorkflowDefinition=17d3e285-6bed-440b-9eb3-b1be71d54a5f' \ -d 'workflowDefinition=6841b2a8-c9ee-4095-99bd-de0f7e3b12a3' \ -d 'profile[firstname][value]=Carla' \ -d 'profile[lastname][value]=Mauru' \ -d 'profile[email][value]=carlamauru@gmail.com' \ -d 'profile[phone][value]=+33712345678' \ -d 'language=fr' \ -d 'accountType=BASIC' \ -d 'activitySector=6fbce0bd-7659-4d4e-bb66-d7aa1251c173' \ -d 'feeSchedule=216e19cf-88a5-4708-acca-1f9edcde08b9' \ -d 'walletId=5b2307be-66f1-4b53-a7b1-9fc5fe22ba76' \ -d 'workflowMode=SEQUENTIAL' -d 'activityAge=6394b905-3851-45ef-97a7-42e0534a9127' \ -d 'type=INDIVIDUAL' \ -d 'turnover=aed57921-81d8-4f22-8b13-b2f150503800'
Réponse :
-
{ "workflow": { "uuid": "32c5ba0f-c81c-490a-96e1-2579f67a2a2e", "status": "ON_GOING", "activities": [ { "step_elements": [], "uuid": "d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c", "name": "ContractValiA", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:09:12" } ], "additional_documents": [] }, "identity_badge": null, "representatives_list": null, "infogreffe_identity": null, "language": "fr", "risk_score": { "activity": 2, "activity_age": null, "turnover": 1, "bank_account": 0, "total": null }, "uuid": "7566b13e-def7-4bb0-8ee4-e4c861f33787", "risk_points": null, "created_at": "2023-02-01T12:09:12", "last_updated_at": null, "turnover_is_fixed": false, "workflow_mode": "SEQUENTIAL", "risk_level": "LOW", "type": "INDIVIDUAL", "is_canceled": false, "enrollment_account": null, "profile": { "uuid": "7797c5bb-d4ab-4c8c-9a93-1a201875be9b", "workflow": { "uuid": "57a92a2b-0af2-4acd-8836-09f6131ff771", "status": "ON_GOING", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "value": "Carla", "element-type": "firstname" }, { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "value": "Mauru", "element-type": "lastname" }, { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "value": "carlamauru@gmail.com", "element-type": "email" }, { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "value": "+33712345678", "element-type": "phone" } ], "uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "TODO", "category": "identity", "created_at": "2023-02-01T12:09:12" } ], "additional_documents": [] }, "firstname": { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "value": "Carla", "element-type": "firstname" }, "lastname": { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "value": "Mauru", "element-type": "lastname" }, "email": { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "value": "carlamauru@gmail.com", "element-type": "email" }, "language": { "status": "ON_GOING", "uuid": "4c97a5d3-7eb4-4784-9670-ae052aee02f8", "locale": { "identifier": "fr" }, "element-type": "language" }, "phone": { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "value": "+33712345678", "element-type": "phone" }, "birthday": null, "login": null, "bo_user_uuid": null }, "activity_sector": { "name": "Evenements & billeterie" }, "data": { "type": "PARTICULAR", "company_name": null, "turnover": { "name": "Moins de 20k EUR" }, "activity_age": null }, "custom_reference": null, "is_converted": false, "conformity_status": "ON_GOING", "conformity_status_level_two": null, "comments_level_two": null, "validator_level_one": null, "validator_level_two": null, "merchant_uuid": null, "validation_date": null, "validation_date_level_two": null, "sub_type": null, "api_infogreffe_attempt": 0, "next_step": 0 }
Cette réponse est renvoyée quand l'enrolement a bien été créé.
2)Compléter le profil
- Dans la réponse de l'etape "Création de l'enrolement" ci-dessus, vous pourrez remarquer que certaines activitées dont en "TODO", il faut commencer par completer celle du profil :
"uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "TODO", "category": "identity", "created_at": "2023-02-01T12:09:12"
La première étape est d'identifier les éléments demandés, nous allons donc faire un appel GET :
curl -v GET 'https://test-onboarding-api.centralpay.net/api/nauth/profile/c001263d-5b25-4152-89d9-301441a435b3/activity' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \
Dans l'URL à la place de "c001263d-5b25-4152-89d9-301441a435b3" il faudra mettre l'uuid de l'activité souhaitée
Réponse :
{
"type": "FORM",
"form": {
"children": {
"firstname": {
"extra_data_to_pass": {
"default": "Carla"
},
"children": {
"value": []
}
},
"lastname": {
"extra_data_to_pass": {
"default": "Mauru"
},
"children": {
"value": []
}
},
"mail": {
"extra_data_to_pass": {
"default": "carlamauru@gmail.com"
},
"children": {
"value": []
}
},
"phone": {
"extra_data_to_pass": {
"default": "+33712345678"
},
"children": {
"value": []
}
},
"birthday": {
"extra_data_to_pass": {
"default": null
},
"children": {
"value": []
}
},
"identity_document": {
"children": {
"type": [],
"documents": []
}
},
"address": {
"extra_data_to_pass": {
"default": {
"nameLine1": null,
"nameLine2": null,
"nameLine3": null,
"nameLine4": null,
"locality": null,
"postalCode": null,
"country": null
}
},
"children": {
"nameLine1": [],
"nameLine2": [],
"nameLine3": [],
"nameLine4": [],
"locality": [],
"postalCode": [],
"country": []
}
}
}
},
"category": "identity"
}
Nous pouvons voir que les éléments suivant sont demandés :
- firstname[value]
- lastname[value]
- mail[value]
- phone[value]
- birthday[value]
- identity_document[type]
- identity_document[documents][0]
- address[nameLine1]
- address[locality]
- address[postalCode]
- address[country]
Nous allons donc faire cette fois un appel POST sur la même URL afin de renseigner ceux-ci :
-
curl -v POST 'https://test-onboarding-api.centralpay.net/api/nauth/profile/c001263d-5b25-4152-89d9-301441a435b3/activity' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'firstname[value]=Carla' \ -d 'lastname[value]=Mauru' \ -d 'mail[value]=carlamauru@gmail.com' \ -d 'phone[value]=+33712345678' \ -d 'birthday[value]=1997-09-22' \ -d 'identity_document[type]=PASSPORT' \ -d 'identity_document[documents][0]=@/home/ddegeai/Pictures/wallpaper.jpg' \ -d 'address[nameLine1]=19 rue Edouard Vaillant' \ -d 'address[locality]=Tours' \ -d 'address[postalCode]=37000' \ -d 'address[country]=FRA'
Réponse :
-
{ "type": "FORM", "form": { "children": { "firstname": { "extra_data_to_pass": { "default": "Carla" }, "children": { "value": [] } }, "lastname": { "extra_data_to_pass": { "default": "Mauru" }, "children": { "value": [] } }, "mail": { "extra_data_to_pass": { "default": "carlamauru@gmail.com" }, "children": { "value": [] } }, "phone": { "extra_data_to_pass": { "default": "+33712345678" }, "children": { "value": [] } }, "birthday": { "extra_data_to_pass": { "default": null }, "children": { "value": [] } }, "identity_document": { "children": { "type": [], "documents": { "children": [ [] ] } } }, "address": { "extra_data_to_pass": { "default": { "nameLine1": null, "nameLine2": null, "nameLine3": null, "nameLine4": null, "locality": null, "postalCode": null, "country": null } }, "children": { "nameLine1": [], "nameLine2": [], "nameLine3": [], "nameLine4": [], "locality": [], "postalCode": [], "country": [] } } } }, "category": "identity" }
Les informations d'identités étant renseigné il faut maintenant regarder où en est l'enrolement :
-
curl -v GET 'https://test-onboarding-api.centralpay.net/api/nauth/merchant-enrollment/7566b13e-def7-4bb0-8ee4-e4c861f33787' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \
A la place de "7566b13e-def7-4bb0-8ee4-e4c861f33787" il faudra ici mettre l'uuid de l'enrolement donné lors de la création de celui-ci.
Réponse :
-
{ "workflow": { "uuid": "32c5ba0f-c81c-490a-96e1-2579f67a2a2e", "status": "ON_GOING", "activities": [ { "step_elements": [], "uuid": "d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c", "name": "ContractValiA", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:09:12" } ], "additional_documents": [] }, "identity_badge": null, "representatives_list": null, "infogreffe_identity": null, "language": "fr", "risk_score": { "activity": 2, "activity_age": null, "turnover": 1, "bank_account": 0, "total": null }, "monthly_turnover": 0, "monthly_turnover_currency": "", "uuid": "7566b13e-def7-4bb0-8ee4-e4c861f33787", "risk_points": null, "created_at": "2023-02-01T12:09:12", "last_updated_at": "2023-02-01T12:17:20", "turnover_is_fixed": false, "workflow_mode": "SEQUENTIAL", "risk_level": "LOW", "actor_initiator": "6385f28c-0160-46ba-8088-b4317e329946", "type": "INDIVIDUAL", "is_canceled": false, "enrollment_account": null, "profile": { "uuid": "7797c5bb-d4ab-4c8c-9a93-1a201875be9b", "workflow": { "uuid": "57a92a2b-0af2-4acd-8836-09f6131ff771", "status": "ACCEPTED", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "82b3b3c1-9729-4f64-80e0-05810f0361ec", "created_at": "2023-02-01T12:17:19", "name_line1": "19 rue Edouard Vaillant", "name_line2": null, "name_line3": null, "name_line4": null, "locality": "Tours", "postal_code": "37000", "country": "FRA", "element-type": "address" }, { "status": "COMPLETED", "uuid": "9f83bb3a-9c8f-4fd2-b773-5537f6642b89", "created_at": "2023-02-01T12:17:19", "documents": [ { "file_check": null, "uuid": "247c8e02-5aed-4ce0-a874-e166a86648a3", "mime_type": "image/jpeg" } ], "type": "PASSPORT", "expiry_date": null, "element-type": "identity-document" }, { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" } ], "uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "OK", "category": "identity", "created_at": "2023-02-01T12:09:12" }, { "step_elements": [], "uuid": "aab1fceb-fc33-4899-a18b-7d96ce239299", "name": "finished", "state": "OK", "category": null, "created_at": "2023-02-01T12:17:21" } ], "additional_documents": [] }, "firstname": { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" }, "lastname": { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, "email": { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, "language": { "status": "ON_GOING", "uuid": "4c97a5d3-7eb4-4784-9670-ae052aee02f8", "created_at": "2023-02-01T12:09:12", "locale": { "identifier": "fr" }, "element-type": "language" }, "phone": { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, "birthday": { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, "login": null, "bo_user_uuid": null }, "activity_sector": { "uuid": "6fbce0bd-7659-4d4e-bb66-d7aa1251c173", "name": "Events & ticketing" }, "data": { "type": "PARTICULAR", "company_name": null, "turnover": { "uuid": "aed57921-81d8-4f22-8b13-b2f150503800", "name": "Less than 20k EUR" }, "activity_age": null }, "custom_reference": null, "is_converted": false, "conformity_status": "ON_GOING", "conformity_status_level_two": null, "comments_level_two": null, "validator_level_one": null, "validator_level_two": null, "merchant_uuid": null, "validation_date": null, "validation_date_level_two": null, "sub_type": null, "api_infogreffe_attempt": 0, "next_step": 0, "merchant_enrollment_additional": [] }
On peut voir que maintenant vous avez une activité "Finished" à OK qui est apparu :
"step_elements": [], "uuid": "aab1fceb-fc33-4899-a18b-7d96ce239299", "name": "finished", "state": "OK", "category": null, "created_at": "2023-02-01T12:17:21"
Cela signifie que le profil est completé.
3)Definir un mot de passe
- Le profil étant completé, il faut maintenant définir un mot de passe.
Exemple de code Curl :
curl -v POST 'https://test-onboarding-api.centralpay.net/api/user/define/7566b13e-def7-4bb0-8ee4-e4c861f33787' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'password=PASsword8!'
Réponse :
-
{ "uuid": "7797c5bb-d4ab-4c8c-9a93-1a201875be9b", "workflow": { "uuid": "57a92a2b-0af2-4acd-8836-09f6131ff771", "status": "ACCEPTED", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "82b3b3c1-9729-4f64-80e0-05810f0361ec", "created_at": "2023-02-01T12:17:19", "name_line1": "19 rue Edouard Vaillant", "name_line2": null, "name_line3": null, "name_line4": null, "locality": "Tours", "postal_code": "37000", "country": "FRA", "element-type": "address" }, { "status": "COMPLETED", "uuid": "9f83bb3a-9c8f-4fd2-b773-5537f6642b89", "created_at": "2023-02-01T12:17:19", "documents": [ { "file_check": null, "uuid": "247c8e02-5aed-4ce0-a874-e166a86648a3", "mime_type": "image/jpeg" } ], "type": "PASSPORT", "expiry_date": null, "element-type": "identity-document" }, { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" } ], "uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "OK", "category": "identity", "created_at": "2023-02-01T12:09:12" }, { "step_elements": [], "uuid": "aab1fceb-fc33-4899-a18b-7d96ce239299", "name": "finished", "state": "OK", "category": null, "created_at": "2023-02-01T12:17:21" } ], "additional_documents": [] }, "firstname": { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" }, "lastname": { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, "email": { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, "language": { "status": "ON_GOING", "uuid": "4c97a5d3-7eb4-4784-9670-ae052aee02f8", "created_at": "2023-02-01T12:09:12", "locale": { "identifier": "fr" }, "element-type": "language" }, "phone": { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, "birthday": { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, "login": "carlamauru@gmail.com", "bo_user_uuid": null }
Cette réponse est renvoyée quand le mot de passe a bien été défini.
4)Validation du contrat
- Le profil étant completé et le mot de passe définit, il faut maintenant valider le contrat.
Il faut réutiliser le Curl suivant afin de récuperer l'uuid de l'activité de la signature du contrat :
curl -v GET 'https://test-onboarding-api.centralpay.net/api/nauth/merchant-enrollment/7566b13e-def7-4bb0-8ee4-e4c861f33787' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \
A la place de "7566b13e-def7-4bb0-8ee4-e4c861f33787" il faudra ici mettre l'uuid de l'enrolement donné lors de la création de celui-ci.
Réponse :
-
{ "workflow": { "uuid": "32c5ba0f-c81c-490a-96e1-2579f67a2a2e", "status": "ON_GOING", "activities": [ { "step_elements": [], "uuid": "d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c", "name": "ContractValiA", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:09:12" } ], "additional_documents": [] }, "identity_badge": null, "representatives_list": null, "infogreffe_identity": null, "language": "fr", "risk_score": { "activity": 2, "activity_age": null, "turnover": 1, "bank_account": 0, "total": null }, "monthly_turnover": 0, "monthly_turnover_currency": "", "uuid": "7566b13e-def7-4bb0-8ee4-e4c861f33787", "risk_points": null, "created_at": "2023-02-01T12:09:12", "last_updated_at": "2023-02-01T12:26:32", "turnover_is_fixed": false, "workflow_mode": "SEQUENTIAL", "risk_level": "LOW", "actor_initiator": "6385f28c-0160-46ba-8088-b4317e329946", "type": "INDIVIDUAL", "is_canceled": false, "enrollment_account": { "login": "carlamauru@gmail.com" }, "profile": { "uuid": "7797c5bb-d4ab-4c8c-9a93-1a201875be9b", "workflow": { "uuid": "57a92a2b-0af2-4acd-8836-09f6131ff771", "status": "ACCEPTED", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "82b3b3c1-9729-4f64-80e0-05810f0361ec", "created_at": "2023-02-01T12:17:19", "name_line1": "19 rue Edouard Vaillant", "name_line2": null, "name_line3": null, "name_line4": null, "locality": "Tours", "postal_code": "37000", "country": "FRA", "element-type": "address" }, { "status": "COMPLETED", "uuid": "9f83bb3a-9c8f-4fd2-b773-5537f6642b89", "created_at": "2023-02-01T12:17:19", "documents": [ { "file_check": null, "uuid": "247c8e02-5aed-4ce0-a874-e166a86648a3", "mime_type": "image/jpeg" } ], "type": "PASSPORT", "expiry_date": null, "element-type": "identity-document" }, { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" } ], "uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "OK", "category": "identity", "created_at": "2023-02-01T12:09:12" }, { "step_elements": [], "uuid": "aab1fceb-fc33-4899-a18b-7d96ce239299", "name": "finished", "state": "OK", "category": null, "created_at": "2023-02-01T12:17:21" } ], "additional_documents": [] }, "firstname": { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" }, "lastname": { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, "email": { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, "language": { "status": "ON_GOING", "uuid": "4c97a5d3-7eb4-4784-9670-ae052aee02f8", "created_at": "2023-02-01T12:09:12", "locale": { "identifier": "fr" }, "element-type": "language" }, "phone": { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, "birthday": { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, "login": "carlamauru@gmail.com", "bo_user_uuid": null }, "activity_sector": { "uuid": "6fbce0bd-7659-4d4e-bb66-d7aa1251c173", "name": "Events & ticketing" }, "data": { "type": "PARTICULAR", "company_name": null, "turnover": { "uuid": "aed57921-81d8-4f22-8b13-b2f150503800", "name": "Less than 20k EUR" }, "activity_age": null }, "custom_reference": null, "is_converted": false, "conformity_status": "ON_GOING", "conformity_status_level_two": null, "comments_level_two": null, "validator_level_one": null, "validator_level_two": null, "merchant_uuid": null, "validation_date": null, "validation_date_level_two": null, "sub_type": null, "api_infogreffe_attempt": 0, "next_step": 0, "merchant_enrollment_additional": [] }
-
Nous pouvons voir que dans "workflow" nous avons ceci :
"step_elements": [], "uuid": "d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c", "name": "ContractValiA", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:09:12"
Il faut d'abord récupérer l'uuid de l'enrolement ainsi que du contrat et réaliser maintenant l'envoi de l'OTP :
Ci dessous le 1er uuid concerne celui de l'enrolement et le 2éme celui du contratValiA.
curl -v POST 'https://test-onboarding-api.centralpay.net/api/merchant-enrollment/7566b13e-def7-4bb0-8ee4-e4c861f33787/activity/d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c/otp' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \
Maintenant que vous avez reçu un sms avec l'OTP il faut réaliser la signature avec l'uuid du contratValiA :
curl --v POST 'https://test-onboarding-api.centralpay.net/api/nauth/profile/d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c/activity' \
-h 'Content-Type: application/x-www-form-urlencoded' \
-u 'doctest:4I9HJRTd' \
-d'contract_validation[centralpayProspection]=true' \
-d'contract_validation[partnersProspection]=false' \
-d 'contract_validation[otp]=491479'
Réponse :
-
{ "type": "FORM", "form": { "children": { "contract_validation": { "extra_data_to_pass": { "type": "PARTICULAR", "account_type": "BASIC", "contact_firstname": "Carla", "contact_lastname": "Mauru", "cgu": "CGU SIMPLE", "fee_schedule": "Test OBD" }, "children": { "centralpayProspection": [], "partnersProspection": [], "otp": [], "validationDate": [] } } } }, "category": "validation" }
Cette réponse est renvoyée quand le contrat a bien été signé.
Levée des limites
1)Levée de limite
- Le contrat étant signé, il faut maintenant faire la levée de limite.
Il faut réutiliser le Curl suivant afin de récuperer l'uuid de l'activité :
curl -v GET 'https://test-onboarding-api.centralpay.net/api/nauth/merchant-enrollment/7566b13e-def7-4bb0-8ee4-e4c861f33787' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \
A la place de "7566b13e-def7-4bb0-8ee4-e4c861f33787" il faudra ici mettre l'uuid de l'enrolement donné lors de la création de celui-ci.
Réponse :
-
{ "workflow": { "uuid": "32c5ba0f-c81c-490a-96e1-2579f67a2a2e", "status": "ON_GOING", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "28f8b20b-a7a7-4d4e-95bc-51ae3a911226", "created_at": "2023-02-01T12:38:15", "cgu_uuid": "624c0d47-d78d-4acc-8fb9-916cae95fd15", "security_uuid": null, "fee_schedule_uuid": "216e19cf-88a5-4708-acca-1f9edcde08b9", "element-type": "contract-validation" } ], "uuid": "d2d16e0d-419d-4b5c-8e03-9f5dc75ac04c", "name": "ContractValiA", "state": "OK", "category": "validation", "created_at": "2023-02-01T12:09:12" }, { "step_elements": [ { "status": "COMPLETED", "uuid": "ddbe73bc-175a-4a63-a42d-4bf0e7dc518c", "created_at": "2023-02-01T12:38:15", "reference": null, "review_url": null, "status_call": null, "element-type": "sanction-check" } ], "uuid": "41063323-fdb4-4f49-a9a9-86d2fce645ee", "name": "checkSanctionListA", "state": "OK", "category": null, "created_at": "2023-02-01T12:38:15" }, { "step_elements": [], "uuid": "50acfc07-b36a-4a1f-9c8e-ca484125fec7", "name": "QuestionLvl1A", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:38:16" } ], "additional_documents": [] }, "identity_badge": null, "representatives_list": null, "infogreffe_identity": null, "language": "fr", "risk_score": { "activity": 2, "activity_age": null, "turnover": 1, "bank_account": 0, "total": null }, "monthly_turnover": 0, "monthly_turnover_currency": "", "uuid": "7566b13e-def7-4bb0-8ee4-e4c861f33787", "risk_points": null, "created_at": "2023-02-01T12:09:12", "last_updated_at": "2023-02-01T12:38:15", "turnover_is_fixed": false, "workflow_mode": "SEQUENTIAL", "risk_level": "LOW", "actor_initiator": "6385f28c-0160-46ba-8088-b4317e329946", "type": "INDIVIDUAL", "is_canceled": false, "enrollment_account": { "login": "carlamauru@gmail.com" }, "profile": { "uuid": "7797c5bb-d4ab-4c8c-9a93-1a201875be9b", "workflow": { "uuid": "57a92a2b-0af2-4acd-8836-09f6131ff771", "status": "ACCEPTED", "activities": [ { "step_elements": [ { "status": "COMPLETED", "uuid": "82b3b3c1-9729-4f64-80e0-05810f0361ec", "created_at": "2023-02-01T12:17:19", "name_line1": "19 rue Edouard Vaillant", "name_line2": null, "name_line3": null, "name_line4": null, "locality": "Tours", "postal_code": "37000", "country": "FRA", "element-type": "address" }, { "status": "COMPLETED", "uuid": "9f83bb3a-9c8f-4fd2-b773-5537f6642b89", "created_at": "2023-02-01T12:17:19", "documents": [ { "file_check": null, "uuid": "247c8e02-5aed-4ce0-a874-e166a86648a3", "mime_type": "image/jpeg" } ], "type": "PASSPORT", "expiry_date": null, "element-type": "identity-document" }, { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" } ], "uuid": "c001263d-5b25-4152-89d9-301441a435b3", "name": "identityInfos", "state": "OK", "category": "identity", "created_at": "2023-02-01T12:09:12" }, { "step_elements": [], "uuid": "aab1fceb-fc33-4899-a18b-7d96ce239299", "name": "finished", "state": "OK", "category": null, "created_at": "2023-02-01T12:17:21" } ], "additional_documents": [] }, "firstname": { "status": "COMPLETED", "uuid": "966a5cdd-d28c-4742-ba8d-b55f3d91ac90", "created_at": "2023-02-01T12:09:12", "value": "Carla", "element-type": "firstname" }, "lastname": { "status": "COMPLETED", "uuid": "c648d594-63cf-4302-97f9-378386a99d92", "created_at": "2023-02-01T12:09:12", "value": "Mauru", "element-type": "lastname" }, "email": { "status": "COMPLETED", "uuid": "efc69af4-25fc-4ac1-9ae1-1980a190541b", "created_at": "2023-02-01T12:09:12", "value": "carlamauru@gmail.com", "element-type": "email" }, "language": { "status": "ON_GOING", "uuid": "4c97a5d3-7eb4-4784-9670-ae052aee02f8", "created_at": "2023-02-01T12:09:12", "locale": { "identifier": "fr" }, "element-type": "language" }, "phone": { "status": "COMPLETED", "uuid": "5517896b-1e37-4f8d-9d56-68ce96f2bf89", "created_at": "2023-02-01T12:09:12", "value": "+33712345678", "element-type": "phone" }, "birthday": { "status": "COMPLETED", "uuid": "51796203-ebba-4cd6-bfb9-a36211da4476", "created_at": "2023-02-01T12:17:19", "value": "1997-09-22T00:00:00", "element-type": "birthday" }, "login": "carlamauru@gmail.com", "bo_user_uuid": "53e3e5ea-d857-415e-a5aa-f616f24f79be" }, "activity_sector": { "uuid": "6fbce0bd-7659-4d4e-bb66-d7aa1251c173", "name": "Events & ticketing" }, "data": { "type": "PARTICULAR", "company_name": null, "turnover": { "uuid": "aed57921-81d8-4f22-8b13-b2f150503800", "name": "Less than 20k EUR" }, "activity_age": null }, "custom_reference": null, "is_converted": true, "conformity_status": "ACCEPTED", "conformity_status_level_two": null, "comments_level_two": null, "validator_level_one": null, "validator_level_two": null, "merchant_uuid": "962f3230-e5f6-4c4d-8f52-d9c8944972f1", "validation_date": null, "validation_date_level_two": null, "sub_type": null, "api_infogreffe_attempt": 0, "next_step": 0, "merchant_enrollment_additional": [] }
-
Nous pouvons voir que dans "workflow" nous avons ceci :
"step_elements": [], "uuid": "50acfc07-b36a-4a1f-9c8e-ca484125fec7", "name": "QuestionLvl1A", "state": "TODO", "category": "validation", "created_at": "2023-02-01T12:38:16"
Il faut récupérer l'uuid de QuestionLvl1A et réaliser maintenant la levée :
curl -v POST 'https://test-onboarding-api.centralpay.net/api/nauth/profile/50acfc07-b36a-4a1f-9c8e-ca484125fec7/activity' \ -h 'Content-Type: application/x-www-form-urlencoded' \ -u 'doctest:4I9HJRTd' \ -d 'question[response]=YES'
Réponse :
-
{ "type": "FORM", "form": { "children": { "question": { "extra_data_to_pass": { "type": "UNLOCK_PAYOUT_LIMITS", "current_payin_min": 0, "current_payin_max": 3000, "next_payin_min": 3000, "next_payin_max": 6000, "current_payout_max": 0, "can_unlock_limit": true, "choices": [ "YES", "NO" ] }, "children": { "response": [] } } } }, "category": "validation" }
Cette réponse est renvoyée quand la levée de limite a bien été éfféctué.