Fetching data from the transaction object

This guide shows how to fetch transaction data for usage in custom reports and receipts.

Transaction data (transaction object)

You can always check the exact fields (data) for a specific transaction by opening the transaction (one way is through the transaction list). Once in a transaction, scroll down and expand the transaction object:

Please note that transactions can have different fields under "metadata" depending on your platform (WooCommerce, Shopify, API...).

Example - fetching the transaction ID

transaction.id

transaction.id will fetch the data in the id field of transactions.


Example - fetching the customer's browser

transaction.client_info.browser

transaction.client_info.browser will fetch the browser used by the customer when opening the payment window (transaction):


Conclusion

Data from different fields can be fetched from the transaction object: 1) figure out what data you want, 2) find the corresponding field in the transaction object and 3) refer to that field when setting up a report or receipt.

Please contact us at help@mondido.com if you need further assistance. We'll be happy to help!