RELATED PARTIES - Series G / Series G’ (Details) - $ / shares | 1 Months Ended | | | |
May 31, 2017 | Sep. 30, 2018 | Dec. 31, 2017 | May 31, 2013 |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 21,411,000 | 3,439,000 | |
Class of warrant (in shares) | | 0 | 110,000 | 644,365 |
Series G Stock | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | 346,000 | |
Class of warrant, numerator input value (in usd per share) | $ 68.9516 | | | |
Number of trading days | 30 days | | | |
Series G’ Stock | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | 1,296,000 | |
Aimia Inc. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 801,000 | | |
Class of warrant (in shares) | | 0 | | |
Aimia Inc. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Aimia Inc. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 382,000 | | |
Polaris Venture Partners | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 66,000 | | |
Polaris Venture Partners | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 29,000 | | |
Polaris Venture Partners | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 212,000 | | |
Canaan VIII L.P. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 123,000 | | |
Canaan VIII L.P. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 54,000 | | |
Canaan VIII L.P. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 260,000 | | |
Discovery Capital | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 0 | | |
Discovery Capital | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Discovery Capital | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 106,000 | | |
Scott D. Grimes | Scott D. Grimes | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 0 | | |
Scott D. Grimes | Series G Stock | Scott D. Grimes | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Scott D. Grimes | Series G’ Stock | Scott D. Grimes | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 26,000 | | |
Lynne M. Laube | Lynne M. Laube | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 0 | | |
Lynne M. Laube | Series G Stock | Lynne M. Laube | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Lynne M. Laube | Series G’ Stock | Lynne M. Laube | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 14,000 | | |
Entities affiliated with Mark A. Johnson | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 80,000 | | |
Entities affiliated with Mark A. Johnson | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 35,000 | | |
Entities affiliated with Mark A. Johnson | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 15,000 | | |
Mark A. Johnson | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 13,273 | | |
Mark A. Johnson | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 5,801 | | |
John Klinck | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 13,000 | | |
John Klinck | Series G Stock | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 6,000 | | |
John Klinck | Series G’ Stock | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
David Adams | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Class of warrant (in shares) | | 7,000 | | |
David Adams | Series G Stock | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 3,000 | | |
David Adams | Series G’ Stock | Director | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 0 | | |
Aeroplan Holdings Europe Sàrl | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 159,207 | | |
Aimia EMEA Limited | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 801,329 | | |
Aimia EMEA Limited | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 223,020 | | |
Polaris Venture Partners V, L.P. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 64,038 | | |
Polaris Venture Partners V, L.P. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 27,988 | | |
Polaris Venture Partners V, L.P. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 205,020 | | |
Polaris Venture Partners Entrepreneurs’ Fund V, L.L. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 1,247 | | |
Polaris Venture Partners Entrepreneurs’ Fund V, L.L. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 545 | | |
Polaris Venture Partners Entrepreneurs’ Fund V, L.L. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 3,995 | | |
Polaris Venture Partners Founders’ Fund V, L.P. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 438 | | |
Polaris Venture Partners Founders’ Fund V, L.P. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 191 | | |
Polaris Venture Partners Founders’ Fund V, L.P. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 1,404 | | |
Polaris Venture Partners Special Founders’ Fund V, L.P. | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 641 | | |
Polaris Venture Partners Special Founders’ Fund V, L.P. | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 280 | | |
Polaris Venture Partners Special Founders’ Fund V, L.P. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 2,050 | | |
Discovery Opportunity Master Fund, Ltd. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 95,272 | | |
Discovery Global Opportunity Master Fund, Ltd. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 11,072 | | |
TTP Fund II, L.P. | Series G’ Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 15,045 | | |
TTV Ivy Holdings, LLC | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Class of warrant (in shares) | | 66,365 | | |
TTV Ivy Holdings, LLC | Series G Stock | Affiliated Entity | | | | |
Related Party Transaction [Line Items] | | | | |
Shares outstanding (in shares) | | 29,005 | | |