How to Find Your Transaction ID in Magento 2

Overview

The ShipperHQ Magento extension comes with the comprehensive ShipperHQ Logger. This article details how to configure the logger and use it to fine valuable information about shipping rate quotes from ShipperHQ.

In Magento 2, you can extract the transaction ID by using the ShipperHQ Logger.

 

Key Features

The logger gives you the following capabilities:

  1. Dedicated log panel within admin, no need to open log files
  2. Ability to set logging level to show more/less logs
  3. Log to admin, file system and/or via email

Additionally we have added the following functionality:

  1. Runs asynchronously, reducing impact on performance to a minimum
  2. Ability to switch off when in production, will not affect performance at all
  3. Periodic Cron job which clears out WebShopApps extension related logs from the database

Configuring the ShipperHQ Logger

    1. Go to Stores > Configuration >  Advanced > ShipperHQ Logger
    2. Under Logger Configuration, set Enabled to Yes
    3. Set Minimum Log Level – Admin Panel to ‘Debug’ShipperHQ Logger Configuration
    4. Under Extension(s) to log output from, ensure Shipperhq_Shipper is set to Enabled
    5. Save the configuration changes
    6. Go to Stores > Configuration > Sales > Shipping Methods > ShipperHQ
    7. Set Debug = “Yes”
    8. Perform the request or test that you are investigating
    9. Go to System > ShipperHQ View Logs
    10. Open the entry titled “Rate Request and Result” ShipperHQ Log Viewer

 

 

Interpreting the Logs

Here you will find information around the most important aspects of the rate request:

From here, we send the request above, and we receive a response:

 

Locating Transaction IDs

If you cannot determine the issue by reviewing your logs, a Transaction ID is used by our support team to investigate issues faster. By providing a Transaction ID along with your support email, we can start looking into the problem much faster.

  1. Scroll down until you see the field TransactionId, within the response.  Use cmd-f (if mac), or ctrl-f on others. Then type “transaction” and the transaction id is found.TransactionIdInLogs
  2. Copy this number, along with a description of the problem you’re having to the support team so they can begin to diagnose the issue.
  3. Once you have this information, remember to disable the ShipperHQ logger as per steps 2 and 3 and set Debug = No as per step 7

Please remember to turn the logger off, it does not need to be constantly running. If left running it will slow down your shipping rates exponentially.

Was this doc helpful?