> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CustomerEventLoyaltyDetails

> What a loyalty points event is about: every `LOYALTY_*` type. Each field is null when the stored event doesn't have it.

**adjustments** `[\[CustomerEventLoyaltyAdjustment!\]](/docs/api-reference/v3/reference/events/customer-event-loyalty-adjustment)`

The promotion adjustments applied to the earned points. Set for the earn types.

**fields**

**amount** `Float!` *required*

The multiplier or the points added, by `type`.

**reason** `[CustomerEventLoyaltyAdjustmentReason!](/docs/api-reference/v3/reference/events/customer-event-loyalty-adjustment-reason)` *required*

Why the points were adjusted.

**type** `[CustomerEventLoyaltyAdjustmentType!](/docs/api-reference/v3/reference/events/customer-event-loyalty-adjustment-type)` *required*

How the points were adjusted.

**basePoints** `Int`

The points the earning rule gave before any adjustment. Set for the earn types.

**earningRule** `[CustomerEventLoyaltyEarningRule](/docs/api-reference/v3/reference/events/customer-event-loyalty-earning-rule)`

The earning rule that gave the points. Set for earns.

**expiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the earned points expire. Set for the earn types.

**orderId** `ID`

The order the points relate to, which `order(id:)` reads. Set for purchase earns, redemptions and order cancellations.

**points** `Int`

The points the shopper's balance changed by: positive for points given, negative for points taken.

**reason** `String`

The reason the store gave for a manual adjustment, as it wrote it. Set for `LOYALTY_MANUAL_ADJUSTMENT`.

**returnId** `ID`

The return the points relate to, which `return(id:)` reads. Set for return refunds and clawbacks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.