Skip to content

Get Refund

Returns a single refund with the full totals breakdown (including the adjustment refund/fee), the order/customer context, payment info, the billing & shipping addresses, and the refunded line items — no follow-up calls required. Requires the sales.refunds.view permission.

Endpoint

EndpointMethod
/api/admin/refunds/{id}GET

Response fields

FieldTypeDescription
idIntegerRefund id.
orderIdIntegerParent order id.
orderIncrementIdStringHuman-facing order number.
stateStringRefund state (e.g. refunded).
emailSentBooleanWhether the refund email was sent.
totalQtyIntegerTotal quantity refunded.

Currency codes

orderCurrencyCode, baseCurrencyCode, channelCurrencyCode.

Totals

Each money total is provided in the order currency and the store's base currency with a formatted* string; sub-total and shipping also expose incl-tax variants.

FieldTypeDescription
subTotal / formattedSubTotal (+ base*, *InclTax, base*InclTax)Number / StringRefunded line-items subtotal.
grandTotal / formattedGrandTotal (+ base*)Number / StringRefund grand total.
taxAmount (+ base*, formatted*)Number / StringTax refunded.
discountAmount (+ base*, formatted*)Number / StringDiscount refunded.
shippingAmount (+ base*, *InclTax, base*InclTax, formatted*)Number / StringShipping refunded.
shippingTaxAmount (+ base*, formatted*)Number / StringTax on refunded shipping.
adjustmentRefund (+ base*, formatted*)Number / StringExtra amount refunded beyond line items.
adjustmentFee (+ base*, formatted*)Number / StringAmount withheld from the refund.

Status, timestamps & order/customer context

createdAt, updatedAt, billedTo, orderStatus, orderStatusLabel, orderDate, channelName, customerName, customerEmail.

Payment info

FieldTypeDescription
paymentMethodStringPayment method code of the order.
paymentTitleStringHuman-readable payment method title.
shippingMethodStringShipping method code.
shippingTitleStringHuman-readable shipping method title.

Addresses (billingAddress, shippingAddress)

Objects with: id, addressType, firstName, lastName, companyName (nullable), address, city, state, country, postcode, email, phone.

Line items (items)

Array of objects, each with: id, orderItemId, sku, name, qty, price/formattedPrice, basePrice, basePriceInclTax, total/formattedTotal, baseTotal, baseTotalInclTax, taxAmount/formattedTaxAmount, discountAmount/formattedDiscountAmount, productId, productType, baseImageUrl, additional.

Released under the MIT License.