public interface MarketingFavorService
微信支付营销代金券接口
限定符和类型 | 方法和说明 |
---|---|
FavorCouponsCreateResult |
createFavorCouponsV3(String openid,
FavorCouponsCreateRequest request)
代金券接口-发放代金券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
|
FavorStocksCreateResult |
createFavorStocksV3(FavorStocksCreateRequest request)
代金券接口-创建代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks
|
FavorCouponsUseResult |
decryptNotifyDataResource(UseNotifyData data) |
FavorCouponsGetResult |
getFavorCouponsV3(String couponId,
String appid,
String openid)
代金券接口-查询代金券详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_6.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons/{coupon_id}
|
FavorStocksItemsGetResult |
getFavorStocksItemsV3(String stockId,
String stockCreatorMchid,
Integer offset,
Integer limit)
代金券接口-查询代金券可用单品API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_8.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/items
|
FavorStocksMerchantsGetResult |
getFavorStocksMerchantsV3(String stockId,
String stockCreatorMchid,
Integer offset,
Integer limit)
代金券接口-查询代金券可用商户API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_7.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/merchants
|
FavorStocksFlowGetResult |
getFavorStocksRefundFlowV3(String stockId)
代金券接口-下载批次退款明细API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_11.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/refund-flow
|
FavorStocksFlowGetResult |
getFavorStocksUseFlowV3(String stockId)
代金券接口-下载批次核销明细API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_10.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/use-flow
|
FavorStocksGetResult |
getFavorStocksV3(String stockId,
String stockCreatorMchid)
代金券接口-查询批次详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_5.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}
|
UseNotifyData |
parseNotifyData(String data,
SignatureHeader header) |
FavorStocksPauseResult |
pauseFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-暂停代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_13.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/pause
|
FavorCouponsQueryResult |
queryFavorCouponsV3(FavorCouponsQueryRequest request)
代金券接口-根据商户号查用户的券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_9.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
|
FavorStocksQueryResult |
queryFavorStocksV3(FavorStocksQueryRequest request)
代金券接口-条件查询代金券批次列表API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_4.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks
|
FavorStocksRestartResult |
restartFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-重启代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_14.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/restart
|
FavorCallbacksSaveResult |
saveFavorCallbacksV3(FavorCallbacksSaveRequest request)
代金券接口-设置消息通知地址API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_12.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/callbacks
|
FavorStocksStartResult |
startFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-激活代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_3.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/start
|
FavorStocksCreateResult createFavorStocksV3(FavorStocksCreateRequest request) throws WxPayException
代金券接口-创建代金券批次API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_1.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks
request
- 请求对象WxPayException
- the wx pay exceptionFavorCouponsCreateResult createFavorCouponsV3(String openid, FavorCouponsCreateRequest request) throws WxPayException
代金券接口-发放代金券API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_2.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
openid
- 用户openidrequest
- 请求对象WxPayException
- the wx pay exceptionFavorStocksStartResult startFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException
代金券接口-激活代金券批次API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_3.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/start
stockId
- 批次号request
- 请求对象WxPayException
- the wx pay exceptionFavorStocksQueryResult queryFavorStocksV3(FavorStocksQueryRequest request) throws WxPayException
代金券接口-条件查询代金券批次列表API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_4.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks
request
- 请求对象WxPayException
- the wx pay exceptionFavorStocksGetResult getFavorStocksV3(String stockId, String stockCreatorMchid) throws WxPayException
代金券接口-查询批次详情API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_5.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}
stockId
- 批次号stockCreatorMchid
- 创建批次的商户号WxPayException
- the wx pay exceptionFavorCouponsGetResult getFavorCouponsV3(String couponId, String appid, String openid) throws WxPayException
代金券接口-查询代金券详情API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_6.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons/{coupon_id}
couponId
- 代金券idappid
- 公众账号IDopenid
- 用户openidWxPayException
- the wx pay exceptionFavorStocksMerchantsGetResult getFavorStocksMerchantsV3(String stockId, String stockCreatorMchid, Integer offset, Integer limit) throws WxPayException
代金券接口-查询代金券可用商户API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_7.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/merchants
stockId
- 批次号stockCreatorMchid
- 创建批次的商户号offset
- 分页大小limit
- 创建批次的商户号WxPayException
- the wx pay exceptionFavorStocksItemsGetResult getFavorStocksItemsV3(String stockId, String stockCreatorMchid, Integer offset, Integer limit) throws WxPayException
代金券接口-查询代金券可用单品API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_8.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/items
stockId
- 批次号stockCreatorMchid
- 创建批次的商户号offset
- 分页大小limit
- 创建批次的商户号WxPayException
- the wx pay exceptionFavorCouponsQueryResult queryFavorCouponsV3(FavorCouponsQueryRequest request) throws WxPayException
代金券接口-根据商户号查用户的券API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_9.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
request
- 请求对象WxPayException
- the wx pay exceptionFavorStocksFlowGetResult getFavorStocksUseFlowV3(String stockId) throws WxPayException
代金券接口-下载批次核销明细API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_10.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/use-flow
stockId
- 批次号WxPayException
- the wx pay exceptionFavorStocksFlowGetResult getFavorStocksRefundFlowV3(String stockId) throws WxPayException
代金券接口-下载批次退款明细API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_11.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/refund-flow
stockId
- 批次号WxPayException
- the wx pay exceptionFavorCallbacksSaveResult saveFavorCallbacksV3(FavorCallbacksSaveRequest request) throws WxPayException
代金券接口-设置消息通知地址API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_12.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/callbacks
request
- 请求对象WxPayException
- the wx pay exceptionFavorStocksPauseResult pauseFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException
代金券接口-暂停代金券批次API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_13.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/pause
request
- 请求对象WxPayException
- the wx pay exceptionFavorStocksRestartResult restartFavorStocksV3(String stockId, FavorStocksSetRequest request) throws WxPayException
代金券接口-重启代金券批次API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_14.shtml 接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/restart
request
- 请求对象WxPayException
- the wx pay exceptionUseNotifyData parseNotifyData(String data, SignatureHeader header) throws WxPayException
WxPayException
FavorCouponsUseResult decryptNotifyDataResource(UseNotifyData data) throws WxPayException
WxPayException
Copyright © 2023. All rights reserved.