Financing and Other Debt - Additional Information (Details) | Jul. 03, 2017USD ($) | Jul. 01, 2016USD ($) | Apr. 07, 2016 | Sep. 30, 2017USD ($) | Sep. 30, 2017USD ($) | Dec. 31, 2016USD ($) | Oct. 30, 2017USD ($) | Nov. 30, 2016agreement |
Debt Instrument [Line Items] | | | | | | | | |
Lines of credit outstanding | | | | $ 1,727,472,000 | $ 1,727,472,000 | $ 1,599,291,000 | | |
Maximum borrowing capacity | | | | $ 246,500,000 | $ 246,500,000 | 250,000,000 | | |
Basis points added to LIBOR | | | | 2.25% | 2.25% | | | |
Receivables transferred as part of securitization agreement | | | | $ 150,845,000 | $ 150,845,000 | 97,417,000 | | |
Securitized debt | | | | $ 122,475,000 | $ 122,475,000 | $ 84,323,000 | | |
Interest rate swap agreements - unrealized portion | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Number of derivative instruments held (agreement) | agreement | | | | | | | | 3 |
Minimum | London Interbank Offered Rate (LIBOR) | Interest rate swap agreements - unrealized portion | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Basis points added to LIBOR | | | | | | | | 0.896% |
Maximum | London Interbank Offered Rate (LIBOR) | Interest rate swap agreements - unrealized portion | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Basis points added to LIBOR | | | | | | | | 1.125% |
Interest Rate Option Two | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.00% | | | | | | |
Interest Rate Option Two | Federal Fund Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 0.50% | | | | | | |
2016 Credit Agreement Tranche A | London Interbank Offered Rate (LIBOR) | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | 2.75% | | | | | | | |
2016 Credit Agreement Tranche A | Base Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement Tranche A | Interest Rate Option One | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Basis spread on variable rate, reduction in basis points | | 0.50% | | | | | | |
Debt instrument, interest rate, floor | | 0.00% | | | | | | |
2016 Credit Agreement Tranche A | Interest Rate Option One | Minimum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement Tranche A | Interest Rate Option One | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 2.75% | | | 2.25% | | | |
2016 Credit Agreement Tranche A | Interest Rate Option Two | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.25% | | | | | | |
2016 Credit Agreement Tranche A | Interest Rate Option Two | Minimum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 0.75% | | | | | | |
2016 Credit Agreement Tranche A | Interest Rate Option Two | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement Tranche B | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Weighted average annual interest rate, percent | | | | 3.90% | 3.90% | 4.20% | | |
Debt instrument unamortized discount, percent | | 1.00% | | | | | | |
2016 Credit Agreement Tranche B | London Interbank Offered Rate (LIBOR) | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | 2.75% | | | | | | | |
2016 Credit Agreement Tranche B | Base Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement Tranche B | Interest Rate Option One | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Basis spread on variable rate, reduction in basis points | | 0.75% | | | | | | |
2016 Credit Agreement Tranche B | Interest Rate Option One | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 2.75% | | | | | | |
2016 Credit Agreement Tranche B | Interest Rate Option Two | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Current borrowing capacity | | | | $ 320,000,000 | $ 320,000,000 | | | |
Permitted securitization transactions | $ 350,000,000 | | | | | | | |
Cash allowed to be excluded for determining consolidated funded indebtedness | $ 75,000,000 | | | | | | | |
2016 Credit Agreement | Minimum | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Commitment fee percentage | | 0.30% | | | | | | |
2016 Credit Agreement | Maximum | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Commitment fee percentage | | 0.50% | | | 0.45% | | | |
2016 Credit Agreement | Interest Rate Option One | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | | | | 2.75% | | | |
2016 Credit Agreement | Interest Rate Option One | Minimum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 1.75% | | | | | | |
2016 Credit Agreement | Interest Rate Option One | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 3.25% | | | | | | |
Loan Participations and Assignments | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Increase in funding capacity | | | | | $ 90,000,000 | | | |
Debt instrument, aggregate principal amount | | | | 185,000,000 | 185,000,000 | | | |
Debt balance | | | | 154,521,000 | $ 154,521,000 | $ 95,000,000 | | |
Loan Participations and Assignments | London Interbank Offered Rate (LIBOR) | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | | | | 2.25% | | | |
Loan Participations and Assignments, Amounts Maturing August 2017 | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Debt instrument, aggregate principal amount | | | | 85,000,000 | $ 85,000,000 | | | |
Loan Participations and Assignments, Amounts Maturing December 2020 | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Debt instrument, aggregate principal amount | | | | 50,000,000 | 50,000,000 | | | |
Loan Participations and Assignments, Amounts Maturing On Demand | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Debt instrument, aggregate principal amount | | | | 19,521,000 | 19,521,000 | | | |
WEX Brazil Securitization Facility | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Receivables transferred as part of securitization agreement | | | | 20,000,000 | 20,000,000 | | | |
Securitized debt | | | | 20,000,000 | 20,000,000 | | | |
Australian Securitization Facility | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Securitized debt | | | | $ 83,100,000 | $ 83,100,000 | $ 78,600,000 | | |
Securitization facility, percentage of receivables used as collateral | | | | 85.00% | 85.00% | | | |
Interest rate during period, percent | | | | | 2.70% | 2.65% | | |
European Securitization Facility | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Interest rate during period, percent | | | | | 0.42% | 0.95% | | |
Debt instrument, term | | | 5 years | | | | | |
Securitized debt | | | | $ 18,800,000 | $ 18,800,000 | $ 5,700,000 | | |
Credit Facility Term Loans | 2016 Credit Agreement Tranche A | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Current borrowing capacity | | $ 925,000,000 | | | | | | |
Credit Facility Term Loans | 2016 Credit Agreement Tranche B | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Current borrowing capacity | | $ 1,200,000,000 | | | | | | |
Lines of credit outstanding | | | | 1,611,563,000 | 1,611,563,000 | | | |
Revolving Credit Facility | 2016 Credit Agreement | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Current borrowing capacity | | | | 470,000,000 | 470,000,000 | | | |
Lines of credit outstanding | | | | 149,423,000 | $ 149,423,000 | | | |
Revolving Credit Facility | 2016 Credit Agreement | Interest Rate Option Two | Minimum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 0.75% | | | | | | |
Revolving Credit Facility | 2016 Credit Agreement | Interest Rate Option Two | Maximum | Eurocurrency Rate | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Margin on variable rate, percent | | 2.25% | | | 1.75% | | | |
Revolving Credit Facility | 2011 Credit Agreement | Letter of Credit | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Lines of credit outstanding | | | | 13,000,000 | $ 13,000,000 | 13,000,000 | | |
Line of Credit | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Lines of credit outstanding | | | | $ 28,500,000 | $ 28,500,000 | $ 0 | | |
Subsequent Event | Revolving Credit Facility | 2016 Credit Agreement | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Additional capacity added to revolving credit facility | | | | | | | $ 100,000,000 | |
WEX Brazil | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Weighted average annual interest rate, percent | | | | 21.40% | 21.40% | 19.70% | | |
Outstanding debt | | | | $ 11,743,000 | $ 11,743,000 | $ 30,755,000 | | |
WEX Brazil | WEX Brazil Securitization Facility | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | |
Receivables transferred as part of securitization agreement | | | | 31,200,000 | $ 31,200,000 | | | |
Proceeds from accounts receivable securitization | | | | 27,700,000 | | | | |
Discount on accounts receivable securitization | | | | 3,500,000 | | | | |
Servicing fee income | | | | $ 2,000,000 | | | | |