Admin API / Types
ProductVariantQuantityChange
ObjectOne recorded change to a variant's stock.
type ProductVariantQuantityChangeFields
| Field | Type | Description |
|---|---|---|
actor | User | The member who made the change through adjustProductVariantQuantities or refundOrder. Null for other sources, or when the member is not readable. Reading the user's fields needs the admin:account:read scope. |
createdAt | DateTime! | When District recorded the change. |
delta | Int! | Units added, or removed when negative. |
quantityAfter | NonNegativeInt! | Units in stock after the change. |
reason | String | For ADJUSTMENT, the reason given to adjustProductVariantQuantities. For REFUND, RETURNED when the refund reason is BUYER_RETURN, else CANCELLED. Null for other sources. |
source | ProductVariantQuantityChangeSource! | What made the change. |