Skip to main content

Fields

expiringPoints : ExpiringLoyaltyPointsType! required

The unspent points which have an expiry date.

The possible errors that can be raised are:

  • KT-CT-9228: The expiry window is invalid.
  • KT-CT-1113: Disabled GraphQL field requested.
Arguments
expiresBefore : Date

Only include points expiring before this date (exclusive), in the local time of the deployment. Defaults to no upper limit.

expiresFrom : Date

Only include points expiring on or after this date (inclusive), in the local time of the deployment. Cannot be later than expiresBefore. Defaults to no lower limit.

loyaltyPoints : Int

The number of loyalty points the account (or user with the given id) has.

totalMonetaryAmount : Int

The net monetary value of the loyalty points in the currency's sub-units.

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Example

{ "expiringPoints": ExpiringLoyaltyPointsType, "loyaltyPoints": 47, "totalMonetaryAmount": 73 }