Update, I was on the wrong track.
- Payment intent is not used for this purpose.
- A charge’s response doesn’t include the fee either.
- The variables for application and application_fee_amount refer to something else.
One should the use balance transaction ID, a value starting with txn, and the “retrieve a balance transaction” module. The response incldues amount, fees and net. I found this in Stripe’s API documentation here.