Create balance limits
Creates balance limit and sends the created UUID along with the data
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program Id
bdid
Balance Definition Id
Request
Balance Definition Payload
constraintType
Defines whether the limit applies to transaction count or amount.
Allowed values:
durationUnit
Unit of time for which the limit is applicable.
Allowed values:
durationValue
Number of time units for the balance limit.
transactionType
Specifies whether the limit applies to credit or debit transactions.
Allowed values:
value
Maximum allowed value for the specified constraint type.
slidingSchedule
Determines if the limit resets on a rolling schedule.
Response
Successful creation of balance limit
createdAt
Timestamp of when the balance limit was created.
updatedAt
Timestamp of the last update to the balance limit.
balanceDefinitionId
balance definition ID
constraintType
Defines the type of constraint (e.g., transaction-based or amount-based).
durationUnit
Time unit for the balance limit (day, week, month, year).
durationValue
Number of time units the balance limit applies to.
id
Unique identifier for the balance limit.
slidingSchedule
Indicates if the limit resets periodically based on a sliding schedule.
transactionType
Specifies whether the limit applies to credit or debit transactions.
value
The maximum allowed value for the defined constraint.