企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

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

Actions248

小程序对外收款 → [支付] 小程序下单

AI-generated

Summary

Creates a WeCom mini-program payment order by sending the configured merchant, order, payer, and store details to the payment API. Optional fields add notification, promotion, expiry, or other request details.

Inputs

  • mchid (required) — The sub-merchant ID.
  • appid (required) — The sub-merchant's public account or mini-program AppID.
  • out_trade_no (required) — The merchant's internal order number.
  • description (required) — Description of the goods or service.
  • amount_total (required) — Order amount in fen; must be at least 1.
  • payer_openid (required) — The payer's OpenID in the mini-program.
  • payer_client_ip (required) — The user's terminal IP address; defaults to 127.0.0.1.
  • store_id (required) — The store number.
  • amount_currency — Currency type; defaults to CNY.
  • notify_url — URL for payment result notifications.
  • scenekey — Optional scene key for member performance statistics.
  • attach — Extra data returned unchanged in the payment notification.
  • goods_tag — Promotion tag for coupons or discounts.
  • time_expire — Transaction expiry time in RFC3339 format.
  • detail_json — JSON containing payment discount details; defaults to an empty object.
  • advancedJson — Optional JSON fields merged into the request body. The form values take precedence for core order identity, amount, payer, and store fields.

Output shape

A single item containing the payment API response for the created order.

The operation submits an order-creation request; the exact response fields depend on the WeCom payment API.

Links

Discussion