# Modify the order price
At present, we support only lower prices, we do not support higher prices for the time being.
Each time the price is changed, the latest total price for each item (same sku_id) is defined, and if a item is not entered in the request, the item's price is not changed by default.
Orders may be revised no more than 50 times before payment, and all prior revisions will be void after each new revision is successful on the same order.
# Dxplaination of Interface Call Request
http请求方式:POST
https://api.weixin.qq.com/product/order/change_order_price?access_token=xxxxxxxxx
# Example of request parameters
{
"order_id": 123456,
"change_express" : true,
"express_fee" : 0,
"change_order_infos":
[
{
"product_id": 1234,
"sku_id" : 5678,
"change_price" : 300
}
]
}
# Examples of back-up
{
"errcode": 0,
"errmsg":"ok",
}
# Dxplaination of request parameters
参数 | type | Is it compulsory? | Introductions |
---|---|---|---|
order_id | number | yes | Order id |
change_express | bool | yes | Whether or not to modify shipping costs |
express_fee | number | no | The modified shipping price (change_express = true to specify, do not fill the default is 0), to be divided into units |
change_order_infos[].product_id | number | yes | Product ID |
change_order_infos[].sku_id | number | yes | Product sku |
change_order_infos[].change_price | number | yes | The modified total price of the item in the order, divided into units |
# Dxplaination of callback parameters
参数 | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Return code
返回码 | Error Type |
---|---|
-1 | System exceptions |
-2 | Token too long |
9401020 | The parameter is incorrect. |
9401021 | Call the api without permission |
101100 | Order is not an unpaid order and cannot be priced change |
108022 | The order has been priced more than 50 times. |
108021 | The revised price of a product or freight cost exceeds the original price |
108023 | The revised order price is 0 |
100002 | The order does not exist, please check that the order number and token are correct |