getTransaction( )

Retrieves a transaction using the transaction ID.

The getTransaction() function returns a Promise that resolves to a loyalty transaction.

A loyalty transaction includes any activity that changes a loyalty account point balance, such as adjusting, earning, or redeeming loyalty points. If you want to retrieve many, or all, of the transactions for a specific loyalty account, use the listTransactions() function.

Note: Only visitors with Manage Loyalty permissions can retrieve a loyalty transaction.

Admin Method

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permission Scopes

For app development, you must have one of the following permission scopes:
Read Loyalty
Manage Loyalty
Learn more about permission scopes.
Method Declaration
Method Parameters

Transaction ID.

Return Type:Promise<GetTransactionResponse>
Was this helpful?