企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

电子发票 → [发票状态] 批量更新发票状态

AI-generated

Summary

Set one reimbursement status for a batch of WeCom electronic invoices belonging to a specified user. Provide the invoices as form entries or as an invoice_list JSON array; the operation submits the batch as a transaction, so any invoice failure rolls back the batch.

Inputs

  • OpenID (required) — The WeCom user OpenID. Every invoice in the batch must belong to this user.
  • 发票状态 (required) — Choose the status applied to the whole batch: initial/unlocked (can be submitted for reimbursement), locked (cannot be submitted again), or written off (removed from the user’s card wallet). Writing off is irreversible.
  • 发票列表输入方式 — Choose structured form input or JSON input; defaults to form.
  • 发票列表 (required) — In form mode, add at least one invoice with its card_id and encrypt_code. Both fields are required and together identify the invoice; all entries must belong to the supplied OpenID.
  • 发票列表 JSON (required) — In JSON mode, provide an invoice_list array whose entries each contain non-empty card_id and encrypt_code values. All invoices must belong to the supplied OpenID.

Output shape

A single WeCom API response item for the batch status update.

The supplied operation source is signature-level and does not show the response construction, so the exact response fields are unspecified. The batch is transactional: if any invoice fails, the entire batch rolls back.

Links

Discussion