Who purchases the jet fuel from the refinery - the airport or the airline?

The airport buys that fuel and then the airlines purchase it from the airport authority. There is usually a contract that specifies how much the airline will pay per gallon.