查询代金券信息
🚫
本接口服务已于 2020.MM.dd
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
coupon_stock_id | string | 代金券批次id |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
op_user_id | string | 操作员 |
device_info | string | 设备号 |
version | string | 协议版本1.0 枚举值 |
type | string | 协议类型XML 枚举值 |
php
$instance->v2->mmpaymkttransfers->querycouponsinfo->postAsync([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/mmpaymkttransfers/querycouponsinfo')->postAsync([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/mmpaymkttransfers/querycouponsinfo']->postAsync([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->mmpaymkttransfers->querycouponsinfo->post([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/mmpaymkttransfers/querycouponsinfo')->post([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/mmpaymkttransfers/querycouponsinfo']->post([
'xml' => [
'coupon_stock_id' => '1757',
'appid' => 'wx5edab3bdfba3dc1c',
'mch_id' => '10000098',
'op_user_id' => '10000098',
'device_info' => '',
'version' => '1.0',
'type' => 'XML',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
device_info | string | 设备号 |
nonce_str | string | 随机字符串 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
coupon_stock_id | string | 代金券批次ID |
coupon_name | string | 代金券名称 |
coupon_value | integer | 代金券面额 |
coupon_mininumn | integer | 代金券使用最低限额 |
coupon_stock_status | integer | 代金券批次状态 |
coupon_total | integer | 代金券数量 |
max_quota | integer | 代金券最大领取数量 |
is_send_num | integer | 代金券已经发送的数量 |
begin_time | string | 生效开始时间 |
end_time | string | 生效结束时间 |
create_time | string | 创建时间 |
coupon_budget | integer | 代金券预算额度 |
begin_time_t | string | 生效开始时间 |
end_time_t | string | 生效结束时间 |
create_time_t | string | 创建时间 |
参阅 官方文档