Correct workflow, answer user getting data form external resources

Hello everyone, i would like to understand what is the best/correct workflow to answer/auto-answer to users including data presents on external resources. For example this is a tipical situation:
final client opens a ticket in order to get an invoice he didn’t received.
system/agent should retrieve the invoice or attach the invoice via api to the ticket and answer

thank you