All URIs are relative to https://openapi.alipay.com.
Method | HTTP request | Description |
---|---|---|
query() | GET /v3/alipay/ebpp/invoice/institution/detailinfo/query | 制度详情查询 |
query($accountId, $agreementNo, $enterpriseId, $institutionId, $outerSourceId, $ownerType): \Alipay\OpenAPISDK\Model\AlipayEbppInvoiceInstitutionDetailinfoQueryResponseModel
制度详情查询
单个制度查询,返回制度详细信息,包含制度下使用规则列表和发放规则列表
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AlipayEbppInvoiceInstitutionDetailinfoApi(
// 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);
$accountId = 2088000194958956; // string | 企业共同账户id
$agreementNo = 20215425001112341234; // string | 授权签约协议号
$enterpriseId = 2088000194958956; // string | 企业ID
$institutionId = 2022071800152609780000004052; // string | 制度id
$outerSourceId = 0b249cd916969304726395528e002c; // string | 外部唯一标识
$ownerType = PHONE; // string | 适配id类型
try {
$result = $apiInstance->query($accountId, $agreementNo, $enterpriseId, $institutionId, $outerSourceId, $ownerType);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlipayEbppInvoiceInstitutionDetailinfoApi->query: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | 企业共同账户id | [optional] |
agreementNo | string | 授权签约协议号 | [optional] |
enterpriseId | string | 企业ID | [optional] |
institutionId | string | 制度id | [optional] |
outerSourceId | string | 外部唯一标识 | [optional] |
ownerType | string | 适配id类型 | [optional] |
\Alipay\OpenAPISDK\Model\AlipayEbppInvoiceInstitutionDetailinfoQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept:
application/json