撤单api文档

master
yixian 3 years ago
parent 85858e7526
commit d6de6b4809

@ -1014,6 +1014,35 @@ paths:
description: 支付宝线上汇率
example:
4.411111
/gateway/partners/{partner_code}/orders/{partner_order_id}/revoke:
put:
summary: 发起撤单
description: 撤销订单,若订单未支付,系统会尝试拦截支付行为,若拦截失败,在确认支付的同时会自动退款。若订单已支付,系统将全额退款
tags:
- QRCode
- JSAPI
- MobileH5
- MiniProgram
- CardPayment
- ChannelGateway
- RetailPay
- CB Bank
- SDK Payment
parameters:
- name: partner_code
in: path
required: true
- name: partner_order_id
in: path
required: true
description: 需要撤销订单的单号
response:
200:
description: Order Status
content:
application/json:
schema:
$ref: 'components_order.yml#/orderStatus'
/gateway/partners/{partner_code}/orders/{partner_order_id}/refunds/{partner_refund_id}:
put:
summary: 发起退款

@ -1038,6 +1038,38 @@ paths:
description: Alipay online exchange rate
example:
4.411111
/gateway/partners/{partner_code}/orders/{partner_order_id}/revoke:
put:
summary: Revoke Order
description: |
Revoke the order. If order was not paid, system will try to stop paying from customer.
If failed, system will make full refund after confirmed paid.
If order was paid already, system will make full refund directly
tags:
- QRCode
- JSAPI
- MobileH5
- MiniProgram
- CardPayment
- ChannelGateway
- RetailPay
- CB Bank
- SDK Payment
parameters:
- name: partner_code
in: path
required: true
- name: partner_order_id
in: path
required: true
description: 需要撤销订单的单号
response:
200:
description: Order Status
content:
application/json:
schema:
$ref: 'components_order.yml#/orderStatus'
/gateway/partners/{partner_code}/orders/{partner_order_id}/refunds/{partner_refund_id}:
put:
summary: Refund Order

Loading…
Cancel
Save