WeChat.Card.consume_code

You're seeing just the function consume_code, go back to WeChat.Card module for more information.
Link to this function

consume_code(client, card_code)

Specs

consume_code(WeChat.client(), card_code()) :: WeChat.response()

核销Code接口 - 官方文档

消耗code接口是核销卡券的唯一接口,开发者可以调用当前接口将用户的优惠券进行核销,该过程不可逆。

Link to this function

consume_code(client, card_id, card_code)

Specs

consume_code(WeChat.client(), card_id(), card_code()) :: WeChat.response()

核销Code接口 - 官方文档

消耗code接口是核销卡券的唯一接口,开发者可以调用当前接口将用户的优惠券进行核销,该过程不可逆。

卡券ID(card_id): 创建卡券时use_custom_code填写true时必填。非自定义Code不必填写