code: def invalid_code(self, code, card_id=None):
          
          card_data = {
              'code': code
          }
          if card_id:
              card_data['card_id'] = card_id
          return self._post(
              'card/code/unavailable',
              data=card_data
          )
docs: 设置卡券失效