Menu

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é.