Finish refund
POST/openapi/2026-01/orders/:order_id/refund/finish
Marks the order's in-progress refund records as refunded successfully; afterwards the order is partially refunded or fully refunded.
This endpoint applies only to orders paid through a custom payment channel or the test payment channel (bogus).
Request
Path Parameters
Order ID
- application/json
- Body
- Example
Bodyrequired
After-sales (post-sale) record ID
Refund record ID
Time when the third-party refund completed, in RFC3339 (e.g., 2018-11-02T12:30:10Z)
Refund transaction number
Refund payment channel
extra_info object
Extra information attached to the refund record
Additional POS information
{
"post_sale_id": "string",
"refund_record_id": "string",
"refund_time": "string",
"transaction_number": "string",
"payment_channel": "string",
"extra_info": {
"pos": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
pending: refund in progressfinished: refund completedfailed: refund failed- Array [
- ]
- Array [
pending: refund in progressfinished: refund completedfailed: refund failed- ]
- Array [
- ]
error code
error message
data object
Order ID
After-sales (post-sale) record ID
refund_record object
Refund record
Refund record ID
Refund price
Shipping refund
Refund Shipping Tax
Refund method
Refund status:
Note
Time when the refund record was created (e.g., 2018-11-02T12:30:10Z)
Time when the refund record was last updated (e.g., 2018-11-02T12:30:10Z)
refund_line_items object[]
List of refund line items
ID of the order line item being refunded
Refund quantity
Tax
Discount
Subtotal
Total
Delete quantity
payment_details object[]
Payment details
Refund record ID
Payment line ID
Payment channel
Payment method
Refund price
Refund status:
Time when the refund was completed
Additional total
additional_prices object[]
Additional prices
Name of the additional charge
Amount of the additional charge
Business ID
Custom Charge Name
Tip refund amount
Order ID
extra_info object
Extra information attached to the refund record
Additional POS information
{
"code": "string",
"message": "string",
"data": {
"order_id": "string",
"post_sale_id": "string",
"refund_record": {
"id": "string",
"refund_price": "string",
"refund_shipping": "string",
"refund_shipping_tax": "string",
"refund_method": "string",
"refund_status": "string",
"note": "string",
"created_at": "string",
"updated_at": "string",
"refund_line_items": [
{
"line_item_id": "string",
"refund_quantity": 0,
"tax": "string",
"discount": "string",
"sub_total": "string",
"total": "string",
"delete_quantity": 0
}
],
"payment_details": [
{
"id": "string",
"payment_line_id": "string",
"payment_channel": "string",
"payment_method": "string",
"refund_price": "string",
"refund_status": "string",
"finished_at": "string"
}
],
"additional_total": "string",
"additional_prices": [
{
"name": "string",
"price": "string",
"biz_id": "string",
"fee_title": "string"
}
],
"refund_tip": "string",
"order_id": "string",
"extra_info": {
"pos": "string"
}
}
}
}