How can I link a PaymentIntent to its corresponding invoice with the Basil API?
This can be accomplished via the InvoicePayments API by passing payment[payment_intent]=pi_123
(ref) and any InvoicePayment results will indicate the associated invoice
ID (ref).