Результаты поиска
    Ничего не найдено
    Оглавление
    Проверка полей профиля

    Проверка полей профиля

    Получение информации о незаполненных полях созданного личного кабинета (юнита).

    В ответ маркетплейс получит номер базового профиля (profileid) и номера подпрофилей.

    Запрос:

    {
       "Envelope":{
          "Header":{
             "Security":{
                "UsernameToken":{
                   "Username":"Username",
                   "Password":"Password"
                }
             }
          },
          "Body":{
             "CheckProfileRequest":{
                 "unitId":12345
    
             }
          }
       }
    }

    Ответ:

    {"Envelope": {"Body": {"CheckProfileResponse": {
       "foundersTotalShare": 0,
       "daysBeforePartnerLock": 30,
       "requestInfo":    [
                {
             "method": "EditProfile",
             "scope": "Founder",
             "profile":          {
                "profileId": 55555,
                "profile": {"attribute":             [
                                  {
                      "value": "number{0...100}",
                      "key": "FOUNDER_SHARE_PERCENTAGE"
                   },
                                  {
                      "value": "number{0...}",
                      "key": "FOUNDER_SHARE_NUMERATOR"
                   },
                                  {
                      "value": "number{0...}",
                      "key": "FOUNDER_SHARE_DENOMINATOR"
                   }
                ]},
                "unitId": 12345
             },
             "action": "REQUEST"
          },
                {
             "method": "EditProfile",
             "scope": "Personal",
             "profile":          {
                "profileId": 54321,
                "profile": {"attribute":             [
                                  {
                      "value": "address@domain.com",
                      "key": "FINANCE_EMAIL"
                   },
                                  {
                      "value": "number{79001112233}",
                      "key": "PHONE_SUPPORT"
                   },
                                  {
                      "value": "string",
                      "key": "FIO_CONTACT"
                   },
                                  {
                      "value": "Y|N",
                      "key": "CONDITIONS_PAYER"
                   },
                                  {
                      "value": "EXIST|NONE",
                      "key": "BUDGET_ARREARS_ABSENCE"
                   },
                                  {
                      "value": "Y|N",
                      "key": "CONDITIONS_PAYEE"
                   },
                                  {
                      "value": "string",
                      "key": "PLANNED_TURNOVERS"
                   },
                                  {
                      "value": "string",
                      "key": "REGISTRATION_AUTHORITY_RU"
                   },
                                  {
                      "value": "string",
                      "key": "AGREEMENT_SIGNER_FIO"
                   },
                                  {
                      "value": "Y|N",
                      "key": "CONDITIONS_CORRECT_DATA"
                   },
                                  {
                      "value": "number{79001112233}",
                      "key": "PHONE_CONTACT"
                   },
                                  {
                      "value": "Y|N",
                      "key": "CONDITIONS_PAYMENT_INFO"
                   },
                                  {
                      "value": "country: isocode[RUS], isocode2L[RU],  name[Россия|Russia]",
                      "key": "COUNTRY"
                   },
                                  {
                      "value": "POWER_OF_ATTORNEY|ARTICLES_OF_ASSOCIATION|OTHER",
                      "key": "ACTING_DOCUMENT"
                   },
                                  {
                      "value": "string",
                      "key": "FIO_ACCOUNTANT"
                   },
                                  {
                      "value": "string",
                      "key": "POST_ADDRESS"
                   },
                                  {
                      "value": "address@domain.com",
                      "key": "TECHNICAL_EMAIL"
                   },
                                  {
                      "value": "Y|N",
                      "key": "CONDITIONS_SITE"
                   },
                                  {
                      "value": "number{79001112233}",
                      "key": "PHONE_ACCOUNTANT"
                   }
                ]},
                "unitId": 12345
             },
             "action": "REQUEST"
          },
                {
             "method": "EditProfile",
             "scope": "Director",
             "profile":          {
                "profileId": 44444,
                "profile": {"attribute":             [
                                  {
                      "value": "country: isocode[RUS], isocode2L[RU],  name[Россия|Russia]",
                      "key": "NATIONALITY"
                   },
                                  {
                      "value": "string",
                      "key": "LEGAL_ADDRESS"
                   },
                                  {
                      "value": "string",
                      "key": "PLACE_OF_BIRTH"
                   },
                                  {
                      "value": "string",
                      "key": "POST_ADDRESS"
                   },
                                  {
                      "value": "Y|N",
                      "key": "RF_RESIDENT"
                   },
                                  {
                      "value": "YYYY-MM-DD",
                      "key": "DATE_OF_BIRTH"
                   },
                                  {
                      "value": "number{79001112233}",
                      "key": "PHONE_CONTACT"
                   }
                ]},
                "unitId": 12345
             },
             "action": "REQUEST"
          },
                {
             "juridical": {"attribute": [         {
                "value": "number{11 [КЧ | 222 [КЧ | 333 [КЧ | 444]]]}",
                "key": "OKATO"
             }]},
             "scope": "Juridical",
             "action": "CALL_SERVICE_SUPPORT"
          },
                {
             "bank":          {
                "unitId": 12345,
                "attribute":             [
                                  {
                      "value": "number{12345678901234567890}",
                      "key": "ACCOUNT"
                   },
                                  {
                      "value": "number{123456789}",
                      "key": "BIK"
                   }
                ]
             },
             "method": "CreateBankAccount",
             "scope": "Bank",
             "action": "REQUEST"
          }
       ],
       "status": "DATA_REQUIRED"
    }}}}
    <?php
    if (isset($_POST['unit_id'])) {
    
        $sdkAppFileName = __DIR__ . "/../moneta-sdk-lib/autoload.php";
        include_once($sdkAppFileName);
    
        try {
            $monetaSdk = new \Moneta\MonetaSdk();
            $monetaSdk->checkMonetaServiceConnection();
    
            $request = new \Moneta\Types\CheckProfileRequest();
            $request->unitId = $_POST['unit_id'];
    
            $result = $monetaSdk->monetaService->CheckProfile($request);
    
            if (is_array($result) && 'OK' !== $result['status']) {
                throw new Exception(print_r($result, true));
            }
    
            echo "<pre>";
            print_r($result);
            echo "</pre>";
    
        } catch (Exception $e) {
            echo "Необходимо заполнить следующие данные:<br />";
            echo "<pre>" . $e->getMessage() . "</pre>";
        }
    
    } else {
        echo '
            <form method="post">
                unit ID организации(площадки):<br/>
                <input type="text" name="unit_id"/><br/><br/>
    
                <input type="submit" value="Проверить данные профиля"/>
            </form>
        ';
    }

    Все запросы маркетплейс отправляет с помощью интерфейса MONETA.MerchantAPI.

    Примечание: Интерфейс MONETA.MerchantAPI представляет собой Web-сервис, описанный по спецификации Web Services Description Language (WSDL), использующий протокол Simple Object Access Protocol (SOAP) для передачи информации.