Channel Registration

Purpose

To support customer onboardings, the webhook events below will communicate a stores status which instructs the channel to update the corresponding status on their side.

StatusEvent purpose
registerA new store/location needs to establish a connection between Deliverect and a channel platform
activeA new store/location is ready to start receiving orders into Deliverect from the channel platform
inactiveA customer wants to stop receiving orders to this store/location from the channel platform

🎯 Important Requirement: Standardised Register URL

The register webhook needs to be standardised i.e. the same URL should be used for every customer install.

Request

ParameterMeaningType
statusregister Indicates the registration of the channel.
active Denotes the activation of the channel.
inactive Signifies the disabling of the channel.
string
channelLocationIdThe unique id of the Merchant in the channel platformstring
channelLinkIdThe channel link id generated in Deliverect when it's added to the Location.string
locationIdThe location id generated in the Deliverect portal when it's created in Deliverect.string
channelLinkNameThe channel name displayed in Deliverect.string

Examples

{
    "status": "register",
    "channelLocationId": "{{externalChannelLocationId}}",
    "channelLinkId": "{{channelLinkId}}",
    "locationId": "{{locationId}}",
    "channelLinkName": "Order Boss"
}
{
    "status": "active",
    "channelLocationId": "{{externalChannelLocationId}}",
    "channelLinkId": "{{channelLinkId}}",
    "locationId": "{{locationId}}",
    "channelLinkName": "Order Boss"
}
{
    "status": "inactive",
    "channelLocationId": "{{externalChannelLocationId}}",
    "channelLinkId": "{{channelLinkId}}",
    "locationId": "{{locationId}}",
    "channelLinkName": "Order Boss"
}

Response

With the "status": "register" we always expect a JSON result which contains all the supported endpoints detailed in the table below;

AttributePurposeTypeRequired
statusUpdateURLReceive order status update eventsstringYES
menuUpdateURLReceive menu update requestsstringYES
snoozeUnsnoozeURLReceive both snooze and unsnooze requestsstringYES
busyModeURLReceive busy mode requests (paused/online)stringYES
updatePrepTimeURLReceive preparation time update requestsstringNO
courierUpdateURLReceive courier update eventsstringNO
paymentUpdateURLReceived payment update eventsstringNO
authorizationURLReceive SSO authorizationstringNO
menuUrlMerchant Store URL / site URLstringNO

Example

{
    "statusUpdateURL": "https://integrator.com/statusUpdate",
    "menuUpdateURL": "https://integrator.com/menuUpdate",
    "snoozeUnsnoozeURL": "https://integrator.com/snoozeUnsnooze",
    "busyModeURL": "https://integrator.com/busyMode",
    "updatePrepTimeURL": "https://integrator.com/updatePrepTimeURL",
    "paymentUpdateURL":"https://yourwebhook.com/payment_update",
  "courierUpdateURL":"https://yourwebhook.com/courier_update",
"authorizationURL":"https://yourwebhook.com/authorization",
    "menuUrl":"https://integrator.com/store"
}

ℹ️ Important Requirement: Case-Sensitive Response

Please note, the expected response is case-sensitive . Ensure the response matches the required format exactly.


Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json