If transaction was partially paid by gift card the accounting records have channel "MIXED" or payment channels used for payment depending on your pricelist channel prices specifics.
Before you can try the request below here - please set context variables for your session:
Set Shop context