Create Loyalty Transaction
Create a loyalty transaction to update account balances.
POST
Create a loyalty transaction to update account balances.
Loading code example
Loading code example
Authorizations
apiKeyAuthstringheaderrequired
API key passed in the header.
Body
Body
descriptionstringrequiredDescription of the loyalty transaction
entriesarray<object>requiredArray of transaction entries
entries.walletAddressstringThe wallet address of the user
entries.direction"credit" | "debit"Direction of the transaction entry for this wallet address
Allowed values:
"credit" | "debit"entries.amountnumberrequiredTransaction entry amount.
entries.idempotencyKeystringIdempotency key for the transaction entry. Creation will fail if already exists for this wallet address.
Length:
<= 32entries.loyaltyCurrencyIdstring<uuid>Unique identifier for the loyalty currency for the wallet. Can only use entry-level currency or transaction-level currency.
loyaltyCurrencyIdstring<uuid>Unique identifier for the loyalty currency
websiteIdstring<uuid>organizationIdstring<uuid>Response
application/json
200
idstring<uuid>requireddescriptionstringrequiredentriesarray<object>requiredentries.walletAddressstringrequiredentries.amountnumberrequiredentries.direction"credit" | "debit"requiredDirection of the transaction entry
Allowed values:
"credit" | "debit"entries.idempotencyKeystringcreatedAtstringrequiredupdatedAtstringrequired