Console Commands

Update order status

For any unforeseen reasons, sometimes the order status is directly updated to the database (may be from a 3rd party service), and Magento is not able to handle the status change to trigger Tamara events such as (cancel/capture/refund).

In such a scenario, run the following console command to update an order:

bin/magento tamara:orders-scan --start-time={startTime} --end-time={endTime}

ParamDefaultDescription
start-time (required)Orders created since this time will be scanned and updated
end-time (optional)current timeOrders created up to this time will be scanned and update

For example, if you want to scan orders created in the last 7 days, run the following command:

bin/magento tamara:orders-scan --start-time="-7 days"

or in the last 30 minutes:

bin/magento tamara:orders-scan --start-time="-30 minutes"

or a specific exact time to scan:

bin/magento tamara:orders-scan --start-time="2021-01-01 00:00:00" --end-time="2021-01-01 23:59:59"