Setup

To use the Transactions API, install the @wix/loyalty package using npm or Yarn:

Copy
1
npm install @wix/loyalty

or

Copy
1
yarn add @wix/loyalty

Then import { transactions } from @wix/loyalty:

Copy
1
import { transactions } from '@wix/loyalty'
Was this helpful?
Yes
No

getLoyaltyTransaction( )

Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a LoyaltyTransaction.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Loyalty
Read Loyalty
Learn more about permission scopes.
Copy
function getLoyaltyTransaction(loyaltyTransactionId: string): Promise<LoyaltyTransaction>
Method Parameters
loyaltyTransactionIdstringRequired

ID of the LoyaltyTransaction to retrieve.

Returns
Return Type:Promise<LoyaltyTransaction>
Was this helpful?
Yes
No

queryLoyaltyTransactions( )

Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a list of LoyaltyTransactions, given the provided paging, filtering, and sorting.

Up to 1,000 LoyaltyTransactions can be returned per request.

To learn how to query LoyaltyTransactions, see API Query Language.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
accountIdeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
amounteq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
transactionTypeeq(),ne(),exists(),in(),hasSome(),ascending(),descending()
descriptioneq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
idempotencyKeyeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Loyalty
Read Loyalty
Learn more about permission scopes.
Copy
function queryLoyaltyTransactions(): LoyaltyTransactionsQueryBuilder
Request
This method does not take any parameters
Was this helpful?
Yes
No