| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 1.3 商户信息变更 -> 商户变更-添加营业执照
- * 接口:/api/v3/tkbs/open_merchant_supplement_business_license_encry
- * 请求加密:SM4 返回解密:SM4
- */
- $config = require __DIR__ . '/bootstrap.php';
- $api = new \Lakala\OpenAPISDK\V3\Api\LakalaApi($config, \Lakala\OpenAPISDK\V3\Api\EncryptMode::BOTH);
- $request = new \Lakala\OpenAPISDK\V3\Model\ModelRequest();
- $request->setReqData([
- 'org_code' => JINGJIAN_ORG_CODE,
- 'customer_update_basic_dto' => [
- 'channel_type' => 'TP_PERSONAL',
- 'customer_no' => 100131161,
- 'merchant_no' => '8221620701109AZ',
- 'mer_blis' => '91150102MA7KUU3C02',
- 'mer_blis_name' => '呼和浩特市晓利商业管理有限公司',
- 'mer_blis_exp_dt' => '9999-12-31',
- 'lar_name' => '宋立杰',
- 'lar_idcard' => '211302197009110865',
- 'lar_idcard_exp_dt' => '9999-12-31',
- 'file_data' => [
- ['img_path' => 'merchant/100131161/20241023114918955182ID_CARD_FRONT.jpeg', 'img_type' => 'ID_CARD_FRONT'],
- ['img_path' => 'merchant/100131161/20241023114925727893ID_CARD_BEHIND.jpeg', 'img_type' => 'ID_CARD_BEHIND'],
- ['img_path' => 'merchant/100131161/20241023114951278116BUSINESS_LICENCE.jpeg', 'img_type' => 'BUSINESS_LICENCE'],
- ],
- ],
- ]);
- try {
- $response = $api->tradeApi('/api/v3/tkbs/open_merchant_supplement_business_license_encry', $request);
- print_r($response->getRespData());
- echo $response->getCode();
- print_r($response->getHeaders());
- echo $response->getOriginalText();
- } catch (\Lakala\OpenAPISDK\V3\ApiException $e) {
- echo $e->getMessage();
- }
|