$config
$config : \WeChat\Contracts\DataArray
当前微信配置
卡券管理 Class Card
$config : \WeChat\Contracts\DataArray
当前微信配置
getCode(string $code, string $card_id = null, boolean $check_consume = null) : array
线下核销查询Code
string | $code | 单张卡券的唯一标准 |
string | $card_id | 卡券ID代表一类卡券。自定义code卡券必填 |
boolean | $check_consume | 是否校验code核销状态,填入true和false时的code异常状态返回数据不同 |
batchGet(integer $offset, integer $count = 50, array $status_list = array()) : array
批量查询卡券列表
integer | $offset | 查询卡列表的起始偏移量,从0开始,即offset: 5是指从从列表里的第六个开始读取 |
integer | $count | 需要查询的卡片的数量(数量最大50) |
array | $status_list | 支持开发者拉出指定状态的卡券列表 |
modifyStock(string $card_id, null|integer $increase_stock_value = null, null|integer $reduce_stock_value = null) : array
修改库存接口
string | $card_id | 卡券ID |
null|integer | $increase_stock_value | 增加多少库存,支持不填或填0 |
null|integer | $reduce_stock_value | 减少多少库存,可以不填或填0 |
getCardBizuininfo(string $begin_date, string $end_date, string $cond_source) : array
拉取卡券概况数据接口
string | $begin_date | 查询数据的起始时间 |
string | $end_date | 查询数据的截至时间 |
string | $cond_source | 卡券来源(0为公众平台创建的卡券数据 1是API创建的卡券数据) |
getCardCardinfo(string $begin_date, string $end_date, integer $cond_source, null $card_id = null) : array
获取免费券数据接口
string | $begin_date | 查询数据的起始时间 |
string | $end_date | 查询数据的截至时间 |
integer | $cond_source | 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据 |
null | $card_id | 卡券ID |
getCardMemberCardinfo(string $begin_date, string $end_date, string $cond_source) : array
拉取会员卡概况数据接口
string | $begin_date | 查询数据的起始时间 |
string | $end_date | 查询数据的截至时间 |
string | $cond_source | 卡券来源(0为公众平台创建的卡券数据 1是API创建的卡券数据) |
getCardMemberCardDetail(string $begin_date, string $end_date, string $card_id) : array
拉取单张会员卡数据接口
string | $begin_date | 查询数据的起始时间 |
string | $end_date | 查询数据的截至时间 |
string | $card_id | 卡券id |
batchGetPayGiftCard(integer $offset, integer $count = 10, boolean $effective = true) : array
批量查询支付后投放卡券规则
integer | $offset | 起始偏移量 |
integer | $count | 查询的数量 |
boolean | $effective | 是否仅查询生效的规则 |
payConfirm(string $card_id, integer $quantity, string $order_id) : array
确认兑换库存接口
string | $card_id | 需要来兑换库存的card_id |
integer | $quantity | 本次需要兑换的库存数目 |
string | $order_id | 仅可以使用上面得到的订单号,保证批价有效性 |