Create balance definition
Creates balance definition and returns information
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program Id
Request
Create Balance Definition Payload
name
Name of the balance definition.
unit
Unit of balance measurement.
balanceAvailabilityDurationModifier
Defines when the balance expires within the selected duration.
Allowed values:
balanceAvailabilityDurationUnit
Unit of time for balance validity.
Allowed values:
balanceAvailabilityDurationValue
Number of time units before the balance expires.
balanceExpirationDate
Fixed expiration date (dd/mm format) as an alternative to duration-based expiry.
balanceOptionAmountOvertakingStrategy
Defines whether partial credit is allowed when reaching max balance.
Allowed values:
balanceOptionCreditRounding
Defines rounding strategy for credit transactions.
Allowed values:
balanceOptionDebitRounding
Defines rounding strategy for debit transactions.
Allowed values:
description
Short description of the balance definition.
imageRef
URL of an optional image reference.
maxAmount
Maximum allowable balance amount.
maxCreditAmountLimit
Maximum credit allowed per operation.
maxDebitAmountLimit
Maximum debit allowed per operation.
meta
Additional metadata for the balance definition.
minAmount
Minimum allowable balance amount.
Response
Successful creation of balance definition
balanceAvailabilityDurationModifier
startOfPeriod depicts the balancy expiry on start of day/week/month/year. endOfPeriod depicts the balancy expiry on end of day/week/month/year
Allowed values:
balanceAvailabilityDurationUnit
Unit of time for the balance’s availability (e.g., day/week/month/year).
balanceAvailabilityDurationValue
Number of days/weeks/month/year for balance expiry
balanceExpirationDate
Date when the balance expires and can no longer be used, in dd/mm format. The balance will be expired when this date appears next in the calendar and only one of balanceExpirationDate or balance availability fields can be used.
balanceOptionAmountOvertakingStrategy
Partial enables partial credit of balance if maximum balance limit is reaching. Strict enables rejection of transaction if it will breach the max credit amount limit.
balanceOptionCreditRounding
Rounding strategy for credit transactions.
balanceOptionDebitRounding
Rounding strategy for debit transactions.
createdAt
Timestamp of balance definition creation.
deletedAt
Timestamp of balance definition deletion (nullable).
description
Short description of the balance definition.
id
Unique identifier for the balance definition.
imageRef
Optional image reference URL.
maxAmount
Maximum allowable balance.
maxCreditAmountLimit
Max credit allowed per operation.
maxDebitAmountLimit
Max debit allowed per operation.
meta
Additional metadata for the balance definition.
minAmount
Minimum allowable balance.
name
Name of the balance definition.
unit
Unit of balance (e.g., points, currency).
updatedAt
Timestamp of the last update.