sites

POST /v2/sites/{site_id}/webviews/sessions

Changed on

Request

  • Base URL
    https://api.loyaltylion.com
  • URL
    https://api.loyaltylion.com/v2/sites/{site_id}/webviews/sessions
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

site_idnumber required

Request body

channelstring required

The name of your app. Can contain only alphanumeric characters, dots and underscores

languagestring

The current language as an ISO 639-1 code, e.g. en. If language is not provided or is not supported by this site, the default language will be used instead

currencystring

The current currency as an ISO 4217 currency code, e.g. usd. If currency is not provided or is not supported by this site, the default currency will be used instead

Example request

{
  "language": "en",
  "currency": "usd",
  "customer": {
    "merchant_id": "1000001",
    "email": "alice@example.com"
  }
}

Response

201

Example response

{
  "webview_session": {
    "url": "https://platform.loyaltylion.com/webview/f7bd16c",
    "expires_at": "2025-03-03T00:00:00Z"
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status