Subsequent Events (Details) | Nov. 01, 2016USD ($)Tranche | Oct. 31, 2016USD ($)shares | Aug. 31, 2016 | Oct. 31, 2016CNY (¥)shares |
Subsequent Event [Line Items] | | | | |
Shareholder's agreement terms | | | Under the terms of the shareholders agreement, after the closing of the Investment, Primavera will be entitled to designate one member of the Company’s board of directors and have the right to designate one non-voting board observer to the Company’s board of directors. In addition, if certain shareholding requirements are met by both Primavera and Ant Financial, Ant Financial will also have the right to designate one non-voting board observer to the Company’s board of directors. | |
Revolving Credit Facility [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility terms | | | The credit facilities have terms ranging from 1 to 3 years. Each credit facility bears interest based on the prevailing rate stipulated by the People’s Bank of China and contains financial covenants including, among other things, limitations on certain additional indebtedness and liens, and certain other transactions specified in the respective agreement. Each credit facility contains cross-default provision whereby our failure to make any payment on a principal amount from any credit facility will constitute a default on the respective agreement. Interest on any outstanding borrowings is due at least monthly. | |
Subsequent Event [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Investment agreements, consideration received | $ 460,000,000 | | | |
Stock options and stock application rights expiration period | | 10 years | | |
Subsequent Event [Member] | Revolving Credit Facility [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Number of new revolving credit facilities | | 3 | | 3 |
Credit facility maximum borrowing amount | | $ 180,000,000 | | |
Subsequent Event [Member] | Revolving Credit Facility 1 [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility maximum borrowing amount | ¥ | | | | ¥ 700,000,000 |
Credit facility outstanding amount | | 0 | | |
Subsequent Event [Member] | Revolving Credit Facility 2 [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility maximum borrowing amount | ¥ | | | | 300,000,000 |
Credit facility outstanding amount | | 0 | | |
Subsequent Event [Member] | Revolving Credit Facility 3 [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility maximum borrowing amount | ¥ | | | | ¥ 200,000,000 |
Credit facility outstanding amount | | $ 0 | | |
Subsequent Event [Member] | Long-term incentive plan [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Reserved for issuance of common stock | shares | | 45,000,000 | | 45,000,000 |
Subsequent Event [Member] | Primavera [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Investment agreements, consideration received | 410,000,000 | | | |
Subsequent Event [Member] | Ant Financial [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Investment agreements, consideration received | $ 50,000,000 | | | |
Subsequent Event [Member] | Primavera & Ant Financial Groups [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Number of tranches of warrants | Tranche | 2 | | | |
Warrants issuable minimum period after separation | 70 days | | | |
Warrants additional ownership percentage exercisable by investors | 4.00% | | | |
Subsequent Event [Member] | Primavera & Ant Financial Groups [Member] | Common Stock [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Aggregate shares percentage of common stock | 5.00% | | | |
Subsequent Event [Member] | Minimum [Member] | Revolving Credit Facility [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility expiration period | | 1 year | | |
Subsequent Event [Member] | Minimum [Member] | Long-term incentive plan [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Stock option vesting, provisions and exercise, outstanding awards period | | 3 years | | |
Subsequent Event [Member] | Minimum [Member] | Primavera & Ant Financial Groups [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Beneficial ownership percentage with voting stock | 4.30% | | | |
Subsequent Event [Member] | Maximum [Member] | Revolving Credit Facility [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Credit facility expiration period | | 3 years | | |
Subsequent Event [Member] | Maximum [Member] | Long-term incentive plan [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Stock option vesting, provisions and exercise, outstanding awards period | | 5 years | | |
Subsequent Event [Member] | Maximum [Member] | Primavera & Ant Financial Groups [Member] | | | | |
Subsequent Event [Line Items] | | | | |
Beneficial ownership percentage with voting stock | 5.90% | | | |