refunds/create webhook event quantity appears to be incorrect for partial cancels

New Member
1 0 0

If a customer orders, for example, two units of one item, and then cancels one of those two units, I would expect the "quantity" field in the refunds/create event to reflect the fact that just one unit was cancelled. However, in this case, I'm observing that the quantity field for the cancelled item in the "refund_line_items" array is two, not one...


In the case of a cancel where only some, but not all, of the units for an item were cancelled, how should I identify the quantity of units actually cancelled based on the refunds/create webhook event?