Guide
Ably Messages
Ably delivers real-time notifications about changes to merchant resources. This guide describes the available messages and how your integration can use them.
Messages are published to the affected merchant's merchant.<merchant UUID> channel. The update messages documented below are invalidation signals: clients should retrieve the affected resource again rather than treating the message as a complete representation of it.
Every update message includes ineligible_devices. A client should ignore a message when its device UUID appears in this array.
Merchant Updated
This message is delivered after an existing merchant's profile is updated. It is not delivered when a merchant is created.
Message Name: merchant.updated
Message Structure:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": ["merchant", "ineligible_devices"],
"properties": {
"merchant": {
"type": "string",
"format": "uuid",
"description": "The UUID of the merchant that was updated.",
"examples": ["123e4567-e89b-12d3-a456-426614174000"]
},
"ineligible_devices": {
"type": "array",
"description": "The device UUIDs that should ignore this message if they receive it.",
"items": {
"type": "string",
"format": "uuid"
},
"uniqueItems": true,
"examples": [
["123e4567-e89b-12d3-a456-426614174001"]
]
}
}
}
Outlet Updated
This message is delivered after an existing outlet's profile is updated. It is not delivered when an outlet is created.
Message Name: outlet.updated
Message Structure:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": ["outlet", "ineligible_devices"],
"properties": {
"outlet": {
"type": "string",
"format": "uuid",
"description": "The UUID of the outlet that was updated.",
"examples": ["123e4567-e89b-12d3-a456-426614174000"]
},
"ineligible_devices": {
"type": "array",
"description": "The device UUIDs that should ignore this message if they receive it.",
"items": {
"type": "string",
"format": "uuid"
},
"uniqueItems": true,
"examples": [
["123e4567-e89b-12d3-a456-426614174001"]
]
}
}
}
Loyalty Program Updated
This message is delivered when a loyalty program is created, updated, or archived. Updates include changes to the loyalty program's outlet and customer-tier relationships, and archives include both individual and bulk archive operations.
Message Name: loyalty_program.updated
Message Structure:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": ["loyalty_program_uuid", "ineligible_devices"],
"properties": {
"loyalty_program_uuid": {
"type": "string",
"format": "uuid",
"description": "The UUID of the loyalty program that was created, updated, or archived.",
"examples": ["123e4567-e89b-12d3-a456-426614174000"]
},
"ineligible_devices": {
"type": "array",
"description": "The device UUIDs that should ignore this message if they receive it.",
"items": {
"type": "string",
"format": "uuid"
},
"uniqueItems": true,
"examples": [
["123e4567-e89b-12d3-a456-426614174001"]
]
}
}
}
Top Up Intent Updated
This message is delivered when an asynchronous top-up intent is successfully fulfilled. Other top-up intent status changes do not send this message.
Message Name: top_up_intent.updated
Message Structure:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": ["uuid", "ineligible_devices"],
"properties": {
"uuid": {
"type": "string",
"format": "uuid",
"description": "The UUID of the top-up intent created through the Create Top Up Intent endpoint.",
"examples": ["123e4567-e89b-12d3-a456-426614174000"]
},
"ineligible_devices": {
"type": "array",
"description": "The device UUIDs that should ignore this message if they receive it.",
"items": {
"type": "string",
"format": "uuid"
},
"uniqueItems": true,
"examples": [
["123e4567-e89b-12d3-a456-426614174000"]
]
}
}
}