Skip to main content
Refunds
Frank Birzle avatar
Written by Frank Birzle
Updated over a week ago

⚠️ 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

  • orderID needs to match the id of the corresponding Order of the as well as the lineItemId needs to match the id of the corresponding LineItem that was returned.


[
{
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
}
]
}
]

Did this answer your question?