Requires write_order access scope. More access scope
The Full Order Refund API processes a complete refund for an order, including all items, shipping, and applicable taxes. It also provides detailed information about the refunded order.
This API is especially useful for:
Automating full refunds for customer orders.
Tracking refund details, including shipping and taxes.
Managing customer refunds and ensuring accurate records for financial reporting.
Additional custom fields for the customer in a key-value format.
Error Response
Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.
Field
Type
Example
Description
errors
Array
[ "file number error"]
A list of errors encountered during the request processing.
Field
Type
Example
Description
error
String
"store is not active"
Indicates an error encountered during the process
Error Detail
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 Request
Unauthorized
The request is missing valid authentication credentials or the credentials provided are invalid.
Unauthorized
422
Unprocessable Entity
ID is invalid or empty
"Invalid ID"
404
Not Found
The Id provided is not found
"Order not found"
406
Not Acceptable
Current order can not finish after-sale.
"After-sales is not included in current order."
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!