Authorizations
Path Parameters
Body
Body
Name of the loyalty rule
1
"Daily Rewards Program"
End time for the loyalty rule
"2024-12-31T23:59:00Z"
Reward amount for the loyalty rule
Optional description of the loyalty rule
"This rule rewards users daily for specific actions."
Start time for the loyalty rule
"2024-01-01T00:00:00Z"
Effective start time of the rule
"2024-01-01T00:00:00Z"
Effective end time of the rule
"2024-12-31T23:59:00Z"
URL for uploading custom rewards via CSV
"https://example.com/rewards.csv"
API URL for custom rewards integration
"https://api.example.com/rewards"
Optional subscription id for the rule
"sub12345"
Additional metadata for the loyalty rule
Blockchain network where the rule will apply
abstract
, abstractTestnet
, apechain
, arbitrum
, avalanche
, avalancheFuji
, base
, baseSepolia
, berachain
, berachainArtio
, berachainBepolia
, binance
, bscTestnet
, campTestnet
, fantom
, fantomTestnet
, flowMainnet
, mainnet
, nexusTestnet
, optimism
, polygon
, polygon_mumbai
, skaleNebula
, solana
, sophon
, sophonTestnet
, sui
, superseed
, superseedSepolia
, vanar
, xai
, zksync
, coti
, cotiTestnet
, morph
, morphTestnet
, morphHolesky
, ultra
, ultraTestnet
, nitrograph
, sepolia
, optimism_sepolia
, arbitrumSepolia
, goerli
, optimism_goerli
, arbitrumGoerli
, basecamp
"mainnet"
Blockchain address of the associated collection
"0x1234567890abcdef1234567890abcdef12345678"
List of associated collections
Whether to hide this rule in the user interface
false
Whether to show this rule before the start time
false
Whether this rule is required for participation
true
ID for associated OAuth credentials
"123e4567-e89b-12d3-a456-426614174000"
Type of reward issued by this rule
points
, multiplier
, badge
"points"
Frequency of the rule execution
none
, once
, daily
, weekly
, monthly
, immediately
"daily"
Time interval for recurring rule execution
daily
, weekly
, monthly
, once
, custom
, every_message
"weekly"
ID of the rule group section to associate with the rule
"123e4567-e89b-12d3-a456-426614174005"
URL of the media to be displayed
"https://example.com/media.png"
The maximum amount of points a user can earn per interval. Available for the smart contract and external rules.
100
The interval for the max amount. Available for the smart contract and external rules.
daily
, weekly
, monthly
, lifetime
"daily"
ID of the external integration
"123e4567-e89b-12d3-a456-426614174005"
URL of the Shopify store
"https://example.com"
Response
200
Name of the loyalty rule
1
"Daily Rewards Program"
End time for the loyalty rule
"2024-12-31T23:59:00Z"
Reward amount for the loyalty rule
Optional description of the loyalty rule
"This rule rewards users daily for specific actions."
Start time for the loyalty rule
"2024-01-01T00:00:00Z"
Effective start time of the rule
"2024-01-01T00:00:00Z"
Effective end time of the rule
"2024-12-31T23:59:00Z"
URL for uploading custom rewards via CSV
"https://example.com/rewards.csv"
API URL for custom rewards integration
"https://api.example.com/rewards"
Optional subscription id for the rule
"sub12345"
Additional metadata for the loyalty rule
Blockchain network where the rule will apply
abstract
, abstractTestnet
, apechain
, arbitrum
, avalanche
, avalancheFuji
, base
, baseSepolia
, berachain
, berachainArtio
, berachainBepolia
, binance
, bscTestnet
, campTestnet
, fantom
, fantomTestnet
, flowMainnet
, mainnet
, nexusTestnet
, optimism
, polygon
, polygon_mumbai
, skaleNebula
, solana
, sophon
, sophonTestnet
, sui
, superseed
, superseedSepolia
, vanar
, xai
, zksync
, coti
, cotiTestnet
, morph
, morphTestnet
, morphHolesky
, ultra
, ultraTestnet
, nitrograph
, sepolia
, optimism_sepolia
, arbitrumSepolia
, goerli
, optimism_goerli
, arbitrumGoerli
, basecamp
"mainnet"
Blockchain address of the associated collection
"0x1234567890abcdef1234567890abcdef12345678"
List of associated collections
Whether to hide this rule in the user interface
false
Whether to show this rule before the start time
false
Whether this rule is required for participation
true
ID for associated OAuth credentials
"123e4567-e89b-12d3-a456-426614174000"
Type of reward issued by this rule
points
, multiplier
, badge
"points"
Frequency of the rule execution
none
, once
, daily
, weekly
, monthly
, immediately
"daily"
Time interval for recurring rule execution
daily
, weekly
, monthly
, once
, custom
, every_message
"weekly"
ID of the rule group section to associate with the rule
"123e4567-e89b-12d3-a456-426614174005"
URL of the media to be displayed
"https://example.com/media.png"
The maximum amount of points a user can earn per interval. Available for the smart contract and external rules.
100
The interval for the max amount. Available for the smart contract and external rules.
daily
, weekly
, monthly
, lifetime
"daily"
ID of the external integration
"123e4567-e89b-12d3-a456-426614174005"
URL of the Shopify store
"https://example.com"