post https://{subdomain}.myshoplaza.com/openapi/2024-07/orders//refund
Select the product, set the refund amount for shipping and other fees, and specify the payment channel and amount for refund
🔒 Requires write_order access scope. More access scope
The Order Refund API processes order refunds, supports product selection, supports setting refund amounts for shipping and other charges, and supports specifying payment channels and refund amounts.
📘 Public Request Parameters
Parameter Type Required Description Example order_idstring Yes The unique ID of the order. 1232123
Field
Type
Required
Example
Description
refund_total
string
yes
100.00
The total refund amount. If refund_payments are specified, this value must equal the sum of all refund_payments amounts.
refund_shipping_total
string
no
10.00
The total shipping amount to be refunded.
refund_tip
string
no
5.00
The tip amount to be refunded.
refund_additional_total
string
no
15.00
The total amount for additional refunded charges.
refund_product_total
string
no
70.00
The total refund amount for the refunded products.
refund_line_items
array of LineItem
no
[{"line_item_id": "LI123", "quantity": 2}]
The items being refunded. Refund items. See LineItem for details.
refund_payments
array of RefundPayment
no
[{"payment_line_id": "PAY123", "refund_price": "50.00"}]
The payment methods used for the refund. See RefundPayment for details.
refund_additional_prices
array of RefundAdditionalPrices
no
[{"name": "Handling Fee", "price": "5.00"}]
Additional charges included in the refund. See RefundAdditionalPrices for details.
note
string
no
Refund for damaged items
Remark
Field Type Example Description line_item_idstring LI123Refund item ID quantityinteger 2Refund quantity waiting_ship_quantityinteger 1The refund quantity of waiting shipping goods return_inventoryboolean trueWhether to return inventory
Field Type Example Description namestring Handling FeeAdditional price name pricestring 5.00Additional price refund amount
Field Type Example Description payment_line_idstring PAY123Refund payment channel ID refund_pricestring 50.00Refund amount
📘 Public Response Parameters
Field Type Example Description codestring SUCCESSError code messagestring Refund processed successfullyError message dataobject { "refund_record_id": "R12345", "post_sale_id": "A67890" }Order refund response data. See RefundOrderResponse_Data for details.
Field Type Example Description refund_record_idstring R12345Refund record ID post_sale_idstring A67890After-sales ID
Field Type Description Example codestring The error code indicating the type of issue. InvalidParametermessagestring A detailed message describing the error. Order id is required.
Status Code Message Possible Reason Example Response 400 Bad Request Invalid input format or request structure (e.g., missing required fields or incorrect data types). Bad RequestUnauthorized The request is missing valid authentication credentials or the credentials provided are invalid. Unauthorized