Reservations for Platforms

Callback to Complete Onboarding

Changed on

Once the external platform receives the onboarding webhook, the process needs to be completed using this callback.

post/reservation/api/1/platform/{platform-code}/integration/onboarding

Request

  • Base URL
    https://api.trial.lsk.lightspeed.app
  • URL
    https://api.trial.lsk.lightspeed.app/reservation/api/1/platform/{platform-code}/integration/onboarding
  • Auth
    OAuth 2
    Authorization code: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/auth
    Token URL: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/token scopes: reservation-platform-code

Path parameters

platform-codestring required

The unique code assigned to the reservation platform.

Example:MyPlatform

Request body

businessLocationIdinteger required

The unique identifier of the business location.

onboardingCode'ACCEPTED' | 'DONE' | 'ONBOARDING_EXPIRED' | 'ONBOARDING_ID_NOT_VALID' | 'PLATFORM_CODE_NOT_VALID' | 'BUSINESS_LOCATION_NOT_VALID' | 'PLATFORM_RESTAURANT_NOT_VALID' | 'PLATFORM_RESTAURANT_NOT_FOUND' | 'UNEXPECTED_ERROR' required

The machine code to interact with the external platform during the onboarding process.

onboardingIdstring required

The unique identifier of the integration process that has started onboarding.

platformRestaurantIdstring required

The external platform's unique identifier for the restaurant.

Example request

{
  "businessLocationId": 9765040300495492,
  "onboardingCode": "DONE",
  "onboardingId": "84f16177-98c5-4010-a7ab-d00144d1dede",
  "platformRestaurantId": "Restaurant-123"
}

Response

Accepted

onboardingCode'ACCEPTED' | 'DONE' | 'ONBOARDING_EXPIRED' | 'ONBOARDING_ID_NOT_VALID' | 'PLATFORM_CODE_NOT_VALID' | 'BUSINESS_LOCATION_NOT_VALID' | 'PLATFORM_RESTAURANT_NOT_VALID' | 'PLATFORM_RESTAURANT_NOT_FOUND' | 'UNEXPECTED_ERROR' required

The machine code to interact with the external platform during the onboarding process.

Example response

{
  "onboardingCode": "DONE"
}

Changes