All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
applyCouponCheckoutSession | POST /checkout/sessions/{sessionID}/apply_coupon/ | Apply coupon to session |
createCheckoutSession | POST /checkout/sessions/ | Create checkout session |
createWaitListRequest | POST /checkout/wait-list/ | Create request to add country in wait list |
expireCheckoutSession | POST /checkout/sessions/{sessionID}/expire/ | Expire checkout session |
getCheckoutSession | GET /checkout/sessions/{sessionID}/ | Checkout session details |
getStripeCheckoutSession | GET /checkout/sessions/{sessionID}/stripe/checkout/session/ | Stripe checkout session details |
getStripePaymentIntent | GET /checkout/sessions/{sessionID}/stripe/payment/intent/ | Stripe payment intent details |
processCloudPaymentsAuth | POST /checkout/sessions/{sessionID}/cloud-payments/auth/ | Cloud payments auth |
processCloudPaymentsPost3ds | POST /checkout/sessions/{sessionID}/cloud-payments/post3ds/ | Cloud payments post3ds |
CouponCheckoutSession applyCouponCheckoutSession(sessionID, createCouponCheckoutSession)
Apply coupon to session
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val createCouponCheckoutSession : CreateCouponCheckoutSession = // CreateCouponCheckoutSession |
try {
val result : CouponCheckoutSession = apiInstance.applyCouponCheckoutSession(sessionID, createCouponCheckoutSession)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#applyCouponCheckoutSession")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#applyCouponCheckoutSession")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID | ||
createCouponCheckoutSession | CreateCouponCheckoutSession |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
CheckoutSession createCheckoutSession(createCheckoutSessionRequest)
Create checkout session
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val createCheckoutSessionRequest : CreateCheckoutSessionRequest = // CreateCheckoutSessionRequest |
try {
val result : CheckoutSession = apiInstance.createCheckoutSession(createCheckoutSessionRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#createCheckoutSession")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#createCheckoutSession")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createCheckoutSessionRequest | CreateCheckoutSessionRequest | [optional] |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
createWaitListRequest(xCountry)
Create request to add country in wait list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val xCountry : kotlin.String = xCountry_example // kotlin.String |
try {
apiInstance.createWaitListRequest(xCountry)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#createWaitListRequest")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#createWaitListRequest")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
xCountry | kotlin.String | [optional] |
null (empty response body)
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
expireCheckoutSession(sessionID)
Expire checkout session
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
apiInstance.expireCheckoutSession(sessionID)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#expireCheckoutSession")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#expireCheckoutSession")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID |
null (empty response body)
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
CheckoutSession getCheckoutSession(sessionID)
Checkout session details
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : CheckoutSession = apiInstance.getCheckoutSession(sessionID)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#getCheckoutSession")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#getCheckoutSession")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
StripeCheckoutSession getStripeCheckoutSession(sessionID)
Stripe checkout session details
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : StripeCheckoutSession = apiInstance.getStripeCheckoutSession(sessionID)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#getStripeCheckoutSession")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#getStripeCheckoutSession")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
StripePaymentIntent getStripePaymentIntent(sessionID, useStripeSdk, returnUrl)
Stripe payment intent details
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val useStripeSdk : kotlin.Boolean = true // kotlin.Boolean |
val returnUrl : kotlin.String = returnUrl_example // kotlin.String |
try {
val result : StripePaymentIntent = apiInstance.getStripePaymentIntent(sessionID, useStripeSdk, returnUrl)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#getStripePaymentIntent")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#getStripePaymentIntent")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID | ||
useStripeSdk | kotlin.Boolean | [optional] | |
returnUrl | kotlin.String | [optional] |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
CloudPaymentsAuth processCloudPaymentsAuth(sessionID, createCloudPaymentsAuth)
Cloud payments auth
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val createCloudPaymentsAuth : CreateCloudPaymentsAuth = // CreateCloudPaymentsAuth |
try {
val result : CloudPaymentsAuth = apiInstance.processCloudPaymentsAuth(sessionID, createCloudPaymentsAuth)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#processCloudPaymentsAuth")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#processCloudPaymentsAuth")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID | ||
createCloudPaymentsAuth | CreateCloudPaymentsAuth |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
CloudPaymentsPost3ds processCloudPaymentsPost3ds(sessionID, createCloudPaymentsPost3ds)
Cloud payments post3ds
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = CheckoutForestVPNAPI()
val sessionID : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val createCloudPaymentsPost3ds : CreateCloudPaymentsPost3ds = // CreateCloudPaymentsPost3ds |
try {
val result : CloudPaymentsPost3ds = apiInstance.processCloudPaymentsPost3ds(sessionID, createCloudPaymentsPost3ds)
println(result)
} catch (e: ClientException) {
println("4xx response calling CheckoutForestVPNAPI#processCloudPaymentsPost3ds")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CheckoutForestVPNAPI#processCloudPaymentsPost3ds")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | java.util.UUID | ||
createCloudPaymentsPost3ds | CreateCloudPaymentsPost3ds |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json