Callback to Complete Onboarding
Once the external platform receives the onboarding webhook, the process needs to be completed using this callback.
Path parameters
-
The unique code assigned to the reservation platform.
Maximum length is
11
. Format should match the following pattern:[a-zA-Z0-9_-]+
.
Body Required
-
The unique identifier of the business location.
-
The machine code to interact with the external platform during the onboarding process.
Values are
ACCEPTED
,DONE
,ONBOARDING_EXPIRED
,ONBOARDING_ID_NOT_VALID
,PLATFORM_CODE_NOT_VALID
,BUSINESS_LOCATION_NOT_VALID
,PLATFORM_RESTAURANT_NOT_VALID
,PLATFORM_RESTAURANT_NOT_FOUND
, orUNEXPECTED_ERROR
. -
The unique identifier of the integration process that has started onboarding.
-
The external platform's unique identifier for the restaurant.
Format should match the following pattern:
[a-zA-Z0-9_-]+
.
curl \
-X POST https://api.trial.lsk.lightspeed.app/reservation/api/1/platform/MyPlatform/integration/onboarding \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"businessLocationId":9765040300495493,"onboardingCode":"DONE","onboardingId":"84f16177-98c5-4010-a7ab-d00144d1dede","platformRestaurantId":"Restaurant-123"}'
{
"businessLocationId": 9765040300495493,
"onboardingCode": "DONE",
"onboardingId": "84f16177-98c5-4010-a7ab-d00144d1dede",
"platformRestaurantId": "Restaurant-123"
}
{
"onboardingCode": "DONE"
}
{
"onboardingCode": "DONE"
}
{
"onboardingCode": "DONE"
}