Skip to main content

Sends an InApp Purchase Receipt to the backend

POST 

/iap

This endpoint is used to implement several flows in the In-App Purchase process:

  1. The backend validates the purchase.

  2. 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_required set to true
    • The response will have is_email_set set 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_required set to true
    • The response will have is_email_set set to true

    d. No Authentication Token provided, NO customer details provided

    • A random username and password are generated for the new account.
  3. 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_switched will be set to true.

Request

Responses

Successful response containing user location and VPN connection status