All URIs are relative to https://openapi.alipay.com.
Method | HTTP request | Description |
---|---|---|
close() | PATCH /v3/ant/merchant/shop/close | 蚂蚁店铺关闭 |
consult() | POST /v3/ant/merchant/expand/shop/consult | 蚂蚁店铺创建咨询 |
create() | POST /v3/ant/merchant/shop | 蚂蚁店铺创建 |
modify() | PATCH /v3/ant/merchant/shop | 修改蚂蚁店铺 |
query() | GET /v3/ant/merchant/shop | 店铺查询接口 |
close($antMerchantExpandShopCloseModel): object
蚂蚁店铺关闭
通过shop_id,关闭蚂蚁店铺。
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AntMerchantExpandShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$antMerchantExpandShopCloseModel = new \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCloseModel(); // \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCloseModel
try {
$result = $apiInstance->close($antMerchantExpandShopCloseModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntMerchantExpandShopApi->close: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
antMerchantExpandShopCloseModel | \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCloseModel | [optional] |
object
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
consult($antMerchantExpandShopConsultModel): \Alipay\OpenAPISDK\Model\AntMerchantExpandShopConsultResponseModel
蚂蚁店铺创建咨询
蚂蚁店铺创建咨询
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AntMerchantExpandShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$antMerchantExpandShopConsultModel = new \Alipay\OpenAPISDK\Model\AntMerchantExpandShopConsultModel(); // \Alipay\OpenAPISDK\Model\AntMerchantExpandShopConsultModel
try {
$result = $apiInstance->consult($antMerchantExpandShopConsultModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntMerchantExpandShopApi->consult: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
antMerchantExpandShopConsultModel | \Alipay\OpenAPISDK\Model\AntMerchantExpandShopConsultModel | [optional] |
\Alipay\OpenAPISDK\Model\AntMerchantExpandShopConsultResponseModel
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
create($antMerchantExpandShopCreateModel): \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCreateResponseModel
蚂蚁店铺创建
创建蚂蚁店铺
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AntMerchantExpandShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$antMerchantExpandShopCreateModel = new \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCreateModel(); // \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCreateModel
try {
$result = $apiInstance->create($antMerchantExpandShopCreateModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntMerchantExpandShopApi->create: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
antMerchantExpandShopCreateModel | \Alipay\OpenAPISDK\Model\AntMerchantExpandShopCreateModel | [optional] |
\Alipay\OpenAPISDK\Model\AntMerchantExpandShopCreateResponseModel
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
modify($antMerchantExpandShopModifyModel): \Alipay\OpenAPISDK\Model\AntMerchantExpandShopModifyResponseModel
修改蚂蚁店铺
修改蚂蚁店铺,按信息项修改。若无特殊说明,如果某项存在但是没填写,则不会覆盖掉原来的值
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AntMerchantExpandShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$antMerchantExpandShopModifyModel = new \Alipay\OpenAPISDK\Model\AntMerchantExpandShopModifyModel(); // \Alipay\OpenAPISDK\Model\AntMerchantExpandShopModifyModel
try {
$result = $apiInstance->modify($antMerchantExpandShopModifyModel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntMerchantExpandShopApi->modify: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
antMerchantExpandShopModifyModel | \Alipay\OpenAPISDK\Model\AntMerchantExpandShopModifyModel | [optional] |
\Alipay\OpenAPISDK\Model\AntMerchantExpandShopModifyResponseModel
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to README]
query($shopId, $storeId, $ipRoleId, $addressVersion, $needRecommend, $needIndustryInfo, $needIndustryLicense): \Alipay\OpenAPISDK\Model\AntMerchantExpandShopQueryResponseModel
店铺查询接口
用于服务商或商户查询其自己的店铺信息
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AntMerchantExpandShopApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$shopId = 2018011900502000000005124744; // string | 蚂蚁店铺id
$storeId = NO0001; // string | 门店编号,表示该门店在该商户角色id(直连pid,间连smid)下,由商户自己定义的外部门店编号
$ipRoleId = 2088301155943087; // string | 商户角色id,表示将要开的店属于哪个商户角色。对于直连开店场景,填写商户pid;对于间连开店场景(线上、线下、直付通),填写商户smid
$addressVersion = 2022Q2; // string | 行政区划版本,当前可传空值(取默认版本)、2022Q2、UPTODATE(取最新版本),其中空值默认为:2020Q1版本( address_version=''或null),想要查看版本是2022年2季度版本则传入:(address_version='2022Q2'),想要获取最新版本则传入:(address_version ='UPTODATE')
$needRecommend = 0; // string | 门店不置信时,是否需要返回shop_recommend_info
$needIndustryInfo = 1; // string | need_industry_info=0时不返回行业信息;need_industry_info=1时返回不需要审核的行业信息、审核通过的行业信息
$needIndustryLicense = 1; // string | need_industry_license=0时不返回行业资质;need_industry_license=1时返回审核通过的行业资质
try {
$result = $apiInstance->query($shopId, $storeId, $ipRoleId, $addressVersion, $needRecommend, $needIndustryInfo, $needIndustryLicense);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntMerchantExpandShopApi->query: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
shopId | string | 蚂蚁店铺id | [optional] |
storeId | string | 门店编号,表示该门店在该商户角色id(直连pid,间连smid)下,由商户自己定义的外部门店编号 | [optional] |
ipRoleId | string | 商户角色id,表示将要开的店属于哪个商户角色。对于直连开店场景,填写商户pid;对于间连开店场景(线上、线下、直付通),填写商户smid | [optional] |
addressVersion | string | 行政区划版本,当前可传空值(取默认版本)、2022Q2、UPTODATE(取最新版本),其中空值默认为:2020Q1版本( address_version=''或null),想要查看版本是2022年2季度版本则传入:(address_version='2022Q2'),想要获取最新版本则传入:(address_version ='UPTODATE') | [optional] |
needRecommend | string | 门店不置信时,是否需要返回shop_recommend_info | [optional] |
needIndustryInfo | string | need_industry_info=0时不返回行业信息;need_industry_info=1时返回不需要审核的行业信息、审核通过的行业信息 | [optional] |
needIndustryLicense | string | need_industry_license=0时不返回行业资质;need_industry_license=1时返回审核通过的行业资质 | [optional] |
\Alipay\OpenAPISDK\Model\AntMerchantExpandShopQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept:
application/json