5. View a Transaction

▶ Run in Postman

After the transactions clears. Use the transaction API to see the updated status of the transaction that was cleared.

curl --request GET \
     --url https://sandbox.lithic.com/v1/transactions?card_token={Card Token}\
     --header "Accept: application/json" \
     --header "Authorization: { Sandbox API key }"
/*
const lithic = new Lithic({
  apiKey: "{Sandbox API key}", // or "Production API key"
  environment: "sandbox", // or "production". Defaults to "production"
});
*/

const transaction_params: TransactionListParams = {
	card_token: "{Card Token}" // only retrieve transactions for this card
};
const transactions = await lithic.transactions.list(transaction_params);
'''
lithic = Lithic(
  api_key="{Sandbox API key}",  # or "Production API key"
  environment="sandbox",  # or "production". Defaults to "production"
)
'''

transactions = lithic.transactions.list({
	"card_token": "{Card Token}" # only retrieve transactions for this card
})

For more information on transactions, check out our in-depth guide:Transactions