Sends an InApp Purchase Receipt to the backend
POST/iap
This endpoint is used to implement several flows in the In-App Purchase process:
-
The backend validates the purchase.
-
a. Authentication Token provided without customer details
- Purchase is assigned to the existing account
b.Authentication Token provided customer details
- Purchase is assigned to the existing account
- Account e-mail is being updated with the provided e-mail address
- User will receive a mail which asks him to confirm the new e-mail address and set a new password
- The response will have
email_confirmation_requiredset to true - The response will have
is_email_setset to true
c. No Authentication Token provided, customer details provided
- The purchase is linked to a new account.
- The account is created using the specified details.
- The user receives a password reset email to set the password.
- The response will have
email_confirmation_requiredset to true - The response will have
is_email_setset to true
d. No Authentication Token provided, NO customer details provided
- A random username and password are generated for the new account.
-
Backend returns Authentication Credentials. If the new Authentication credentials refer to an account which is different to the one identified by the Authentication Token, the property
account_switchedwill be set to true.
Request
Responses
- 200
- 429
Successful response containing user location and VPN connection status
Rate limited