If I’m going to send an api request from the invoice number, where should I code it to run an api request