Create return
Creates a new return.
Path Parameters |
---|
orderId int32 — REQUIREDThe Order ID. |
Request Body — REQUIRED Contains all information about a return. | |||||
---|---|---|---|---|---|
ShippingFeeRefund doubleHow much of the shipping fee to refund. Optional. | |||||
PaymentFeeRefund doubleHow much of the payment fee to refund. Optional. | |||||
ReturnFee doubleThe fee that the customer pays for the return. This value will be deducted from the total refund. Optional. | |||||
AdminUserId int32The id of the admin user that created the return. Leave blank if unsure. Optional. | |||||
Author stringThe name of person or system that created the return. Optional. | |||||
Reference stringAn custom reference for the return. Optional. | |||||
Description stringA describing text for the return. Optional. | |||||
SkipReturnEvents booleanIf set to true, no return events will be sent. | |||||
SkipProductEvents booleanIf set to true, no product events will be sent for restocked products. | |||||
SkipRefundEvents booleanIf set to true, no refund events will be sent. | |||||
RefundsRequireApproval booleanIf set to true, refunds will require approval before being sent. | |||||
ReturnRows object[]The list of return rows to create. Each return row represents an order row that is returned. Required.
|
Responses | ||||
---|---|---|---|---|
200 The id of the created return.
| ||||
400 Bad request.
| ||||
404 Not found.
|