{
"event": "MERCHANT_STATUS_UPDATE",
"merchant": {
"id": 10,
"name": "Uber",
"category": "Transportation",
"logo": "https://knot.imgix.net/merchants/KBQ5j6cN010PPpwbO7RpKGyDrCpsZ91FRhwnZp5u.png?auto=format&w=240"
},
"data": {
"type": "card_switcher",
"status": "UP",
"platform": "ios",
"sdk": "1.0.0"
},
"timestamp": 1710864923198
}Webhook Events
MERCHANT_STATUS_UPDATE
Fired when a merchant becomes available or unavailable.
WEBHOOK
merchant_status_update
{
"event": "MERCHANT_STATUS_UPDATE",
"merchant": {
"id": 10,
"name": "Uber",
"category": "Transportation",
"logo": "https://knot.imgix.net/merchants/KBQ5j6cN010PPpwbO7RpKGyDrCpsZ91FRhwnZp5u.png?auto=format&w=240"
},
"data": {
"type": "card_switcher",
"status": "UP",
"platform": "ios",
"sdk": "1.0.0"
},
"timestamp": 1710864923198
}Listening to this event is only necessary if you intend to display and allow users to select various merchants natively inside your app.
type and platform. Particularly if you are implementing multiple of Knot’s products, you should consider the type property to determine whether a merchant is available for a given product, as availability can differ.
This event does not include a session_id, which is relevant when generating a hash map for webhook verification, as described in Webhook Verification.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Was this page helpful?
⌘I