Loyalty memberships
Get all loyalty memberships
Returns all loyalty memberships of the enterprise, optionally filtered by specific loyalty membership identifiers, activity states, or other filter parameters. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/loyaltyMemberships/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ChainIds
array of string
optional, max 1000 items
Unique identifiers of the chain. If not specified, the operation returns data for all chains within scope of the Access Token.
LoyaltyMembershipIds
array of string
optional, max 1000 items
Unique identifiers of Loyalty memberships.
AccountIds
array of string
optional, max 1000 items
ActivityStates
array of string Activity state
optional
Whether to return only active, only deleted or both records.
Activity state
Active
- active records (the validity might be restricted by another parameter i.e. interval).Deleted
- deleted records.
Loyalty membership state
New
Pending
Enrolled
Canceled
Declined
...
Response
Cursor
string
optional
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
Loyalty membership
Id
string
required
Unique identifier of the loyalty membership.
ChainId
string
optional
Unique identifier of the chain.
LoyaltyProgramId
string
required
Unique identifier of the loyalty program.
AccountId
string
required
Unique identifier of the customer account.
Code
string
optional
Code of the loyalty membership.
IsPrimary
boolean
required
Defines the primary loyalty membership.
Points
integer
optional
The loyalty points for the account in that membership.
ExpirationDate
string
optional
Expiration date of the loyalty membership in UTC timezone in ISO 8601 format.
Url
string
optional
Url of the loyalty membership.
LoyaltyTierId
string
optional
Unique identifier of the loyalty tier.
Profile data
Profile data discriminator
Personal
Enterprise
Platform
Static
Integration
...
Enterprise profile data
ProfileId
string
required
Unique identifier of the profile.
Add loyalty memberships
Adds loyalty memberships to the enterprise. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/loyaltyMemberships/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ChainId
string
optional
Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.
LoyaltyMemberships
array of Loyalty membership parameters
required, max 1000 items
Loyalty memberships to be added.
Loyalty membership parameters
LoyaltyProgramId
string
required
Unique identifier of the loyalty program.
AccountId
string
required
Unique identifier of the customer account.
Code
string
optional
Code of the loyalty membership.
IsPrimary
boolean
required
Defines the primary loyalty membership for the account.
Points
integer
optional
The loyalty points for the account in that membership.
ExpirationDate
string
optional
Expiration date of the loyalty membership in UTC timezone in ISO 8601 format.
Url
string
optional
URL of the loyalty membership in external loyalty system.
LoyaltyTierId
string
optional
Unique identifier of the loyalty tier.
Response
Update loyalty memberships
Updates information about the specified loyalty memberships. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/loyaltyMemberships/update
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ChainId
string
optional
Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.
LoyaltyMembershipUpdates
array of Loyalty membership update parameters
required, max 1000 items
Loyalty memberships to be updated.
Loyalty membership update parameters
LoyaltyMembershipId
string
required
Unique identifier of the loyalty membership.
LoyaltyProgramId
optional
Unique identifier of the loyalty program (or null
if the program should not be updated).
IsPrimary
optional
Boolean value defining the primary loyalty membership for the account. (or null
if the value should not be updated).
Points
optional
The loyalty points the account has in the loyalty membership (or null
if the points should not be updated).
Code
optional
Code of the loyalty membership. (or null
if the code should not be updated).
ExpirationDate
optional
Expiration date of the loyalty membership in UTC timezone in ISO 8601 format (or null
if the date should not be updated).
Url
optional
URL of the loyalty membership (or null
if the URL should not be updated).
LoyaltyTierId
optional
Unique identifier of the loyalty tier (or null
if the tier should not be updated).
State
optional
State of the loyalty membership, (or null
if the state should not be updated).
Loyalty membership state update
Response
Delete loyalty memberships
Deletes loyalty memberships.
Request
[PlatformAddress]/api/connector/v1/loyaltyMemberships/delete
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
LoyaltyMembershipIds
array of string
required, max 1000 items
Unique identifier of the loyalty memberships to be deleted.
Response
Last updated