Creates refund
Creates a new refund.
| Path Parameters |
|---|
orderId int32 — REQUIREDThe order id. |
| Request Body — REQUIRED Information about the refund. |
|---|
OrderRowId int32The order row that this refund row represents. Commonly used with returns. Optional. |
Reference stringAn custom reference for the refund. Optional. |
Description stringA description of the refund. Optional. |
Author stringThe name of author of the refund. Optional. |
RefundAmount doubleThe refund amount. Required. |
ToBalance booleanIf true, will refund the amount to the customer's balance. |
Settled booleanIf true, the refund will be marked as settled immediatley and won't trigger a refund event. This can be useful if the refund needs to be created retroactively, or when the money transacation has already occured. |
RefundType int32Possible values: [ What kind of source transaction the refund is derived from.
0 = Default. A regular refund of the order or order row.
1 = InstanceCost. Return cost type, used in drawing cost for instance.
2 = Shipping. Refund shipping type, used to refund shipping.
3 = InvoiceFee. Refund invoice fee. |
SkipRefundEvents booleanIf true, will skip sending refund events. |
RefundsRequireApproval booleanIf set to true, refunds will require approval before being sent. Only applies if Settled is false. |
| Responses | ||||
|---|---|---|---|---|
200The id of the created refund.
| ||||
400Bad request.
| ||||
404Not found.
|