Spend Points

Spend points from a specific user

Point Definition
Select required
Default:
None

Choose the point definition you want to spend points for

User
Select required
Default:
None

The username of the user you want to spend points from (supports variables)

platform
String required
Default:
%userType%

The platform of the user you want to spend points from (supports variables)

Amount
number required
Default:
0

The amount of points to spend from the user (supports variables)

Break action sequence if user has insufficient points
checkbox
Default:
true

If checked, the action sequence will be broken if the user has insufficient points

Destination Variable
String
Default:
userPoints

The argument variable name to store the users points after spending (supports variables)

public bool SpendPoints(string userName, Platform platform, Guid pointId, long cost)
Read more in API > C# > Methods > Core > Points > Users > Spend Points