v1

latestOpenAPI 3.1.12026-07-222968170.1 KB
sites

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

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"
  }
}