Create a loyalty currency
Create a loyalty currency
Create a loyalty currency
Authorizations
API key passed in the header.
Body
Body
organizationIdstring<uuid>requiredUnique identifier for the organization
websiteIdstring<uuid>requiredUnique identifier for the website
imageUrlstringURL of the image; must start with AWS S3 asset URL base
namestringrequiredName of the loyalty currency
symbolstringrequiredSymbol representing the loyalty currency
decimalsnumberrequiredNumber of decimal places for the currency
x >= 0apiGetUrlstringOptional API GET URL for fetching data
>= 1apiGetTransactionEntryUrlstringOptional API GET URL for fetching transaction entry data
>= 1apiPostUrlstringOptional API POST URL for sending data
>= 1sortIdnumberOptional sorting identifier
apiAuthType"none" | "basic" | "bearer" | "apiKey"Type of authentication used for API
"none" | "basic" | "bearer" | "apiKey"apiAuthKeystringAuthentication key for API
>= 1apiAuthValuestringAuthentication value for API
>= 1Response
200
idstring<uuid>requiredUnique identifier for the loyalty currency
organizationIdstring<uuid>requiredUnique identifier for the organization
websiteIdstring<uuid>requiredUnique identifier for the website
imageUrlstringrequiredURL of the image
namestringrequiredName of the loyalty currency
symbolstringrequiredSymbol representing the loyalty currency
decimalsnumberrequiredNumber of decimal places for the currency
x >= 0createdByIdstring<uuid>requiredID of the user who created the currency
createdAtstring<date-time>requiredTimestamp when the currency was created
updatedAtstring<date-time>requiredTimestamp when the currency was last updated
apiGetUrlstringrequiredAPI GET URL for fetching data
apiGetTransactionEntryUrlstringrequiredAPI GET URL for fetching transaction entry data
apiPostUrlstringrequiredAPI POST URL for sending data
apiAuthType"none" | "basic" | "bearer" | "apiKey"requiredType of authentication used for API
"none" | "basic" | "bearer" | "apiKey"apiAuthKeystringrequiredAuthentication key for API
apiAuthValuestringrequiredAuthentication value for API
sortIdnumberrequiredSorting identifier
deletedAtstring<date-time>requiredTimestamp when the currency was deleted, if applicable
isTokenRewardCurrencybooleanTrue for LoyaltyCurrency rows auto-created by resolveTokenReward (Option 1 hidden currency backing a token-reward rule). Excluded from list responses by default; opt in via excludeTokenRewardCurrencies=false on the list endpoint.