XML 124 R105.htm IDEA: XBRL DOCUMENT
v3.20.4

Financing and Other Debt - Narrative (Details) |  | 1 Months Ended | 12 Months Ended
--- | --- | --- | ---
Jul. 01, 2020 USD ($) trading_day $ / shares shares | Jun. 30, 2020 | Dec. 31, 2020 USD ($) | Dec. 31, 2019 USD ($) | Dec. 31, 2018 USD ($)
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  | $ 3,132,090,000 | $ 2,972,674,000 |
Prepayment percentage |  |  | 25.00% |  |
Proceeds from issuance of convertible notes |  |  | $ 299,150,000 | 0 | $ 0
Sale of stock, consideration received on transaction | $ 90,000,000 |  |  |  |
Consent fees amount |  |  | 2,900,000 |  |
Loss on debt extinguishment |  |  |  | 1,300,000 | 1,100,000
General and administrative expenses incurred |  |  |  | 10,600,000 | 3,800,000
Debt issuance costs capitalized |  |  |  | 3,400,000 | $ 5,800,000
Debt discount |  |  |  | 11,000,000.0 |
Borrowed federal funds |  |  | $ 50,000,000.0 | $ 50,000,000.0 |
Average interest rate on borrowed federal funds |  |  | 1.01% | 2.36% |
Pledged receivables held as collateral |  |  | $ 249,800,000 |  |
Common Stock Issued | Private Placement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Sale of stock, number of shares Issued in transaction (in shares) | shares | 577,254 |  |  |  |
Sale of stock, consideration received on transaction | $ 90,000,000.0 |  |  |  |
Sale of stock, price per share (in dollars per share) | $ / shares | $ 155.91 |  |  |  |
Minimum |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Prepayment percentage |  |  | 0.00% |  |
Maximum |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Prepayment percentage |  |  | 50.00% |  |
Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Line of credit facility, Increase (decrease) |  |  | $ 50,000,000.0 |  |
Revolving line-of-credit facility under 2016 Credit Agreement | Federal Reserve Bank |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Current borrowing capacity |  |  | 188,400,000 |  |
Letters of credit |  |  | 0 | $ 0 |
Loan Participations and Assignments |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  | 0 | $ 50,000,000 |
Initial carrying value |  |  | $ 60,000,000 |  |
Weighted average effective interest rate (as a percent) |  |  |  | 4.17% |
Tranche A term loan |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Interest coverage ratio (no less than) |  |  | 2.75 |  |
Tranche A term loan | March 31, 2021 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Interest coverage ratio (no less than) |  |  | 3.00 |  |
Consolidated leverage ratio |  |  | 7.50 |  |
Tranche A term loan | June 30, 2021 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Consolidated leverage ratio |  |  | 7.00 |  |
Tranche A term loan | September 30, 2021 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Consolidated leverage ratio |  |  | 6.50 |  |
Tranche A term loan | December 31, 2021 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Consolidated leverage ratio |  |  | 6.00 |  |
Tranche A term loan | September 30, 2022 and thereafter |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Consolidated leverage ratio |  |  | 5.00 |  |
Tranche A term loan | Credit Facility and Term Loans |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Mandatory quarterly payments |  |  | $ 12,500,000 |  |
Tranche B term loan | Credit Facility and Term Loans |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Mandatory quarterly payments |  |  | $ 3,700,000 |  |
2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Weighted average effective interest rate (as a percent) |  |  | 2.30% | 4.00% |
Commitment fee percentage |  |  | 0.40% |  |
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% |  |
2016 Credit Agreement | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Remaining borrowing capacity on revolving credit facility |  |  |  | $ 870,000,000.0 |
Letters of credit outstanding, amount |  |  | $ 51,628,000 |  |
Capitalized debt issuance costs |  |  | $ 4,300,000 |  |
Securitization Facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Securitization facility, percentage of receivables used as collateral |  |  | 85.00% |  |
Interest rate during period, percent |  |  | 0.97% | 1.80% |
Securitization facility |  |  | $ 62,600,000 | $ 78,600,000 |
European Securitization Facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt instrument, term |  |  | 5 years |  |
Interest rate during period, percent |  |  | 0.98% | 0.63% |
Securitized debt |  |  | $ 23,400,000 | $ 25,700,000 |
WEX Latin America debt |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  | $ 0 | 2,660,000 |
Interest rate during period, percent |  |  | 35.04% |  |
Letter of Credit | 2016 Credit Agreement | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Remaining borrowing capacity on revolving credit facility |  |  |  | 250,000,000.0 |
Swingline Loans | 2016 Credit Agreement | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Remaining borrowing capacity on revolving credit facility |  |  |  | 20,000,000.0 |
Senior Notes | 4.75 percent senior notes |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Long-term deposits |  |  | $ 400,000,000.0 |  |
Interest rate, stated percentage |  |  | 4.75% |  |
Line of Credit |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Remaining borrowing capacity on revolving credit facility |  |  | $ 376,000,000.0 | 355,000,000.0 |
Borrowed federal funds |  |  | 20,000,000.0 | 35,000,000.0 |
Convertible Debt |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  |  | 0 |
Proceeds from issuance of convertible notes | $ 389,200,000 |  |  |  |
Convertible Debt | Convertible Senior Notes Due 2027 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Aggregate amount | 310,000,000.0 |  |  |  |
Principal |  |  | 310,000,000 |  |
Initial carrying value | $ 237,500,000 |  | $ 240,887,000 |  |
Interest rate, stated percentage | 6.50% |  | 0.065% |  |
Proceeds from issuance of convertible notes | $ 299,200,000 |  |  |  |
Debt instrument, term | 7 years |  |  |  |
Conversion price (in dollars per share) | $ / shares | $ 200.00 |  |  |  |
Threshold percentage | 200.00% |  |  |  |
Number trading days | trading_day | 20 |  |  |  |
Number of consecutive trading days | trading_day | 30 |  |  |  |
Proceeds from private placement and issuance of convertible debt | $ 389,200,000 |  |  |  |
Convertible debt, fair value, equity component | 94,000,000.0 |  |  |  |
Convertible debt, fair value, liability component | 295,200,000 |  |  |  |
Capitalized debt issuance costs | 4,000,000.0 |  |  |  |
Debt issuance costs gross liability component | 2,500,000 |  |  |  |
Debt issuance costs gross equity component | $ 1,500,000 |  |  |  |
Effective percentage | 11.20% |  |  |  |
Equity component | $ 54,700,000 |  | $ 54,689,000 |  |
If-converted value in excess of principal |  |  | 5,500,000 |  |
Debt issuance costs capitalized |  |  | 2,358,000 |  |
Redemption price as percentage of principal amount | 105.00% |  |  |  |
Convertible Debt | Convertible Senior Notes Due 2027 | Minimum |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Number trading days | trading_day | 5 |  |  |  |
Secured debt |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  | 85,945,000 | 104,261,000 |
Secured debt | Tranche A term loan | Line of Credit |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Aggregate amount |  |  |  | 1,030,000,000.0 |
Principal |  |  | 873,777,000 | 923,707,000 |
Secured debt | Tranche B term loan | Line of Credit |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Aggregate amount |  |  |  | 1,485,000,000.0 |
Principal |  |  | 1,442,368,000 | 1,457,048,000 |
Secured debt | 2016 Credit Agreement | Line of Credit |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Principal |  |  | $ 2,316,145,000 | $ 2,380,755,000 |
Base Rate | Tranche B term loan | Credit Facility and Term Loans |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  |  | 1.25% |  |
Eurocurrency Rate | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  |  | 1.00% |  |
Eurocurrency Rate | Tranche B term loan | Credit Facility and Term Loans |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  |  | 2.25% |  |
London Interbank Offered Rate (LIBOR) | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  | 0.75% |  |  |
London Interbank Offered Rate (LIBOR) | Loan Participations and Assignments |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  |  | 2.25% |  |
Fed Funds Effective Rate Overnight Index Swap Rate | Revolving line-of-credit facility under 2016 Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Margin on variable rate, percent |  |  | 0.50% |  |

