⚠️ Please note: The refunds API is meant to be used only when you're not pushing orders via the orders API, e.g. orders are coming in via Shopware but the refunds are provided by an ERP system => Use refund API. Both refunds and orders can be provided via the orders API (see refundedLineItems).
pieces returned in total, 6 x wrong item, 2 x wrong size
[
{
id: "92e9e02c-fee2-11ed-be56-0242ac120002",
orderId: "2312231241",
createdAt: 1640979772,
updatedAt: 1650423242,
lineItems: [
{
"id": "1234124",
"lineItemId": "5234123423",
"reasonDescriptor": "Wrong Item",
"refundedQuantity": 6,
"createdAt": 1640979772,
"processedAt": 1650423242
},
{
"id": "1234125",
"lineItemId": "239058124",
"reasonDescriptor": "Wrong Size",
"refundedQuantity": 2,
"createdAt": 1640979772,
"processedAt": 1650423242
}
]
}
]