Skip to content

修改订单金额

完结订单总金额与实际金额不符时,可通过该接口修改订单金额。前置条件:服务订单支付状态为待支付 官方文档

js
wxpay
.
v3
.
payscore
.
serviceorder
.
_out_order_no_
.
modify
.
post
({
appid
,
service_id
,
post_payments
,
post_discounts
,
total_amount
,
reason
,
}, {
out_order_no
})
.
then
(
({
data
: {
out_order_no
,
appid
,
service_id
,
post_payments
,
post_discounts
,
time_range
,
location
,
service_introduction
,
risk_fund
,
attach
,
notify_url
,
mchid
,
state
,
state_description
,
order_id
,
total_amount
,
need_collection
,
collection
,
}, }) => ({
out_order_no
,
appid
,
service_id
,
post_payments
,
post_discounts
,
time_range
,
location
,
service_introduction
,
risk_fund
,
attach
,
notify_url
,
mchid
,
state
,
state_description
,
order_id
,
total_amount
,
need_collection
,
collection
,
}) )

Released under the MIT License. (SITEMAP)