X
- Definition Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28541-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.8) -URI http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227 + Details
Name: | us-gaap_AmortizationOfDebtDiscountPremium
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying amount of the equity component of convertible debt which may be settled in cash upon conversion. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 + Details
Name: | us-gaap_DebtInstrumentConvertibleCarryingAmountOfTheEquityComponent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031898-161870 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionPrice1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount by which the convertible debt's if-converted value exceeds its principle amount at the balance sheet date, regardless of whether the instrument is currently convertible. This element applies to public companies only. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031898-161870 + Details
Name: | us-gaap_DebtInstrumentConvertibleIfConvertedValueInExcessOfPrincipal
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Threshold period of specified consecutive trading days within which common stock price to conversion price of convertible debt instrument must exceed threshold percentage for specified number of trading days to trigger conversion feature. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum percentage of common stock price to conversion price of convertible debt instruments to determine eligibility of conversion. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Threshold number of specified trading days that common stock price to conversion price of convertible debt instruments must exceed threshold percentage within a specified consecutive trading period to trigger conversion feature. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdTradingDays
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of the fee that accompanies borrowing money under the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentFeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The average effective interest rate during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 6 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6036836-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateEffectivePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage price of original principal amount of debt at which debt can be redeemed by the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph e -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentRedemptionPricePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average interest rate of debt outstanding. + References No definition available. + Details
Name: | us-gaap_DebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Discloses the single interest rate [if] applicable to the advances from the Federal Home Loan Bank, by branch, as of the Balance Sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822 + Details
Name: | us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=117329964&loc=d3e12355-112629 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=117329964&loc=d3e12317-112629 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Average amount borrowed under the credit facility during the period. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityAverageOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase (decrease) of the credit facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(f)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 + Details
Name: | us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of the required periodic payments of both interest and principal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fair value, as of the date of each statement of financial position presented, of finance receivables which are owned but transferred to serve as collateral for the payment of the related debt obligation, and that are reclassified and separately reported in the statement of financial position. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728 + Details
Name: | us-gaap_PledgedAssetsSeparatelyReportedFinanceReceivablesPledgedAsCollateralAtFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash inflow from the issuance of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromConvertibleDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Cash received on stock transaction after deduction of issuance costs. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedOnTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Carrying amount of collateralized debt obligations with maturities initially due after one year or beyond the operating cycle, if longer, excluding the current portion. Obligations include, but not limited to, mortgage loans, chattel loans, and other borrowings secured by assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_SecuredLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Including the current and noncurrent portions, carrying value as of the balance sheet date of Notes with the highest claim on the assets of the issuer in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle if longer). Senior note holders are paid off in full before any payments are made to junior note holders. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.16(a)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.16) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_SeniorNotes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt Instrument Consolidated Leverage Ratio + References No definition available. + Details
Name: | wex_DebtInstrumentConsolidatedLeverageRatio
Namespace Prefix: | wex_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Convertible, Fair Value, Equity Component + References No definition available. + Details
Name: | wex_DebtInstrumentConvertibleFairValueEquityComponent
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Convertible, Fair Value, Liability Component + References No definition available. + Details
Name: | wex_DebtInstrumentConvertibleFairValueLiabilityComponent
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Interest Coverage Ratio + References No definition available. + Details
Name: | wex_DebtInstrumentInterestCoverageRatio
Namespace Prefix: | wex_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Prepayment Percentage + References No definition available. + Details
Name: | wex_DebtInstrumentPrepaymentPercentage
Namespace Prefix: | wex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Securitization Facility, Percentage of Receivables Used as Collateral + References No definition available. + Details
Name: | wex_DebtInstrumentSecuritizationFacilityPercentageofReceivablesUsedasCollateral
Namespace Prefix: | wex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Issuance Costs, Gross, Equity Component + References No definition available. + Details
Name: | wex_DebtIssuanceCostsGrossEquityComponent
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Issuance Costs, Gross, Liability Component + References No definition available. + Details
Name: | wex_DebtIssuanceCostsGrossLiabilityComponent
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Gain (Loss) On Extinguishment Of Debt, General And Administrative Costs Incurred + References No definition available. + Details
Name: | wex_GainLossOnExtinguishmentOfDebtGeneralAndAdministrativeCostsIncurred
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Proceeds From Private Placement And Issuance Of Convertible Debt + References No definition available. + Details
Name: | wex_ProceedsFromPrivatePlacementAndIssuanceOfConvertibleDebt
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Securitization Facility + References No definition available. + Details
Name: | wex_SecuritizationFacility
Namespace Prefix: | wex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_PrivatePlacementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=wex_FederalReserveBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=us-gaap_LoanParticipationsAndAssignmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_TwoThousandAndSixteenCreditAgreementTrancheAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wex_DebtCovenantTermPeriodAxis=wex_DebtCovenantPeriodOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wex_DebtCovenantTermPeriodAxis=wex_DebtCovenantPeriodTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wex_DebtCovenantTermPeriodAxis=wex_DebtCovenantPeriodThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wex_DebtCovenantTermPeriodAxis=wex_DebtCovenantPeriodFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wex_DebtCovenantTermPeriodAxis=wex_DebtCovenantPeriodFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=wex_CreditFacilityAndTermLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_TwoThousandAndSixteenCreditAgreementTrancheBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_TwoThousandAndSixteenCreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_AustralianSecuritizationFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_EuropeanSecuritizationFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=wex_WEXLatinAmericaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=wex_SwinglineLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_SeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_SeniorNotes4.75PercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=wex_ConvertibleSeniorNotesDue2027Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_SecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=wex_EurocurrencyRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |