Create or Update Platform

POST /reservation/api/1/platform/{platform-code}/profile

Create or update details for external reservation platform.

Path parameters

  • platform-code string Required

    Unique code assigned to the reservation platform.

    Maximum length is 11. Format should match the following pattern: [a-zA-Z0-9_-]+.

application/json

Body

Responses

  • 200

    Accepted

  • 400

    Non relevant request

  • 403

    Scope 'reservation-{platform-code}' not found in the token

POST /reservation/api/1/platform/{platform-code}/profile
curl \
 -X POST https://api.trial.lsk.lightspeed.app/reservation/api/1/platform/EasyTable/profile \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"webhook_url":"https://table.easy/webhooks","notification_types":["CLOSE"],"deposit_supported":true,"own_notifications_only":true,"webhook_auth_type":"OAUTH2","webhook_auth_details":{"basic":{"username":"LightspeedKSeries","password":"*****************"},"bearer":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","token_ttl":"2025-01-01T00:00:00"},"api_keys":{"headers":{"X-API-ID":"ABCDEF001","X-API-SECRET":"*********"},"parameters":{}},"oauth2":{"client_id":"LightspeedKSeries","client_secret":"*****************","client_name":"LightspeedKSeries","client_authorization_method":"CLIENT_SECRET_BASIC","authorization_grant_type":"CLIENT_CREDENTIALS","scopes":["webhooks-api"],"provider_token_uri":"https://table.easy/emitter/token","provider_jwk_set_uri":"https://table.easy/public-keys"}}}'
Request example
{
  "webhook_url": "https://table.easy/webhooks",
  "notification_types": [
    "CLOSE"
  ],
  "deposit_supported": true,
  "own_notifications_only": true,
  "webhook_auth_type": "OAUTH2",
  "webhook_auth_details": {
    "basic": {
      "username": "LightspeedKSeries",
      "password": "*****************"
    },
    "bearer": {
      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "token_ttl": "2025-01-01T00:00:00"
    },
    "api_keys": {
      "headers": {
        "X-API-ID": "ABCDEF001",
        "X-API-SECRET": "*********"
      },
      "parameters": {}
    },
    "oauth2": {
      "client_id": "LightspeedKSeries",
      "client_secret": "*****************",
      "client_name": "LightspeedKSeries",
      "client_authorization_method": "CLIENT_SECRET_BASIC",
      "authorization_grant_type": "CLIENT_CREDENTIALS",
      "scopes": [
        "webhooks-api"
      ],
      "provider_token_uri": "https://table.easy/emitter/token",
      "provider_jwk_set_uri": "https://table.easy/public-keys"
    }
  }
}