problem with capture in order paid with giftcard

Hi, I have a problem regarding the use of the giftcard, when I ship an order paid with both giftcard and creditcard how can I know how much do I need to capture on the credit card? There’s any API call to get this information?

if I do the get order API I can’t see anywhere how much I still need to capture, and if I do the capture API call, without specify any amount it doesn’t work and response with ““Cannot capture more than the authorized *** for this payment.””.

Thank you